3 글 보임 - 1 에서 3 까지 (총 3 중에서)
-
글쓴이글
-
2024년 11월 18일 20:07 #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 = "../.." } 도와주세욥....
2024년 11월 19일 09:54 #132500
codingapple키 마스터permission_handler: ^11.0.0 으로 설치해봅시다 플러터 신버전 쓰는거면 https://pub.dev/packages/flutter_contacts 패키지 설치해서 쓰면 권한요청하는것도 거기서 알아서 해줍니다
-
글쓴이글
3 글 보임 - 1 에서 3 까지 (총 3 중에서)
- 답변은 로그인 후 가능합니다.