8 글 보임 - 1 에서 8 까지 (총 8 중에서)
-
글쓴이글
-
2024년 11월 4일 16:26 #131954
장건우참가자FAILURE: Build failed with an exception.
* What went wrong: A problem occurred configuring project ':qr_code_scanner'. > 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 6s
네임스페이스도 있고 AGP도 이상 없는데(?) 도통 원인을 모르겠습니다...ㅠㅠㅠ
2024년 11월 4일 18:32 #131959
codingapple키 마스터android/build.gradle 파일에 subprojects{} 항목에
subprojects { afterEvaluate { project -> if (project.hasProperty('android')) { project.android { if (namespace == null) { namespace project.group } } } } } 이런거 추가해봅시다
2024년 11월 9일 00:38 #132131
장건우참가자allprojects { repositories { google() mavenCentral() } }
rootProject.buildDir = "../build" subprojects { project.buildDir = "${rootProject.buildDir}/${project.name}" } subprojects { project.evaluationDependsOn(":app") }
tasks.register("clean", Delete) { delete rootProject.buildDir }
이 상태에서 두번째? 서브프로젝트 바로 밑에 추가하면 될까요?
생초짜라 죄송합니다 ㅠㅠㅠ
-
이 답변은
장건우에 의해 7 월, 1 주 전에 수정됐습니다.
2024년 11월 9일 18:36 #132156
장건우참가자* What went wrong: A problem occurred evaluating root project 'android'. > Cannot run Project.afterEvaluate(Closure) when the project is already evaluated. 이번엔 요런 오류가 떠서 구글링이랑 챗GPT도 다 해봤는데 해결이 안 됩니다 ㅠㅠ
2024년 11월 9일 19:49 #132159
codingapple키 마스터https://stackoverflow.com/a/71014094 에서 android/app/build.gradle 파일에 한줄 추가하라는것도 해봅시다
2024년 11월 10일 20:49 #132182
장건우참가자* What went wrong: A problem occurred evaluating root project 'android'. > A problem occurred configuring project ':qr_code_scanner'. > 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. 추가 할 것도 다 했는데 동일한 오류가? 뜹니다 ㅠㅠ
-
이 답변은
-
글쓴이글
8 글 보임 - 1 에서 8 까지 (총 8 중에서)
- 답변은 로그인 후 가능합니다.