Hi 馃憢,
I鈥檓 building an Android release APK with Flutter, and the build fails during Gradle evaluation of the flutter_poolakey package.
Command:
flutter build apk --release
Error:
FAILURE: Build completed with 2 failures.
- What went wrong:
A problem occurred evaluating project ':flutter_poolakey'.
Could not find method jcenter() for arguments [] on repository container of type org.gradle.api.internal.artifacts.dsl.DefaultRepositoryHandler.
(at /home/runner/.pub-cache/hosted/pub.dev/flutter_poolakey-2.2.0+1.0.0/android/build.gradle:5)
Problem:
It appears flutter_poolakey鈥檚 Gradle script uses jcenter(), but it鈥檚 not supported/available in the newer Gradle/AGP repository DSL, causing the build to fail.
Suggested fix:
Replace jcenter() with supported repositories such as mavenCentral() (and google() if required).
Thanks!
Hi 馃憢,
I鈥檓 building an Android release APK with Flutter, and the build fails during Gradle evaluation of the flutter_poolakey package.
Command:
flutter build apk --release
Error:
FAILURE: Build completed with 2 failures.
A problem occurred evaluating project ':flutter_poolakey'.
Problem:
It appears flutter_poolakey鈥檚 Gradle script uses jcenter(), but it鈥檚 not supported/available in the newer Gradle/AGP repository DSL, causing the build to fail.
Suggested fix:
Replace jcenter() with supported repositories such as mavenCentral() (and google() if required).
Thanks!