You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i use flutter in an exist app. Today i upgrade flutter to 1.2.1 but build fail.
` AGPBI: {"kind":"error","text":"Uncaught translation error: com.android.dx.cf.code.SimException: ERROR in io.flutter.view.AccessibilityBridge.shouldSetCollectionInfo:(Lio/flutter/view/AccessibilityBridge$SemanticsObject;)Z: invalid opcode ba - invokedynamic requires --min-sdk-version \u003e\u003d 26 (currently 16)","sources":[{}]}
AGPBI: {"kind":"error","text":"1 error; aborting","sources":[{}]}
305 actionable tasks: 141 executed, 164 up-to-date
*********************************************************
WARNING: This version of path_provider will break your Android build if it or its dependencies aren't compatible with AndroidX.
See https://goo.gl/CP92wY for more information on the problem and how to fix it.
This warning prints for all Android build failures. The real root cause of the error may be unrelated.
*********************************************************
[✓] Flutter (Channel stable, v1.2.1, on Mac OS X 10.13.6 17G5019, locale zh-Hans-CN)
• Flutter version 1.2.1 at /Users/lishupeng1/flutter/flutter
• Framework revision 8661d8a (2 weeks ago), 2019-02-14 19:19:53 -0800
• Engine revision 3757390
• Dart version 2.1.2 (build 2.1.2-dev.0.0 0a7dcf17eb)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
• Android SDK at /Users/lishupeng1/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
• All Android licenses accepted.
[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 10.1, Build version 10B61
• ios-deploy 1.9.4
• CocoaPods version 1.5.3
[✓] Android Studio (version 3.3)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 33.0.1
• Dart plugin version 182.5215
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
@dnfield Thank you for your attention. I mean an existing Android app, and i add these code in my source。After i add these code, exception is "java.lang.IllegalArgumentException: already added: ******". I am sure only one class in my project.
@dnfield@mehmetf@jason-simmons do we know our current story is around AndroidX? Somehow I'm out of the loop on this. There appears to be an entire Flutter related guide linked from the error log in this ticket.
And, probably not relevant to this error, but in your repositories entry maven { https://maven.google.com } and google() are equivalent....
"Initializing gradle... 1.1s"
"Resolving dependencies... 2.5s"
"Running Gradle task 'assembleRelease'... "
"registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)"
"registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)"
"registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)"
"registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)"
"registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)"
"ProGuard, version 6.0.3"
"Reading input..."
"Reading program jar [/Users/test1/flutter/bin/cache/artifacts/engine/android-arm-release/flutter.jar] (filtered)"
"Reading program jar [/Users/test1/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_youtube-1.1.4/android/libs/YouTubeAndroidPlayerApi.jar] (filtered)"
"Reading program jar [/Users/test1/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk7/1.2.71/4ce93f539e2133f172f1167291a911f83400a5d0/kotlin-stdlib-jdk7-1.2.71.jar] (filtered)"
"Reading program jar [/Users/test1/.gradle/caches/transforms-1/files-1.1/firebase-core-16.0.1.aar/8d82f67c990f4ccf1068ab8863190675/jars/classes.jar] (filtered)"
"Reading program jar [/Users/test1/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/6e590ebbcd0a6fa59f06c820d9896f65/jars/classes.jar] (filtered)"
"Reading program jar [/Users/test1/.gradle/caches/transforms-1/files-1.1/firebase-messaging-17.3.3.aar/5a55b80b6d9febc6504755e9bdebc49d/jars/classes.jar] (filtered)"
"Reading program jar [/Users/test1/.gradle/caches/transforms-1/files-1.1/exoplayer-hls-2.8.0.aar/b6ebe5ad4e6aecba49d32ef98f86c494/jars/classes.jar] (filtered)"
"Reading program jar [/Users/test1/.gradle/caches/transforms-1/files-1.1/exoplayer-dash-2.8.0.aar/a18fd807de6dc6e2dd3403d930f1404a/jars/classes.jar] (filtered)"
"Reading program jar [/Users/test1/.gradle/caches/transforms-1/files-1.1/exoplayer-smoothstreaming-2.8.0.aar/4173296e95c335e5d7df82d0723336d7/jars/classes.jar] (filtered)"
"Reading program jar [/Users/test1/.gradle/caches/transforms-1/files-1.1/exoplayer-core-2.8.0.aar/91bcac8b16eba2f41e05b394458968aa/jars/classes.jar] (filtered)"
"Reading program jar [/Users/test1/.gradle/caches/transforms-1/files-1.1/multidex-1.0.2.aar/b081b330a3b6b6b3d8d0a4e3ab42dbb3/jars/classes.jar] (filtered)"
"Reading program jar [/Users/test1/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.2.71/d9717625bb3c731561251f8dd2c67a1011d6764c/kotlin-stdlib-1.2.71.jar] (filtered)"
"Reading program jar [/Users/test1/.gradle/caches/transforms-1/files-1.1/firebase-measurement-connector-impl-16.0.1.aar/42c445b356b2556fbfead341e556f905/jars/classes.jar] (filtered)"
"Reading program jar [/Users/test1/.gradle/caches/transforms-1/files-1.1/firebase-analytics-16.0.1.aar/0a69cdcb4e64da506b8a8088629c3d86/jars/classes.jar] (filtered)"
"Reading program jar [/Users/test1/.gradle/caches/transforms-1/files-1.1/firebase-analytics-impl-16.1.1.aar/96ba7ee2c2e5af3755a778f26b0eddbe/jars/classes.jar] (filtered)"
"Reading program jar [/Users/test1/.gradle/caches/transforms-1/files-1.1/firebase-iid-17.0.3.aar/38f97273deec40a6fcd240b2fb361342/jars/classes.jar] (filtered)"
"Reading program jar [/Users/test1/.gradle/caches/transforms-1/files-1.1/firebase-common-16.0.3.aar/bda822336da864bb4f868c7dd3646a74/jars/classes.jar] (filtered)"
"Reading program jar [/Users/test1/.gradle/caches/transforms-1/files-1.1/firebase-iid-interop-16.0.1.aar/2a3d4c98729a85c692342f6437de0db8/jars/classes.jar] (filtered)"
"Reading program jar [/Users/test1/.gradle/caches/transforms-1/files-1.1/play-services-base-16.0.1.aar/ff2e8610702dde6fd62ac68e90210d93/jars/classes.jar] (filtered)"
"Reading program jar [/Users/test1/.gradle/caches/transforms-1/files-1.1/play-services-tasks-16.0.1.aar/1ff711fd18038c49696e7635cac469ff/jars/classes.jar] (filtered)"
"Reading program jar [/Users/test1/.gradle/caches/transforms-1/files-1.1/firebase-measurement-connector-17.0.1.aar/252b3639f56525069f70a1d7ff48be22/jars/classes.jar] (filtered)"
"Reading program jar [/Users/test1/.gradle/caches/transforms-1/files-1.1/play-services-stats-16.0.1.aar/47f36fe3fd30465012c9e1511f9244ad/jars/classes.jar] (filtered)"
"Reading program jar [/Users/test1/.gradle/caches/transforms-1/files-1.1/play-services-ads-identifier-15.0.1.aar/40683df0df2e78682f5f9232e0e0ca4e/jars/classes.jar] (filtered)"
"Reading program jar [/Users/test1/.gradle/caches/transforms-1/files-1.1/play-services-basement-16.0.1.aar/03e2ba0f9e17f1bea2f292c84275723d/jars/classes.jar] (filtered)"
"Reading program jar [/Users/test1/.gradle/caches/transforms-1/files-1.1/support-v4-26.1.0.aar/41f9cb18eba6776579fcfce2c3782b0a/jars/classes.jar] (filtered)"
"Reading program jar [/Users/test1/.gradle/caches/transforms-1/files-1.1/support-fragment-27.1.1.aar/c5a78eb613b0137cb55c58cb56427e50/jars/classes.jar] (filtered)"
"Reading program jar [/Users/test1/.gradle/caches/transforms-1/files-1.1/animated-vector-drawable-27.1.1.aar/6d84148aa2acb4c26c8d754048bf1e8b/jars/classes.jar] (filtered)"
"Reading program jar [/Users/test1/.gradle/caches/transforms-1/files-1.1/support-core-ui-27.1.1.aar/7b7031d783076b806089bb12f1d5928d/jars/classes.jar] (filtered)"
"Reading program jar [/Users/test1/.gradle/caches/transforms-1/files-1.1/support-core-utils-27.1.1.aar/a70ecdb4e83ae1648d98e3e010919b20/jars/classes.jar] (filtered)"
"Reading program jar [/Users/test1/.gradle/caches/transforms-1/files-1.1/support-vector-drawable-27.1.1.aar/7f60360104dbe101440653d66454aea8/jars/classes.jar] (filtered)"
"Reading program jar [/Users/test1/.gradle/caches/transforms-1/files-1.1/support-media-compat-26.1.0.aar/11efceda28b32803aed83f6dae27e631/jars/classes.jar] (filtered)"
"Reading program jar [/Users/test1/.gradle/caches/transforms-1/files-1.1/support-compat-27.1.1.aar/bf222c57ee91b887f7572350e24098d2/jars/classes.jar] (filtered)"
"Reading program jar [/Users/test1/.gradle/caches/modules-2/files-2.1/com.android.support/support-annotations/27.1.1/39ded76b5e1ce1c5b2688e1d25cdc20ecee32007/support-annotations-27.1.1.jar] (filtered)"
"Reading program jar [/Users/test1/.gradle/caches/modules-2/files-2.1/org.checkerframework/checker-qual/2.5.0/f03b9f07c2b002f35f81338e6cde3fc191b91951/checker-qual-2.5.0.jar] (filtered)"
"Reading program jar [/Users/test1/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-common/1.2.71/ba18ca1aa0e40eb6f1865b324af2f4cbb691c1ec/kotlin-stdlib-common-1.2.71.jar] (filtered)"
"Reading program jar [/Users/test1/.gradle/caches/modules-2/files-2.1/org.jetbrains/annotations/13.0/919f0dfe192fb4e063e7dacadee7f8bb9a2672a9/annotations-13.0.jar] (filtered)"
"Reading program jar [/Users/test1/.gradle/caches/transforms-1/files-1.1/play-services-measurement-base-16.0.0.aar/5bd7b5b23f3f42c2cbe173ae70443db3/jars/classes.jar] (filtered)"
"Reading program jar [/Users/test1/.gradle/caches/transforms-1/files-1.1/livedata-core-1.1.0.aar/17d2096281591810308f63d2365013f6/jars/classes.jar] (filtered)"
"Reading program jar [/Users/test1/.gradle/caches/transforms-1/files-1.1/viewmodel-1.1.0.aar/2390641806bec45067fdc433889d8744/jars/classes.jar] (filtered)"
"Reading program jar [/Users/test1/.gradle/caches/transforms-1/files-1.1/runtime-1.1.0.aar/787d5d167559e108df5c8ebedbf3b4bf/jars/classes.jar] (filtered)"
"Reading program jar [/Users/test1/.gradle/caches/modules-2/files-2.1/android.arch.lifecycle/common/1.1.0/edf3f7bfb84a7521d0599efa3b0113a0ee90f85/common-1.1.0.jar] (filtered)"
"Reading program jar [/Users/test1/.gradle/caches/transforms-1/files-1.1/runtime-1.1.0.aar/28f01ca08fe9d24c6ab14f29f92d1d00/jars/classes.jar] (filtered)"
"Reading program jar [/Users/test1/.gradle/caches/modules-2/files-2.1/android.arch.core/common/1.1.0/8007981f7d7540d89cd18471b8e5dcd2b4f99167/common-1.1.0.jar] (filtered)"
"Reading program jar [/Users/test1/unleash2/unleash_mobile/build/video_player/intermediates/intermediate-jars/release/classes.jar] (filtered)"
"Reading program jar [/Users/test1/unleash2/unleash_mobile/build/sqflite/intermediates/intermediate-jars/release/classes.jar] (filtered)"
"Reading program jar [/Users/test1/unleash2/unleash_mobile/build/device_info/intermediates/intermediate-jars/release/classes.jar] (filtered)"
"Reading program jar [/Users/test1/unleash2/unleash_mobile/build/package_info/intermediates/intermediate-jars/release/classes.jar] (filtered)"
"Reading program jar [/Users/test1/unleash2/unleash_mobile/build/flutter_web_view/intermediates/intermediate-jars/release/classes.jar] (filtered)"
"Reading program jar [/Users/test1/unleash2/unleash_mobile/build/pinch_zoom_image/intermediates/intermediate-jars/release/classes.jar] (filtered)"
"Reading program jar [/Users/test1/unleash2/unleash_mobile/build/flutter_youtube/intermediates/intermediate-jars/release/classes.jar] (filtered)"
"Reading program jar [/Users/test1/unleash2/unleash_mobile/build/firebase_messaging/intermediates/intermediate-jars/release/classes.jar] (filtered)"
"Reading program jar [/Users/test1/unleash2/unleash_mobile/build/url_launcher/intermediates/intermediate-jars/release/classes.jar] (filtered)"
"Reading program jar [/Users/test1/unleash2/unleash_mobile/build/path_provider/intermediates/intermediate-jars/release/classes.jar] (filtered)"
"Reading program jar [/Users/test1/unleash2/unleash_mobile/build/image_picker_saver/intermediates/intermediate-jars/release/classes.jar] (filtered)"
"Reading program jar [/Users/test1/unleash2/unleash_mobile/build/shared_preferences/intermediates/intermediate-jars/release/classes.jar] (filtered)"
"Reading program directory [/Users/test1/unleash2/unleash_mobile/build/app/intermediates/javac/release/compileReleaseJavaWithJavac/classes] (filtered)"
"Reading program directory [/Users/test1/unleash2/unleash_mobile/build/app/tmp/kotlin-classes/release] (filtered)"
"Reading program jar [/Users/test1/unleash2/unleash_mobile/build/app/intermediates/transforms/mergeJavaRes/release/0.jar] (filtered)"
"Reading library jar [/Users/test1/Library/Android/sdk/platforms/android-27/android.jar]"
"Reading library jar [/Users/test1/Library/Android/sdk/build-tools/28.0.3/core-lambda-stubs.jar]"
"Reading library jar [/Users/test1/Library/Android/sdk/platforms/android-27/optional/org.apache.http.legacy.jar]"
"Initializing..."
"Note: the configuration refers to the unknown class 'com.google.android.gms.common.api.internal.BasePendingResult$ReleasableResultGuardian'"
Warning: io.flutter.plugin.platform.PlatformPlugin: can't find referenced method 'ActivityManager$TaskDescription(java.lang.String,int,int)' in library class android.app.ActivityManager$TaskDescription
Warning: io.flutter.view.ResourceExtractor: can't find referenced method 'long getLongVersionCode()' in library class android.content.pm.PackageInfo
"Note: com.google.android.exoplayer2.util.Util: can't find dynamically referenced class android.os.SystemProperties"
"Note: com.google.android.gms.common.util.WorkSourceUtil: can't find dynamically referenced class android.os.WorkSource$WorkChain"
"Note: com.google.android.gms.internal.measurement.zzaai: can't find dynamically referenced class com.google.protobuf.DescriptorMessageInfoFactory"
"Note: com.google.android.gms.internal.measurement.zzaan: can't find dynamically referenced class com.google.protobuf.MapFieldSchemaFull"
"Note: com.google.android.gms.internal.measurement.zzaax: can't find dynamically referenced class com.google.protobuf.NewInstanceSchemaFull"
"Note: com.google.android.gms.internal.measurement.zzabc: can't find dynamically referenced class com.google.protobuf.GeneratedMessage"
"Note: com.google.android.gms.internal.measurement.zzabc: can't find dynamically referenced class com.google.protobuf.UnknownFieldSetSchema"
"Note: com.google.android.gms.internal.measurement.zzeh: can't find dynamically referenced class android.os.SystemProperties"
"Note: com.google.android.gms.internal.measurement.zzhm: can't find dynamically referenced class com.google.android.gms.tagmanager.TagManagerService"
"Note: com.google.android.gms.internal.measurement.zzza: can't find dynamically referenced class libcore.io.Memory"
"Note: com.google.android.gms.internal.measurement.zzza: can't find dynamically referenced class org.robolectric.Robolectric"
"Note: com.google.android.gms.internal.measurement.zzzm: can't find dynamically referenced class com.google.protobuf.ExtensionRegistry"
"Note: com.google.android.gms.internal.measurement.zzzn: can't find dynamically referenced class com.google.protobuf.Extension"
"Note: com.google.android.gms.internal.measurement.zzzq: can't find dynamically referenced class com.google.protobuf.ExtensionSchemaFull"
"Note: com.google.android.youtube.player.internal.aa: can't find dynamically referenced class com.google.android.youtube.api.locallylinked.LocallyLinkedFactory"
"Note: kotlin.internal.PlatformImplementationsKt: can't find dynamically referenced class kotlin.internal.jdk8.JDK8PlatformImplementations"
"Note: kotlin.internal.PlatformImplementationsKt: can't find dynamically referenced class kotlin.internal.JRE8PlatformImplementations"
"Note: kotlin.internal.PlatformImplementationsKt: can't find dynamically referenced class kotlin.internal.JRE7PlatformImplementations"
"Note: kotlin.jvm.internal.Reflection: can't find dynamically referenced class kotlin.reflect.jvm.internal.ReflectionFactoryImpl"
"Note: the configuration refers to the unknown field 'com.google.android.gms.common.api.internal.BasePendingResult$ReleasableResultGuardian mResultGuardian' in class 'com.google.android.gms.common.api.internal.BasePendingResult'"
"Note: the configuration keeps the entry point 'com.google.android.exoplayer2.Player$DefaultEventListener { void onTimelineChanged(com.google.android.exoplayer2.Timeline,java.lang.Object,int); }', but not the descriptor class 'com.google.android.exoplayer2.Timeline'"
"Note: the configuration keeps the entry point 'com.google.android.exoplayer2.Player$DefaultEventListener { void onTracksChanged(com.google.android.exoplayer2.source.TrackGroupArray,com.google.android.exoplayer2.trackselection.TrackSelectionArray); }', but not the descriptor class 'com.google.android.exoplayer2.source.TrackGroupArray'"
"Note: the configuration keeps the entry point 'com.google.android.exoplayer2.Player$DefaultEventListener { void onTracksChanged(com.google.android.exoplayer2.source.TrackGroupArray,com.google.android.exoplayer2.trackselection.TrackSelectionArray); }', but not the descriptor class 'com.google.android.exoplayer2.trackselection.TrackSelectionArray'"
"Note: the configuration keeps the entry point 'com.google.android.exoplayer2.Player$DefaultEventListener { void onPlayerError(com.google.android.exoplayer2.ExoPlaybackException); }', but not the descriptor class 'com.google.android.exoplayer2.ExoPlaybackException'"
"Note: the configuration keeps the entry point 'com.google.android.exoplayer2.Player$DefaultEventListener { void onPlaybackParametersChanged(com.google.android.exoplayer2.PlaybackParameters); }', but not the descriptor class 'com.google.android.exoplayer2.PlaybackParameters'"
"Note: the configuration keeps the entry point 'com.google.android.exoplayer2.Player$DefaultEventListener { void onTimelineChanged(com.google.android.exoplayer2.Timeline,java.lang.Object); }', but not the descriptor class 'com.google.android.exoplayer2.Timeline'"
"Note: the configuration keeps the entry point 'com.google.android.gms.common.api.internal.LifecycleCallback { com.google.android.gms.common.api.internal.LifecycleFragment getChimeraLifecycleFragmentImpl(com.google.android.gms.common.api.internal.LifecycleActivity); }', but not the descriptor class 'com.google.android.gms.common.api.internal.LifecycleActivity'"
"Note: the configuration keeps the entry point 'com.google.android.gms.measurement.AppMeasurement { AppMeasurement(com.google.android.gms.internal.measurement.zzgn); }', but not the descriptor class 'com.google.android.gms.internal.measurement.zzgn'"
"Note: the configuration keeps the entry point 'com.google.android.gms.measurement.AppMeasurement { void setEventInterceptor(com.google.android.gms.measurement.AppMeasurement$EventInterceptor); }', but not the descriptor class 'com.google.android.gms.measurement.AppMeasurement$EventInterceptor'"
"Note: the configuration keeps the entry point 'com.google.android.gms.measurement.AppMeasurement { void registerOnMeasurementEventListener(com.google.android.gms.measurement.AppMeasurement$OnEventListener); }', but not the descriptor class 'com.google.android.gms.measurement.AppMeasurement$OnEventListener'"
"Note: the configuration keeps the entry point 'com.google.android.gms.measurement.AppMeasurement { void unregisterOnMeasurementEventListener(com.google.android.gms.measurement.AppMeasurement$OnEventListener); }', but not the descriptor class 'com.google.android.gms.measurement.AppMeasurement$OnEventListener'"
"Note: the configuration keeps the entry point 'com.google.android.youtube.player.YouTubePlayerView { YouTubePlayerView(android.content.Context,android.util.AttributeSet,int,com.google.android.youtube.player.YouTubePlayerView$b); }', but not the descriptor class 'com.google.android.youtube.player.YouTubePlayerView$b'"
"Note: the configuration keeps the entry point 'com.google.firebase.analytics.FirebaseAnalytics { FirebaseAnalytics(com.google.android.gms.internal.measurement.zzgn); }', but not the descriptor class 'com.google.android.gms.internal.measurement.zzgn'"
"Note: the configuration keeps the entry point 'com.google.firebase.iid.FirebaseInstanceId { com.google.firebase.iid.FirebaseInstanceId getInstance(com.google.firebase.FirebaseApp); }', but not the descriptor class 'com.google.firebase.FirebaseApp'"
"Note: the configuration keeps the entry point 'com.google.firebase.iid.zzb { void zza(com.google.firebase.iid.zzb,android.content.Intent); }', but not the descriptor class 'com.google.firebase.iid.zzb'"
"Note: the configuration keeps the entry point 'com.google.firebase.messaging.FirebaseMessagingService { void onMessageReceived(com.google.firebase.messaging.RemoteMessage); }', but not the descriptor class 'com.google.firebase.messaging.RemoteMessage'"
"Note: the configuration keeps the entry point 'io.flutter.plugins.firebasemessaging.FirebaseMessagingPlugin { java.util.Map parseRemoteMessage(com.google.firebase.messaging.RemoteMessage); }', but not the descriptor class 'com.google.firebase.messaging.RemoteMessage'"
"Note: the configuration keeps the entry point 'io.flutter.plugins.firebasemessaging.FirebaseMessagingPlugin$1 { void onComplete(com.google.android.gms.tasks.Task); }', but not the descriptor class 'com.google.android.gms.tasks.Task'"
"Note: the configuration keeps the entry point 'io.flutter.plugins.firebasemessaging.FlutterFirebaseMessagingService { void onMessageReceived(com.google.firebase.messaging.RemoteMessage); }', but not the descriptor class 'com.google.firebase.messaging.RemoteMessage'"
"Note: the configuration keeps the entry point 'io.flutter.plugins.videoplayer.VideoPlayerPlugin$VideoPlayer { com.google.android.exoplayer2.source.MediaSource buildMediaSource(android.net.Uri,com.google.android.exoplayer2.upstream.DataSource$Factory,android.content.Context); }', but not the descriptor class 'com.google.android.exoplayer2.upstream.DataSource$Factory'"
"Note: the configuration keeps the entry point 'io.flutter.plugins.videoplayer.VideoPlayerPlugin$VideoPlayer { void setAudioAttributes(com.google.android.exoplayer2.SimpleExoPlayer); }', but not the descriptor class 'com.google.android.exoplayer2.SimpleExoPlayer'"
"Note: the configuration keeps the entry point 'io.flutter.plugins.videoplayer.VideoPlayerPlugin$VideoPlayer$2 { void onPlayerError(com.google.android.exoplayer2.ExoPlaybackException); }', but not the descriptor class 'com.google.android.exoplayer2.ExoPlaybackException'"
"Note: there were 1 references to unknown classes."
" You should check your configuration for typos."
" (http://proguard.sourceforge.net/manual/troubleshooting.html#unknownclass)"
"Note: there were 1 references to unknown class members."
" You should check your configuration for typos."
"Note: there were 22 unkept descriptor classes in kept class members."
" You should consider explicitly keeping the mentioned classes"
" (using '-keep')."
" (http://proguard.sourceforge.net/manual/troubleshooting.html#descriptorclass)"
"Note: there were 19 unresolved dynamic references to classes or interfaces."
" You should check if you need to specify additional program jars."
" (http://proguard.sourceforge.net/manual/troubleshooting.html#dynamicalclass)"
"Warning: Exception while processing task java.io.IOException: Please correct the above warnings first."
"Thread(Tasks limiter_2): destruction"
Warning: there were 2 unresolved references to library class members.
You probably need to update the library versions.
(http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedlibraryclassmember)
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:transformClassesAndResourcesWithProguardForRelease'.
> Job failed, see logs for details
* 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 47s
"Running Gradle task 'assembleRelease'... 48.1s"
*******************************************************************************************
The Gradle failure may have been because of AndroidX incompatibilities in this Flutter app.
See https://goo.gl/CP92wY for more information on the problem and how to fix it.
*******************************************************************************************
Gradle task assembleRelease failed with exit code 1
def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
localPropertiesFile.withReader('UTF-8') { reader ->
localProperties.load(reader)
}
}
def flutterRoot = localProperties.getProperty('flutter.sdk')
if (flutterRoot == null) {
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
}
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
def keystoreProperties = new Properties()
def keystorePropertiesFile = rootProject.file('key.properties')
if (keystorePropertiesFile.exists()) {
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
}
def flutterVersionCode = keystoreProperties.getProperty('flutter.versionCode')
if (flutterVersionCode == null) {
flutterVersionCode = '1'
}
def flutterVersionName = keystoreProperties.getProperty('flutter.versionName')
if (flutterVersionName == null) {
flutterVersionName = '0.0.1'
}
android {
compileSdkVersion 27
compileOptions {
sourceCompatibility 1.8
targetCompatibility 1.8
}
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
lintOptions {
disable 'InvalidPackage'
}
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.unleashed2"
minSdkVersion 16
targetSdkVersion 27
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
signingConfigs {
release {
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile file(keystoreProperties['storeFile'])
storePassword keystoreProperties['storePassword']
}
}
buildTypes {
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig signingConfigs.release
minifyEnabled true
useProguard true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
flutter {
source '../..'
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.google.firebase:firebase-core:16.0.1'
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.google.firebase:firebase-messaging:17.3.1'
}
apply plugin: 'com.google.gms.google-services'
my gradle version:
------------------------------------------------------------
Gradle 4.7
------------------------------------------------------------
Build time: 2018-04-18 09:09:12 UTC
Revision: b9a962bf70638332300e7f810689cb2febbd4a6c
Groovy: 2.4.12
Ant: Apache Ant(TM) version 1.9.9 compiled on February 2 2017
JVM: 1.8.0_172 (Oracle Corporation 25.172-b11)
OS: Mac OS X 10.14.2 x86_64
my flutter doctor output
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.2.1, on Mac OS X 10.14.2 18C54, locale en-ID)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
[✓] Android Studio (version 3.1)
[✓] IntelliJ IDEA Ultimate Edition (version 2018.1.3)
[!] VS Code (version 1.30.2)
✗ Flutter extension not installed; install from
https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[!] Connected device
! No devices available
! Doctor found issues in 2 categories.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
lsp9876 commentedon Mar 1, 2019
[✓] Flutter (Channel stable, v1.2.1, on Mac OS X 10.13.6 17G5019, locale zh-Hans-CN)
• Flutter version 1.2.1 at /Users/lishupeng1/flutter/flutter
• Framework revision 8661d8a (2 weeks ago), 2019-02-14 19:19:53 -0800
• Engine revision 3757390
• Dart version 2.1.2 (build 2.1.2-dev.0.0 0a7dcf17eb)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
• Android SDK at /Users/lishupeng1/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
• All Android licenses accepted.
[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 10.1, Build version 10B61
• ios-deploy 1.9.4
• CocoaPods version 1.5.3
[✓] Android Studio (version 3.3)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 33.0.1
• Dart plugin version 182.5215
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
[✓] Connected device (1 available)
• JMM AL10 • JGB9K18107918723 • android-arm64 • Android 7.0 (API 24)
lsp9876 commentedon Mar 1, 2019
android {
compileOptions {
sourceCompatibility 1.8
targetCompatibility 1.8
}
}
These code have no effect
dnfield commentedon Mar 1, 2019
When you say existing app, you mean an existing Android app or your existing Flutter app?
dnfield commentedon Mar 1, 2019
(flutter.gradle should be adding your source/targetCompatibility attributes anyway)
lsp9876 commentedon Mar 1, 2019
@dnfield Thank you for your attention. I mean an existing Android app, and i add these code in my source。After i add these code, exception is "java.lang.IllegalArgumentException: already added: ******". I am sure only one class in my project.
dnfield commentedon Mar 1, 2019
Can you include your build.gradle files here?
dnfield commentedon Mar 1, 2019
/cc @matthew-carroll
matthew-carroll commentedon Mar 1, 2019
@dnfield @mehmetf @jason-simmons do we know our current story is around AndroidX? Somehow I'm out of the loop on this. There appears to be an entire Flutter related guide linked from the error log in this ticket.
matthew-carroll commentedon Mar 1, 2019
Also @dnfield @jason-simmons do either of you know if our engine build system currently incorporates the AndroidX libraries?
7 remaining items
lsp9876 commentedon Mar 1, 2019
lsp9876 commentedon Mar 1, 2019
@matthew-carroll Pardon me for my carelessness. release build fail ...
dnfield commentedon Mar 1, 2019
Can you try updating your Android Gradle plugin to at least 3.2.0 (possibly 3.3.0)?
I'd also try uncommenting the lines if that alone doesn't work:
And, probably not relevant to this error, but in your repositories entry
maven { https://maven.google.com }andgoogle()are equivalent....lsp9876 commentedon Mar 1, 2019
@dnfield Thanks. Let me try~
lsp9876 commentedon Mar 1, 2019
@dnfield You are right. 😀 build successful~
classpath 'com.android.tools.build:gradle:3.0.1'distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zipandroid.useDexArchive=truednfield commentedon Mar 1, 2019
We should update https://github.com/flutter/flutter/wiki/Add-Flutter-to-existing-apps to include instructions that state you have to have sourceCompatibility and targetCompatibility set to 1.8 now.
dnfield commentedon Mar 1, 2019
@matthew-carroll do you think there's a good spot for that in particular now? I'm less familiar with the Android side of those instructions.
lsp9876 commentedon Mar 1, 2019
@dnfield I really appreciate your help.
kokizzu commentedon Mar 1, 2019
happened to me too since updating to 1.2.1:
my build.gradle:
my
app/build.gradle:my gradle version:
my
flutter doctoroutputmy
pubspec.yaml:kokizzu commentedon Mar 1, 2019
Nevermind, that's the same bug as this one #11099
removing
minifyEnabledsolve the issue for nowdnfield commentedon Mar 1, 2019
https://github.com/flutter/flutter/wiki/Add-Flutter-to-existing-apps#host-app-requirements has updated the instructions, closing this issue.
SDILogin commentedon Mar 5, 2019
@kokizzu looks like your build failed because of this warnings:
Don't know if it's good solution, but maybe you can try to add something like this to your proguard rules file
Hope it can help to keep proguard enabled for release builds
github-actions commentedon Aug 14, 2021
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.