• 로그인
  • 장바구니에 상품이 없습니다.

home2 게시판 Flutter 게시판 유저에게 앱 권한 요청하기 강의 중 오류

유저에게 앱 권한 요청하기 강의 중 오류

  • 이 주제에는 2개 답변, 2명 참여가 있으며 이재준7 월 전에 전에 마지막으로 업데이트했습니다.
3 글 보임 - 1 에서 3 까지 (총 3 중에서)
  • 글쓴이
  • #132480

    이재준
    참가자
    어찌저찌 에뮬레이터 깔고 다음 강의 넘어왔습니다.
    
    선생님이 말씀주신대로 세팅하고 androidmanifest.xml들어가서 코드도 다 넣고 에뮬레이터 재시작 했는데
    
    
    FAILURE: Build failed with an exception.
    * What went wrong:
    A problem occurred configuring project ':permission_handler'.
    > Could not create an instance of type com.android.build.api.variant.impl.LibraryVariantBuilderImpl.
       > Namespace not specified. Specify a namespace in the module's build file. See https://d.android.com/r/tools/upgrade-assistant/set-namespace for information about setting the namespace.
         If you've specified the package attribute in the source AndroidManifest.xml, you can use the AGP Upgrade Assistant to migrate to the namespace value in the build file. Refer to https://d.android.com/r/tools/upgrade-assistant/agp-upgrade-assistant for general information about using the AGP Upgrade Assistant.
    * Try:
    > Run with --stacktrace option to get the stack trace.
    > Run with --info or --debug option to get more log output.
    > Run with --scan to get full insights.
    > Get more help at https://help.gradle.org.
    BUILD FAILED in 7s
    Error: Gradle task assembleDebug failed with exit code 1
    
    
    이런 오류가 나옵니다.
    
    
    하나 의심되는게 builder.gradle에 버전을 31로 바꾸라 하셨는데, 그 버전 나와있는 부분이 없는 것 같습니다.
    
    
    plugins {
        id "com.android.application"
        id "kotlin-android"
        // The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
        id "dev.flutter.flutter-gradle-plugin"
    }
    android {
        namespace = "com.example.contact"
        compileSdk = flutter.compileSdkVersion
        ndkVersion = flutter.ndkVersion
        compileOptions {
            sourceCompatibility = JavaVersion.VERSION_1_8
            targetCompatibility = JavaVersion.VERSION_1_8
        }
        kotlinOptions {
            jvmTarget = JavaVersion.VERSION_1_8
        }
        defaultConfig {
            // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
            applicationId = "com.example.contact"
            // You can update the following values to match your application needs.
            // For more information, see: https://flutter.dev/to/review-gradle-config.
            minSdk = flutter.minSdkVersion
            targetSdk = flutter.targetSdkVersion
            versionCode = flutter.versionCode
            versionName = flutter.versionName
        }
        buildTypes {
            release {
                // TODO: Add your own signing config for the release build.
                // Signing with the debug keys for now, so `flutter run --release` works.
                signingConfig = signingConfigs.debug
            }
        }
    }
    flutter {
        source = "../.."
    }
    
    도와주세욥....
    #132500

    codingapple
    키 마스터
     permission_handler: ^11.0.0 으로 설치해봅시다
    플러터 신버전 쓰는거면 https://pub.dev/packages/flutter_contacts 패키지 설치해서 쓰면
    권한요청하는것도 거기서 알아서 해줍니다
    #132505

    이재준
    참가자
    감사합니다 ㅠㅠ
    
    
3 글 보임 - 1 에서 3 까지 (총 3 중에서)
  • 답변은 로그인 후 가능합니다.

About

현재 월 700명 신규수강중입니다.

  (09:00~20:00) 빠른 상담은 카톡 플러스친구 코딩애플 (링크)
  admin@codingapple.com
  이용약관
ⓒ Codingapple, 강의 예제, 영상 복제 금지
top

© Codingapple, All rights reserved. 슈퍼로켓 에듀케이션 / 서울특별시 강동구 고덕로 19길 30 / 사업자등록번호 : 212-26-14752 온라인 교육학원업 / 통신판매업신고번호 : 제 2017-서울강동-0002 호 / 개인정보관리자 : 박종흠