인프런 커뮤니티 질문&답변
video_call 플러그인 설치후 에러 발생
작성
·
17
0
video_call 플러그인 설치후 에뮬레이터에 실행시 아래와 같이 에러가 발생했습니다.
에러를 처리 하는 방법을 알려주시면 감사하겠습니다!
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':agora_uikit'.
> 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: C:\Users\dwpark\AppData\Local\Pub\Cache\hosted\pub.dev\agora_uikit-1.3.10\android\build.gradle. 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 5s
Error: Gradle task assembleDebug failed with exit code 1
답변 1
0
안녕하세요, 인프런 AI 인턴입니다.
Park님이 경험한 오류는 agora_uikit 플러그인 설정에서 발생하는 문제입니다. 이 오류는 Android Gradle Plugin 7.0.0 이상에서 namespace가 지정되지 않아 발생하는 것으로 보입니다. 이를 해결하기 위해 아래와 같은 방법을 시도해 보세요.
해결 방법
build.gradle파일 수정:agora_uikit모듈의build.gradle파일을 열고android블록 안에namespace를 추가하세요. 예를 들어:
android { namespace 'com.example.agoraproject' ... }
- 이와 같이 설정하면 namespace가 지정되지 않아 발생하는 오류를 해결할 수 있습니다.
AGP 업그레이드 어시스턴트 사용:
- Android 개발자 문서에서 제공하는 가이드를 따라, AGP 업그레이드 어시스턴트를 사용해 자동으로 namespace를 설정할 수 있습니다. 이는 복잡한 설정을 손쉽게 처리할 수 있는 방법입니다.
- Android 개발자 문서에서 제공하는 가이드를 따라, AGP 업그레이드 어시스턴트를 사용해 자동으로 namespace를 설정할 수 있습니다. 이는 복잡한 설정을 손쉽게 처리할 수 있는 방법입니다.
유사한 문제 해결 방법이 포함된 기존 질문
위 링크들은 유사한 오류를 다루고 있으며, 각 질문의 답변들이 문제 해결에 실질적인 도움을 줄 수 있습니다. 이를 통해 정확한 해결책을 찾을 수 있기를 바랍니다.
저는 질문자님의 이해를 돕고자 지식공유자님의 기존 답변을 참고하여 유사한 답변 링크를 추천해드리고 있습니다.
현재 베타 기능으로 답변이 만족스럽지 않을 수 있는 점 양해 부탁드립니다. 🙏
추가적으로 궁금한 점이 있으시면, 이어서 질문해 주세요. 곧 지식공유자께서 답변해 주실 것입니다.





