작성
·
12
0
Isar사용 중 아래와 같은 오류가 발생합니다. 어떻게 해결할 수 있을까요? 알려주시면 감사하겠습니다.
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 ':isar_flutter_libs'.
> 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 912ms
Error: Gradle task assembleDebug failed with exit code 1
답변 1
0
안녕하세요!
현재 Isar 라이브러리가 최신 버전을 대응하지 않아서 생기는 문제로 보입니다.
아래 링크에서 isar community 버전을 사용하거나
https://stackoverflow.com/a/79031129
아래 링크에서 build.gradle 세팅을 변경해주세요!
https://stackoverflow.com/a/79053205
감사합니다!