4 글 보임 - 1 에서 4 까지 (총 4 중에서)
-
글쓴이글
-
2024년 10월 2일 01:02 #131122
꺄륵참가자실행해보면
Launching lib\main.dart on sdk gphone64 x86 64 in debug mode... Running Gradle task 'assembleDebug'...
FAILURE: Build failed with an exception.
* What went wrong: A problem occurred configuring project ':contacts_service'. > 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 963ms 이런 에러가 발생합니다..
2024년 10월 2일 10:17 #131130
codingapple키 마스터android/build.gradle 파일에 subprojects{} 항목에 subprojects { afterEvaluate { project -> if (project.hasProperty('android')) { project.android { if (namespace == null) { namespace project.group } } } } } 이런거 추가하면 잘됩니까
2024년 10월 2일 14:25 #131142
꺄륵참가자Launching lib\main.dart on sdk gphone64 x86 64 in debug mode... Running Gradle task 'assembleDebug'... Incorrect package="flutter.plugins.contactsservice.contactsservice" found in source AndroidManifest.xml: C:\Users\psh01\AppData\Local\Pub\Cache\hosted\pub.dev\contacts_service-0.6.3\android\src\main\AndroidManifest.xml. Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported. Recommendation: remove package="flutter.plugins.contactsservice.contactsservice" from the source AndroidManifest.xml: C:\Users\psh01\AppData\Local\Pub\Cache\hosted\pub.dev\contacts_service-0.6.3\android\src\main\AndroidManifest.xml.
FAILURE: Build failed with an exception.
* What went wrong: Execution failed for task ':contacts_service:processDebugManifest'. > A failure occurred while executing com.android.build.gradle.tasks.ProcessLibraryManifest$ProcessLibWorkAction > Incorrect package="flutter.plugins.contactsservice.contactsservice" found in source AndroidManifest.xml: C:\Users\psh01\AppData\Local\Pub\Cache\hosted\pub.dev\contacts_service-0.6.3\android\src\main\AndroidManifest.xml. Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported. Recommendation: remove package="flutter.plugins.contactsservice.contactsservice" from the source AndroidManifest.xml: C:\Users\psh01\AppData\Local\Pub\Cache\hosted\pub.dev\contacts_service-0.6.3\android\src\main\AndroidManifest.xml.
* 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 1s Error: Gradle task assembleDebug failed with exit code 1 추가했더니 이런 오류가 뜹니다. 싹 지우고 다시 깔아도 permission_handler, contacts_service 이런거 추가하면 무한 에러가 발생해요ㅠㅜㅠ
2024년 10월 2일 21:14 #131154
codingapple키 마스터에러메세지에 있는 경로에 있는 AndroidManifest.xml 파일안에 package="flutter.plugins.contactsservice.contactsservice" 부분 지우라는거같습니다
-
글쓴이글
4 글 보임 - 1 에서 4 까지 (총 4 중에서)
- 답변은 로그인 후 가능합니다.