-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Description
Steps to Reproduce
- create a new flutter project.
- in Android Studio, add new module -> dynamic feature module.
flutter build appbundle --no-shrink
Minimal Code to reproduce
flutter build appbundle --no-shrink
Log
AGPBI: {"kind":"error","text":"Default interface methods are only supported starting with Android N (--min-api 24): void androidx.lifecycle.DefaultLifecycleObserver.onCreate(androidx.lifecycle.LifecycleOwner)","sources":[{}],"tool":"D8"}
AGPBI: {"kind":"error","text":"Default interface methods are only supported starting with Android N (--min-api 24): boolean io.flutter.embedding.android.SplashScreen.doesSplashViewRememberItsTransition()","sources":[{}],"tool":"D8"}
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':arm:mergeExtDexRelease'.
> Could not resolve all files for configuration ':arm:releaseRuntimeClasspath'.
> Failed to transform artifact 'flutter_embedding_release.jar (io.flutter:flutter_embedding_release:1.0.0-e1e6ced81d029258d449bdec2ba3cddca9c2ca0c)' to match attributes {artifactType=android-dex, dexing-enable-desugaring=false, dexing-is-debuggable=false, dexing-min-sdk=16, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}.
> Execution failed for DexingNoClasspathTransform: C:\Users\PramUkesh\.gradle\caches\transforms-2\files-2.1\4a04d698aa0c109a8096dac831f250f4\jetified-flutter_embedding_release-1.0.0-e1e6ced81d029258d449bdec2ba3cddca9c2ca0c.jar.
> Error while dexing.
> Failed to transform artifact 'lifecycle-common-java8.jar (androidx.lifecycle:lifecycle-common-java8:2.0.0)' to match attributes {artifactType=android-dex, dexing-enable-desugaring=false, dexing-is-debuggable=false, dexing-min-sdk=16, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}.
> Execution failed for DexingNoClasspathTransform: C:\Users\PramUkesh\.gradle\caches\modules-2\files-2.1\androidx.lifecycle\lifecycle-common-java8\2.0.0\52cb9efc663d8bebc82f8979a7da30938bd05611\lifecycle-common-java8-2.0.0.jar.
> Error while dexing.
* 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 11s
Running Gradle task 'bundleRelease'...
Running Gradle task 'bundleRelease'... Done 11.6s
Gradle task bundleRelease failed with exit code 1
flutter doctor -v
[√] Flutter (Channel stable, v1.12.13+hotfix.8, on Microsoft Windows [Version 10.0.18363.720], locale en-IN)
• Flutter version 1.12.13+hotfix.8 at C:\flutter\1.0.0
• Framework revision 0b8abb4724 (6 weeks ago), 2020-02-11 11:44:36 -0800
• Engine revision e1e6ced81d
• Dart version 2.7.0
[√] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
• Android SDK at D:\Android\SDK
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 29.0.3
• ANDROID_HOME = D:\Android\SDK
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)
• All Android licenses accepted.
[√] Android Studio (version 3.6)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 44.0.2
• Dart plugin version 192.7761
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)
[√] VS Code (version 1.43.2)
• VS Code at C:\Users\PramUkesh\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.8.1
[√] Connected device (1 available)
• Redmi K20 Pro • 270a97e6 • android-arm64 • Android 10 (API 29)
• No issues found!
Metadata
Metadata
Assignees
Labels
No labels