Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[google_maps_flutter] fatal exception and crash on Android: java.lang.AbstractMethodError #72185

Closed
pamir72 opened this issue Dec 12, 2020 · 49 comments · Fixed by #73758
Closed
Assignees
Labels
c: fatal crash Crashes that terminate the process c: regression It was better in the past than it is now customer: crowd Affects or could affect many people, though not necessarily a specific customer. found in release: 1.25 Found to occur in 1.25 found in release: 1.26 Found to occur in 1.26 has reproducible steps The issue has been confirmed reproducible and is ready to work on p: maps Google Maps plugin package flutter/packages repository. See also p: labels. platform-android Android applications specifically

Comments

@pamir72
Copy link

pamir72 commented Dec 12, 2020

After upgrading to Flutter (Channel dev, 1.25.0-8.0.pre), when I start google maps (google_maps_flutter: 1.0.6), I have an issuer and crash:

java.lang.AbstractMethodError: abstract method "void io.flutter.plugin.platform.PlatformView.onFlutterViewAttached(android.view.View)"
E/AndroidRuntime(21906): 	at io.flutter.plugin.platform.VirtualDisplayController.onFlutterViewAttached(VirtualDisplayController.java:181)
E/AndroidRuntime(21906): 	at io.flutter.plugin.platform.PlatformViewsController$1.createVirtualDisplayForPlatformView(PlatformViewsController.java:233)
E/AndroidRuntime(21906): 	at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.create(PlatformViewsChannel.java:104)
E/AndroidRuntime(21906): 	at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.onMethodCall(PlatformViewsChannel.java:59)
E/AndroidRuntime(21906): 	at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:233)
E/AndroidRuntime(21906): 	at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:85)
E/AndroidRuntime(21906): 	at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:738)
E/AndroidRuntime(21906): 	at android.os.MessageQueue.nativePollOnce(Native Method)
E/AndroidRuntime(21906): 	at android.os.MessageQueue.next(MessageQueue.java:326)
E/AndroidRuntime(21906): 	at android.os.Looper.loop(Looper.java:160)
E/AndroidRuntime(21906): 	at android.app.ActivityThread.main(ActivityThread.java:6669)
E/AndroidRuntime(21906): 	at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(21906): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
E/AndroidRuntime(21906): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
I/Process (21906): Sending signal. PID: 21906 SIG: 9
Lost connection to device.

flutter doctor -v

[✓] Flutter (Channel dev, 1.25.0-8.0.pre, on macOS 11.0.1 20B29 darwin-x64, locale ru-RU)
    • Flutter version 1.25.0-8.0.pre at 
    • Framework revision a12e2a473a (3 days ago), 2020-12-08 23:13:04 -0500
    • Engine revision df39e5c515
    • Dart version 2.12.0 (build 2.12.0-133.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at 
    • Platform android-30, build-tools 29.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.2, Build version 12B45b
    • CocoaPods version 1.9.3

[✓] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

[✓] Connected device (1 available)
    • AOSP on IA Emulator (mobile) • emulator-5554 • android-x86 • Android 9 (API 28) (emulator)

• No issues found!

    dependencies {
        classpath 'com.android.tools.build:gradle:4.1.1'
        classpath 'com.google.gms:google-services:4.3.4'
    }

Note:
Tested
Android 9, Android 10, Android 11 - exception and crash
Android 6 - ok

@LuisGrt
Copy link

LuisGrt commented Dec 12, 2020

I am having the same issue with google_maps_flutter:

I/Google Maps Android API( 6402): Google Play services client version: 12451000
I/Google Maps Android API( 6402): Google Play services package version: 201817022
E/AndroidRuntime( 6402): FATAL EXCEPTION: main
E/AndroidRuntime( 6402): Process: com.rivex.smart.maceda.debug, PID: 6402
E/AndroidRuntime( 6402): java.lang.AbstractMethodError: abstract method "void io.flutter.plugin.platform.PlatformView.onFlutterViewAttached(android.view.View)"
E/AndroidRuntime( 6402): 	at io.flutter.plugin.platform.VirtualDisplayController.onFlutterViewAttached(VirtualDisplayController.java:181)
E/AndroidRuntime( 6402): 	at io.flutter.plugin.platform.PlatformViewsController$1.createVirtualDisplayForPlatformView(PlatformViewsController.java:233)
E/AndroidRuntime( 6402): 	at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.create(PlatformViewsChannel.java:104)
E/AndroidRuntime( 6402): 	at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.onMethodCall(PlatformViewsChannel.java:59)
E/AndroidRuntime( 6402): 	at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:233)
E/AndroidRuntime( 6402): 	at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:85)
E/AndroidRuntime( 6402): 	at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:738)
E/AndroidRuntime( 6402): 	at android.os.MessageQueue.nativePollOnce(Native Method)
E/AndroidRuntime( 6402): 	at android.os.MessageQueue.next(MessageQueue.java:335)
E/AndroidRuntime( 6402): 	at android.os.Looper.loop(Looper.java:183)
E/AndroidRuntime( 6402): 	at android.app.ActivityThread.main(ActivityThread.java:7656)
E/AndroidRuntime( 6402): 	at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime( 6402): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
E/AndroidRuntime( 6402): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
I/Process ( 6402): Sending signal. PID: 6402 SIG: 9
Lost connection to device.

flutter doctor -v

[✓] Flutter (Channel dev, 1.25.0-8.0.pre, on macOS 11.0.1 20B29 darwin-x64, locale pt-PT)
    • Flutter version 1.25.0-8.0.pre at /Users/luisgermanrt/Development/flutter
    • Framework revision a12e2a473a (3 days ago), 2020-12-08 23:13:04 -0500
    • Engine revision df39e5c515
    • Dart version 2.12.0 (build 2.12.0-133.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/luisgermanrt/Library/Android/sdk
    • Platform android-30, build-tools 30.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_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.2, Build version 12B45b
    • CocoaPods version 1.9.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

[✓] IntelliJ IDEA Community Edition (version 2020.3)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 52.0.5
    • Dart plugin version 203.5981.152

[✓] VS Code (version 1.52.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.16.0

[✓] Connected device (2 available)
    • sdk gphone x86 arm (mobile) • emulator-5554 • android-x86    • Android 11 (API 30) (emulator)
    • Chrome (web)                • chrome        • web-javascript • Google Chrome 87.0.4280.88

• No issues found!

@radvansky-tomas
Copy link

Same issue

@sgehrman

This comment was marked as abuse.

@radvansky-tomas
Copy link

Resolved by changing gradle.properties
android.enableDexingArtifactTransform=false

@rohitkhatri
Copy link

I'm also facing the same issue.

@rohitkhatri
Copy link

Resolved by changing gradle.properties
android.enableDexingArtifactTransform=false

It worked for me, thanks.

@TahaTesser
Copy link
Member

TahaTesser commented Dec 14, 2020

Hey everyone
I can reproduce on dev and master channelss it seems to be working on stable and beta

logs
Launching lib/main.dart on RMX2001 in debug mode...
 lib/main.dart
Note: /Users/tahatesser/.pub-cache/hosted/pub.dartlang.org/google_maps_flutter-1.0.6/android/src/main/java/io/flutter/plugins/googlemaps/Convert.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
✓ Built build/app/outputs/flutter-apk/app-debug.apk.
Connecting to VM Service at ws://127.0.0.1:61279/4M6TrE6kWrE=/ws
I/ple.dev_flutte(22923): ProcessProfilingInfo new_methods=442 is saved saved_to_disk=1 resolve_classes_delay=5000
V/PhoneWindow(22923): DecorView setVisiblity: visibility = 0, Parent = android.view.ViewRootImpl@35f7cf0, this = DecorView@7838c6d[MainActivity]
D/Surface (22923): Surface::connect(this=0x6ff2779000,api=1)
I/SurfaceView(22923): 91355656 visibleChanged:true -> SurfaceHolder.Callback.surfaceCreated
D/Surface (22923): Surface::connect(this=0x6ff277b000,api=1)
D/mali_winsys(22923): EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000
D/Surface (22923): Surface::setBufferCount(this=0x6ff2779000,bufferCount=4)
D/mali_winsys(22923): EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000
D/ViewRootImpl(22923): setSurfaceViewCreated, created:true
I/SurfaceView(22923): 91355656 surfaceChanged -- format=4 w=1080 h=2400 visibleChanged:true -> SurfaceHolder.Callback.surfaceChanged
D/SurfaceView(22923): updateScreenMode w:1080 h:2400 ViewRoot w:1080 h:2400
D/SurfaceView(22923): try to resquest 60Hz
D/ViewRootImpl(22923): set screen refresh mode 1 due to SurfaceView-91355656
D/SurfaceView(22923): updateScreenMode w:1080 h:2400 ViewRoot w:1080 h:2400
D/SurfaceView(22923): try to resquest 60Hz
W/Gralloc3(22923): mapper 3.x is not supported
E/gralloc (22923): Arm Module v1.0
E/ion     (22923): ioctl c0044901 failed with code -1: Invalid argument
W/gralloc (22923): WARNING: internal format modifier bits not mutually exclusive. AFBC basic bit is always set, so extended AFBC support bits must always be checked.
W/PlatformViewsController(22923): Creating a virtual display of size: [1080, 2400] may result in problems(https://github.com/flutter/flutter/issues/2897).It is larger than the device screen size: [1080, 2285].
I/BufferQueue(22923): [unnamed-22923-0](this:0x6fff073800,id:0,api:0,p:-1,c:-1) BufferQueue core=(22923:com.example.dev_flutter)
W/ple.dev_flutter(22923): type=1400 audit(0.0:286480): avc: denied { read } for name="u:object_r:debug_bq_dump_prop:s0" dev="tmpfs" ino=3603 scontext=u:r:untrusted_app:s0:c18,c258,c512,c768 tcontext=u:object_r:debug_bq_dump_prop:s0 tclass=file permissive=0
E/libc    (22923): Access denied finding property "vendor.debug.bq.dump"
W/ple.dev_flutter(22923): type=1400 audit(0.0:286481): avc: denied { read } for name="u:object_r:debug_bq_dump_prop:s0" dev="tmpfs" ino=3603 scontext=u:r:untrusted_app:s0:c18,c258,c512,c768 tcontext=u:object_r:debug_bq_dump_prop:s0 tclass=file permissive=0
I/BufferQueueConsumer(22923): [unnamed-22923-0](this:0x6fff073800,id:0,api:0,p:-1,c:22923) connect(C): consumer=(22923:com.example.dev_flutter) controlledByApp=true
E/libc    (22923): Access denied finding property "vendor.debug.bq.dump"
I/BufferQueueConsumer(22923): [unnamed-22923-0](this:0x6fff073800,id:0,api:0,p:-1,c:22923) setConsumerName: unnamed-22923-0
E/libc    (22923): Access denied finding property "vendor.debug.bq.dump"
I/BufferQueueConsumer(22923): [SurfaceTexture-0-22923-0](this:0x6fff073800,id:0,api:0,p:-1,c:22923) setConsumerName: SurfaceTexture-0-22923-0
I/BufferQueueConsumer(22923): [SurfaceTexture-0-22923-0](this:0x6fff073800,id:0,api:0,p:-1,c:22923) setDefaultBufferSize: width=1080 height=2400
I/zzbz    (22923): Making Creator dynamically
I/BufferQueueProducer(22923): [SurfaceTexture-0-22923-0](this:0x6fff073800,id:0,api:1,p:787,c:22923) connect(P): api=1 producer=(787:???) producerControlledByApp=false
W/Gralloc3(22923): allocator 3.x is not supported
E/ion     (22923): ioctl c0044901 failed with code -1: Invalid argument
D/BufferQueueProducer(22923): [SurfaceTexture-0-22923-0](this:0x6fff073800,id:0,api:1,p:787,c:22923) cancelBuffer: slot 0
W/ple.dev_flutte(22923): Unsupported class loader
W/ple.dev_flutte(22923): Skipping duplicate class check due to unsupported classloader
I/DynamiteModule(22923): Considering local module com.google.android.gms.maps_dynamite:0 and remote module com.google.android.gms.maps_dynamite:203112999
I/DynamiteModule(22923): Selected remote version of com.google.android.gms.maps_dynamite, version >= 203112999
V/DynamiteModule(22923): Dynamite loader version >= 2, using loadModule2NoCrashUtils
D/BufferQueueProducer(22923): [SurfaceTexture-0-22923-0](this:0x6fff073800,id:0,api:1,p:787,c:22923) cancelBuffer: slot 0
I/DynamiteLoaderV2Impl(22923): [71] Mapsdynamite
W/ple.dev_flutte(22923): ClassLoaderContext type mismatch. expected=PCL, found=DLC (PCL[] | DLC[];PCL[/data/app/com.example.dev_flutter-377BkJxkOEZppdp1KdB5Lw==/base.apk*2990805029]{PCL[/system/framework/org.apache.http.legacy.jar*576634005]})
W/ple.dev_flutte(22923): Found duplicate classes, falling back to extracting from APK : /data/user_de/0/com.google.android.gms/app_chimera/m/00000079/MapsDynamite.apk
W/ple.dev_flutte(22923): NOTE: This wastes RAM and hurts startup performance.
W/ple.dev_flutte(22923): Found duplicated class when checking oat files: 'Landroidx/annotation/Keep;' in /data/app/com.example.dev_flutter-377BkJxkOEZppdp1KdB5Lw==/base.apk and /data/user_de/0/com.google.android.gms/app_chimera/m/00000079/MapsDynamite.apk
W/ple.dev_flutte(22923):
D/BufferQueueProducer(22923): [SurfaceTexture-0-22923-0](this:0x6fff073800,id:0,api:1,p:787,c:22923) cancelBuffer: slot 0
I/Google Maps Android API(22923): Google Play services client version: 12451000
D/BufferQueueProducer(22923): [SurfaceTexture-0-22923-0](this:0x6fff073800,id:0,api:1,p:787,c:22923) cancelBuffer: slot 0
I/Google Maps Android API(22923): Google Play services package version: 204516039
D/BufferQueueProducer(22923): [SurfaceTexture-0-22923-0](this:0x6fff073800,id:0,api:1,p:787,c:22923) cancelBuffer: slot 0
W/ple.dev_flutte(22923): Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, linking, allowed)
W/ple.dev_flutte(22923): Accessing hidden method Lsun/misc/Unsafe;->getInt(Ljava/lang/Object;J)I (greylist, linking, allowed)
W/ple.dev_flutte(22923): Accessing hidden method Lsun/misc/Unsafe;->putLong(Ljava/lang/Object;JJ)V (greylist, linking, allowed)
W/ple.dev_flutte(22923): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed)
W/ple.dev_flutte(22923): Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, linking, allowed)
W/ple.dev_flutte(22923): Accessing hidden method Lsun/misc/Unsafe;->getLong(Ljava/lang/Object;J)J (greylist,core-platform-api, linking, allowed)
W/ple.dev_flutte(22923): Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, linking, allowed)
W/ple.dev_flutte(22923): Accessing hidden method Lsun/misc/Unsafe;->getInt(Ljava/lang/Object;J)I (greylist, linking, allowed)
W/ple.dev_flutte(22923): Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, linking, allowed)
W/ple.dev_flutte(22923): Accessing hidden method Lsun/misc/Unsafe;->putLong(Ljava/lang/Object;JJ)V (greylist, linking, allowed)
W/ple.dev_flutte(22923): Accessing hidden method Lsun/misc/Unsafe;->allocateInstance(Ljava/lang/Class;)Ljava/lang/Object; (greylist, linking, allowed)
W/ple.dev_flutte(22923): Accessing hidden method Llibcore/io/Memory;->peekLong(JZ)J (greylist, reflection, allowed)
W/ple.dev_flutte(22923): Accessing hidden method Llibcore/io/Memory;->pokeLong(JJZ)V (greylist, reflection, allowed)
W/ple.dev_flutte(22923): Accessing hidden method Llibcore/io/Memory;->pokeInt(JIZ)V (greylist, reflection, allowed)
W/ple.dev_flutte(22923): Accessing hidden method Llibcore/io/Memory;->peekInt(JZ)I (greylist, reflection, allowed)
W/ple.dev_flutte(22923): Accessing hidden method Llibcore/io/Memory;->pokeByte(JB)V (greylist, reflection, allowed)
W/ple.dev_flutte(22923): Accessing hidden method Llibcore/io/Memory;->peekByte(J)B (greylist, reflection, allowed)
W/ple.dev_flutte(22923): Accessing hidden method Llibcore/io/Memory;->pokeByteArray(J[BII)V (greylist, reflection, allowed)
W/ple.dev_flutte(22923): Accessing hidden method Llibcore/io/Memory;->peekByteArray(J[BII)V (greylist, reflection, allowed)
W/ple.dev_flutte(22923): Accessing hidden method Lsun/misc/Unsafe;->arrayBaseOffset(Ljava/lang/Class;)I (greylist,core-platform-api, linking, allowed)
W/ple.dev_flutte(22923): Accessing hidden method Lsun/misc/Unsafe;->arrayIndexScale(Ljava/lang/Class;)I (greylist, linking, allowed)
W/ple.dev_flutte(22923): Accessing hidden method Llibcore/io/Memory;->peekByte(J)B (greylist, linking, allowed)
W/ple.dev_flutte(22923): Accessing hidden method Lsun/misc/Unsafe;->getLong(Ljava/lang/Object;J)J (greylist,core-platform-api, reflection, allowed)
W/ple.dev_flutte(22923): Accessing hidden field Ljava/nio/Buffer;->address:J (greylist, reflection, allowed)
W/ple.dev_flutte(22923): Accessing hidden method Lsun/misc/Unsafe;->getInt(Ljava/lang/Object;J)I (greylist, reflection, allowed)
W/ple.dev_flutte(22923): Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, reflection, allowed)
W/ple.dev_flutte(22923): Accessing hidden method Lsun/misc/Unsafe;->getLong(Ljava/lang/Object;J)J (greylist,core-platform-api, reflection, allowed)
W/ple.dev_flutte(22923): Accessing hidden method Lsun/misc/Unsafe;->putLong(Ljava/lang/Object;JJ)V (greylist, reflection, allowed)
W/ple.dev_flutte(22923): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, reflection, allowed)
W/ple.dev_flutte(22923): Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, reflection, allowed)
D/BufferQueueProducer(22923): [SurfaceTexture-0-22923-0](this:0x6fff073800,id:0,api:1,p:787,c:22923) cancelBuffer: slot 0
W/ple.dev_flutte(22923): Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, linking, allowed)
W/ple.dev_flutte(22923): Accessing hidden method Lsun/misc/Unsafe;->compareAndSwapObject(Ljava/lang/Object;JLjava/lang/Object;Ljava/lang/Object;)Z (greylist, linking, allowed)
D/BufferQueueProducer(22923): [SurfaceTexture-0-22923-0](this:0x6fff073800,id:0,api:1,p:787,c:22923) cancelBuffer: slot 0
W/ple.dev_flutte(22923): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed)
W/ple.dev_flutte(22923): Accessing hidden method Lsun/misc/Unsafe;->getInt(Ljava/lang/Object;J)I (greylist, linking, allowed)
W/ple.dev_flutte(22923): Accessing hidden method Lsun/misc/Unsafe;->getLong(Ljava/lang/Object;J)J (greylist,core-platform-api, linking, allowed)
W/ple.dev_flutte(22923): Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, linking, allowed)
D/BufferQueueProducer(22923): [SurfaceTexture-0-22923-0](this:0x6fff073800,id:0,api:1,p:787,c:22923) cancelBuffer: slot 0
D/ColorExSystemServiceHelper(22923): checkColorExSystemService className = com.google.android.gms.chimera.PersistentDirectBootAwareApiService
D/ColorExSystemServiceHelper(22923): checkColorExSystemService className = com.google.android.gms.maps.auth.ApiTokenService
D/TestOverScroll(22923): getScaledOverscrollDistance: b
W/Google Maps Android API(22923): Deprecation notice: In a future release, indoor will no longer be supported on satellite, hybrid or terrain type maps. Even where indoor is not supported, isIndoorEnabled() will continue to return the value that has been set via setIndoorEnabled(), as it does now. By default, setIndoorEnabled is 'true'. The API release notes (https://developers.google.com/maps/documentation/android-api/releases) will let you know when indoor support becomes unavailable on those map types.
W/ple.dev_flutte(22923): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed)
W/ple.dev_flutte(22923): Accessing hidden method Lsun/misc/Unsafe;->getInt(Ljava/lang/Object;J)I (greylist, linking, allowed)
W/ple.dev_flutte(22923): Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, linking, allowed)
W/ple.dev_flutte(22923): Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, linking, allowed)
D/ColorExSystemServiceHelper(22923): checkColorExSystemService className = com.google.android.location.internal.GoogleLocationManagerService
D/WindowManager(22923): Add to mViews: DecorView@ac791cc[MainActivity], this = android.view.WindowManagerGlobal@11a30a2,pkg= com.example.dev_flutter
D/ViewRootImpl[MainActivity](22923): hardware acceleration = true , fakeHwAccelerated = false, sRendererDisabled = false, forceHwAccelerated = false, sSystemRendererDisabled = false
I/InputTransport(22923): Create ARC handle: 0x6fff176c40
E/AndroidRuntime(22923): FATAL EXCEPTION: main
E/AndroidRuntime(22923): Process: com.example.dev_flutter, PID: 22923
E/AndroidRuntime(22923): java.lang.AbstractMethodError: abstract method "void io.flutter.plugin.platform.PlatformView.onFlutterViewAttached(android.view.View)"
E/AndroidRuntime(22923): 	at io.flutter.plugin.platform.VirtualDisplayController.onFlutterViewAttached(VirtualDisplayController.java:181)
E/AndroidRuntime(22923): 	at io.flutter.plugin.platform.PlatformViewsController$1.createVirtualDisplayForPlatformView(PlatformViewsController.java:233)
E/AndroidRuntime(22923): 	at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.create(PlatformViewsChannel.java:104)
E/AndroidRuntime(22923): 	at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.onMethodCall(PlatformViewsChannel.java:59)
E/AndroidRuntime(22923): 	at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:233)
E/AndroidRuntime(22923): 	at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:85)
E/AndroidRuntime(22923): 	at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:738)
E/AndroidRuntime(22923): 	at android.os.MessageQueue.nativePollOnce(Native Method)
E/AndroidRuntime(22923): 	at android.os.MessageQueue.next(MessageQueue.java:336)
E/AndroidRuntime(22923): 	at android.os.Looper.loop(Looper.java:182)
E/AndroidRuntime(22923): 	at android.app.ActivityThread.main(ActivityThread.java:7822)
E/AndroidRuntime(22923): 	at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(22923): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
E/AndroidRuntime(22923): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1026)
D/BufferQueueProducer(22923): [SurfaceTexture-0-22923-0](this:0x6fff073800,id:0,api:1,p:787,c:22923) cancelBuffer: slot 0
I/Process (22923): Sending signal. PID: 22923 SIG: 9
Lost connection to device.
Exited (sigterm)
multiple flutter doctor -v
[✓] Flutter (Channel dev, 1.25.0-8.0.pre, on macOS 11.0.1 20B29 darwin-x64,
    locale en-GB)
    • Flutter version 1.25.0-8.0.pre at /Users/tahatesser/Code/flutter_dev
    • Framework revision a12e2a473a (5 days ago), 2020-12-08 23:13:04 -0500
    • Engine revision df39e5c515
    • Dart version 2.12.0 (build 2.12.0-133.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /Users/tahatesser/Code/sdk
    • Platform android-30, build-tools 30.0.2
    • ANDROID_HOME = /Users/tahatesser/Code/sdk
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.2)
    • Xcode at /Volumes/Extreme/Xcode.app/Contents/Developer
    • Xcode 12.2, Build version 12B45b
    • CocoaPods version 1.10.0

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6915495)

[!] Android Studio
    • Android Studio at /Applications/Android/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    ✗ Android Studio not found at /Applications/Android/Contents
    • Try updating or re-installing Android Studio.

[✓] VS Code (version 1.52.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.17.0

[✓] Connected device (5 available)
    • RMX2001 (mobile)     • EUYTFEUSQSRGDA6D                     •
      android-arm64  • Android 10 (API 29)
    • Taha’s iPad (mobile) • 00008020-000255113EE8402E            • ios
      • iOS 14.2
    • iPhone 12 (mobile)   • 2188C52E-1D22-45B2-98B8-48401D2B6716 • ios
      • com.apple.CoreSimulator.SimRuntime.iOS-14-2 (simulator)
    • macOS (desktop)      • macos                                • darwin-x64
      • macOS 11.0.1 20B29 darwin-x64
    • Chrome (web)         • chrome                               •
      web-javascript • Google Chrome 87.0.4280.88

! Doctor found issues in 1 category.
[✓] Flutter (Channel master, 1.25.0-9.0.pre.43, on macOS 11.0.1 20B29
    darwin-x64, locale en-GB)
    • Flutter version 1.25.0-9.0.pre.43 at /Users/tahatesser/Code/flutter_master
    • Framework revision 63062a6443 (22 hours ago), 2020-12-13 23:19:13 +0800
    • Engine revision 4797b06652
    • Dart version 2.12.0 (build 2.12.0-141.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /Users/tahatesser/Code/sdk
    • Platform android-30, build-tools 30.0.2
    • ANDROID_HOME = /Users/tahatesser/Code/sdk
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.2)
    • Xcode at /Volumes/Extreme/Xcode.app/Contents/Developer
    • Xcode 12.2, Build version 12B45b
    • CocoaPods version 1.10.0

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6915495)

[!] Android Studio
    • Android Studio at /Applications/Android/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    ✗ Android Studio not found at /Applications/Android/Contents
    • Try updating or re-installing Android Studio.

[✓] VS Code (version 1.52.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.17.0

[✓] Connected device (5 available)
    • RMX2001 (mobile)     • EUYTFEUSQSRGDA6D                     •
      android-arm64  • Android 10 (API 29)
    • Taha’s iPad (mobile) • 00008020-000255113EE8402E            • ios
      • iOS 14.2
    • iPhone 12 (mobile)   • 2188C52E-1D22-45B2-98B8-48401D2B6716 • ios
      • com.apple.CoreSimulator.SimRuntime.iOS-14-2 (simulator)
    • macOS (desktop)      • macos                                • darwin-x64
      • macOS 11.0.1 20B29 darwin-x64
    • Chrome (web)         • chrome                               •
      web-javascript • Google Chrome 87.0.4280.88

! Doctor found issues in 1 category.

@TahaTesser TahaTesser added found in release: 1.25 Found to occur in 1.25 has reproducible steps The issue has been confirmed reproducible and is ready to work on p: first party p: maps Google Maps plugin platform-android Android applications specifically c: fatal crash Crashes that terminate the process c: regression It was better in the past than it is now labels Dec 14, 2020
@jamesmwase
Copy link

jamesmwase commented Dec 15, 2020

Resolved by changing gradle.properties
android.enableDexingArtifactTransform=false

Had same issue while implementing admob ads.. now problem solved. Thanks to @radvansky-tomas and @pamir72

@juliansteenbakker
Copy link

Same issue when using qr_code_scanner plugin. Seems to be an issue with virtual display or platform display.

@sullenel
Copy link

For me, this happens only in debug builds.

@kf6gpe
Copy link
Contributor

kf6gpe commented Dec 18, 2020

@amirh Could you have someone look at this, please?

@pamir72
Copy link
Author

pamir72 commented Dec 18, 2020

Unfortunately "android.enableDexingArtifactTransform=false" solved the problem in debug mode, but now I have a crash while starting google_maps with another issue in release mode. I don't know if I should create a new topic for this...

E/AndroidRuntime(12428): java.lang.IllegalAccessError: Interface androidx.lifecycle.b implemented by class io.flutter.plugins.googlemaps.GoogleMapController is inaccessible (declaration of 'io.flutter.plugins.googlemaps.GoogleMapController' appears in ...
E/AndroidRuntime(12428):        at io.flutter.plugins.googlemaps.g.a(Unknown Source:2)
E/AndroidRuntime(12428):        at io.flutter.plugin.platform.SingleViewPresentation.onCreate(Unknown Source:116)
E/AndroidRuntime(12428):        at android.app.Dialog.dispatchOnCreate(Dialog.java:702)
E/AndroidRuntime(12428):        at android.app.Dialog.show(Dialog.java:424)
E/AndroidRuntime(12428):        at android.app.Presentation.show(Presentation.java:283)
E/AndroidRuntime(12428):        at io.flutter.plugin.platform.l.<init>(Unknown Source:55)
E/AndroidRuntime(12428):        at io.flutter.plugin.platform.l.a(Unknown Source:65)
E/AndroidRuntime(12428):        at io.flutter.plugin.platform.k$a.g(Unknown Source:110)
E/AndroidRuntime(12428):        at io.flutter.embedding.engine.i.i$a.b(Unknown Source:152)
E/AndroidRuntime(12428):        at io.flutter.embedding.engine.i.i$a.G(Unknown Source:144)
E/AndroidRuntime(12428):        at f.a.c.a.j$a.a(Unknown Source:17)
E/AndroidRuntime(12428):        at io.flutter.embedding.engine.e.b.d(Unknown Source:57)
E/AndroidRuntime(12428):        at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(Unknown Source:4)
E/AndroidRuntime(12428):        at android.os.MessageQueue.nativePollOnce(Native Method)
E/AndroidRuntime(12428):        at android.os.MessageQueue.next(MessageQueue.java:336)
E/AndroidRuntime(12428):        at android.os.Looper.loop(Looper.java:197)
E/AndroidRuntime(12428):        at android.app.ActivityThread.main(ActivityThread.java:8154)
E/AndroidRuntime(12428):        at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(12428):        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:496)
E/AndroidRuntime(12428):        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1100)

@pamir72
Copy link
Author

pamir72 commented Dec 18, 2020

Temporary solved by adding -keep class androidx.lifecycle.** { *; } in app/proquard-rules.pro

but I think it's not a good idea

@SoftWyer
Copy link

I get this issue, but only on release builds. Current Beta and Dev channels.

Tap in a TextField and it blows the app out.

None of the above solutions worked for me, but modifying the proguard.cfg file to add the following fixes the issue. I added this to a previous project after the last TextField app crashing animation bug a few months back.

-keep class io.flutter.plugin.editing.** { *; }
[√] Flutter (Channel dev, 1.26.0-1.0.pre, on Microsoft Windows [Version 10.0.19042.685], locale en-GB)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[√] Chrome - develop for the web
[√] Android Studio (version 4.1.0)
[√] VS Code (version 1.52.1)
[√] Connected device (7 available)
E/AndroidRuntime(10192): java.lang.AbstractMethodError: abstract method "android.view.WindowInsets android.view.WindowInsetsAnimation$Callback.onProgress(android.view.WindowInsets, java.util.List)"
E/AndroidRuntime(10192): 	at android.view.View.dispatchWindowInsetsAnimationProgress(View.java:11384)

@mrkking
Copy link

mrkking commented Dec 21, 2020

also having issue, wanna see updates,
android.enableDexingArtifactTransform=false
worked for me as well.

@oguzhnatly
Copy link

android.enableDexingArtifactTransform=false worked for me, thanks.

@TahaTesser TahaTesser added the customer: crowd Affects or could affect many people, though not necessarily a specific customer. label Dec 23, 2020
@hillelcoren
Copy link
Member

We aren't using google_maps_flutter but started seeing this error when we added multiDexEnabled true in the gradle file to support a different package.

The error only occurs for us:

  • Using the dev branch
  • Running the app in release mode
  • Testing on Android 11

@oliverfunk
Copy link

Also having this issue.

flutter doctor -v:

[✓] Flutter (Channel beta, 1.25.0-8.1.pre, on Linux, locale en_ZA.UTF-8)
    • Flutter version 1.25.0-8.1.pre at /home/oliver/snap/flutter/common/flutter
    • Framework revision 8f89f6505b (13 days ago), 2020-12-15 15:07:52 -0800
    • Engine revision 92ae191c17
    • Dart version 2.12.0 (build 2.12.0-133.2.beta)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /home/oliver/Android/Sdk
    • Platform android-30, build-tools 30.0.2
    • Java binary at: /usr/local/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

@TahaTesser TahaTesser reopened this Jan 11, 2021
@TahaTesser TahaTesser added the found in release: 1.26 Found to occur in 1.26 label Jan 11, 2021
@blasten
Copy link

blasten commented Jan 11, 2021

I see. Thanks. This is the result of the migration to the Android Gradle plugin 4.1.0 and https://issuetracker.google.com/139821726.

@pamir72
Copy link
Author

pamir72 commented Jan 13, 2021

Does it fix both issues : AbstractMethodError in debug mode and IllegalAccessError in release mode ?

@farhanfadila1717
Copy link

farhanfadila1717 commented Jan 15, 2021

I have same issue. android.enableDexingArtifactTransform=false is work only for profile and debug mode.

@DomingoMG
Copy link

DomingoMG commented Jan 17, 2021

In debug mode it works with:
android.enableDexingArtifactTransform = false

In launch mode it doesn't work with:
android.enableDexingArtifactTransform = false

It crashes in the application and the device is not an Android 11.

@bambinoua
Copy link
Contributor

bambinoua commented Jan 19, 2021

@radvansky-tomas, I always interesting how did you know this?

Resolved by changing gradle.properties
android.enableDexingArtifactTransform=false

@alekseyld
Copy link

In my case fix bug only in debug build
android.enableDexingArtifactTransform = false

I was able to solve the problem in release build by adding Proguard file to Android project:

  1. Adding to gradle.properties
    android.enableDexingArtifactTransform=false
  2. Adding ProguardFiles to release buildType

proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'

    buildTypes {
        release {
            ......
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            signingConfig signingConfigs.release
        }
    }
  1. Add proguard-rules.pro file to android/app directory with content
#Flutter Wrapper
-keep class io.flutter.app.** { *; }
-keep class io.flutter.plugin.**  { *; }
-keep class io.flutter.util.**  { *; }
-keep class io.flutter.view.**  { *; }
-keep class io.flutter.**  { *; }
-keep class io.flutter.plugins.**  { *; }

@cbelogu
Copy link

cbelogu commented Jan 20, 2021

In my case fix bug only in debug build
android.enableDexingArtifactTransform = false

I was able to solve the problem in release build by adding Proguard file to Android project:

  1. Adding to gradle.properties
    android.enableDexingArtifactTransform=false
  2. Adding ProguardFiles to release buildType

proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'

    buildTypes {
        release {
            ......
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            signingConfig signingConfigs.release
        }
    }
  1. Add proguard-rules.pro file to android/app directory with content
#Flutter Wrapper
-keep class io.flutter.app.** { *; }
-keep class io.flutter.plugin.**  { *; }
-keep class io.flutter.util.**  { *; }
-keep class io.flutter.view.**  { *; }
-keep class io.flutter.**  { *; }
-keep class io.flutter.plugins.**  { *; }

This helped fix an issue that was only happening in Android 11, crash when a textfield receives focus. Thanks a lot.

@aqibaja
Copy link

aqibaja commented Jan 23, 2021

Resolved by changing gradle.properties
android.enableDexingArtifactTransform=false

Same issue. i think because i use multiDexEnabled true in build.gradle but android.enableDexingArtifactTransform=false solve my problem, thanks a lot

@sud0su
Copy link

sud0su commented Jan 25, 2021

Bumping the minSdkVersion from 16 to 24 in .../android/app/build.gradle fixes the issue

@funder7
Copy link

funder7 commented Mar 2, 2021

Bumping the minSdkVersion from 16 to 24 in .../android/app/build.gradle fixes the issue

Thanks @sud0su, it solved the problem both in debug/release mode.
By looking at the sdk share chart, it can be an acceptable solution.

@temirfe
Copy link

temirfe commented Mar 25, 2021

#Flutter Wrapper
-keep class io.flutter.app.** { ; }
-keep class io.flutter.plugin.
* { ; }
-keep class io.flutter.util.
* { ; }
-keep class io.flutter.view.
* { ; }
-keep class io.flutter.
* { ; }
-keep class io.flutter.plugins.
* { *; }

I had to add -keep class androidx.lifecycle.DefaultLifecycleObserver to the proguard-rules.pro to solve it

@mavci07
Copy link

mavci07 commented Apr 13, 2021

I have similar problem like @LuisGrt Anyone solved this error ?

logs
Launching lib\main.dart on SM P550 in debug mode...
lib\main.dart:1
√  Built build\app\outputs\flutter-apk\app-debug.apk.
Connecting to VM Service at ws://127.0.0.1:52871/f1uMjQPZ07Q=/ws
W/DynamiteModule( 3547): Local module descriptor class for com.google.android.gms.providerinstaller.dynamite not found.
I/DynamiteModule( 3547): Considering local module com.google.android.gms.providerinstaller.dynamite:0 and remote module com.google.android.gms.providerinstaller.dynamite:0
W/ProviderInstaller( 3547): Failed to load providerinstaller module: No acceptable module found. Local version is 0 and remote version is 0.
D/ConnectivityManager( 3547): requestNetwork; CallingUid : 10164, CallingPid : 3547
W/ProviderInstaller( 3547): Failed to report request stats: reportRequestStats [class android.content.Context, long]
V/NativeCrypto( 3547): Registering com/google/android/gms/org/conscrypt/NativeCrypto's 287 native methods...
I/ProviderInstaller( 3547): Installed default security provider GmsCore_OpenSSL
W/art     ( 3547): Before Android 4.1, method double java.util.concurrent.ThreadLocalRandom.internalNextDouble(double, double) would have incorrectly overridden the package-private method in java.util.Random
W/art     ( 3547): Before Android 4.1, method int java.util.concurrent.ThreadLocalRandom.internalNextInt(int, int) would have incorrectly overridden the package-private method in java.util.Random
W/art     ( 3547): Before Android 4.1, method long java.util.concurrent.ThreadLocalRandom.internalNextLong(long, long) would have incorrectly overridden the package-private method in java.util.Random
D/ConnectivityManager( 3547): requestNetwork; CallingUid : 10164, CallingPid : 3547
D/ViewRootImpl@98740d0[MainActivity]( 3547): Relayout returned: oldFrame=[0,0][768,1024] newFrame=[0,0][768,1024] result=0x1 surface={isValid=true -1891139584} surfaceGenerationChanged=false
I/zzbz    ( 3547): Making Creator dynamically
I/DynamiteModule( 3547): Considering local module com.google.android.gms.maps_dynamite:0 and remote module com.google.android.gms.maps_dynamite:203112999
I/DynamiteModule( 3547): Selected remote version of com.google.android.gms.maps_dynamite, version >= 203112999
V/DynamiteModule( 3547): Dynamite loader version >= 2, using loadModule2NoCrashUtils
W/System  ( 3547): ClassLoader referenced unknown path: /data/user_de/0/com.google.android.gms/app_chimera/m/0000002d/n/armeabi-v7a
W/System  ( 3547): ClassLoader referenced unknown path: /data/user_de/0/com.google.android.gms/app_chimera/m/0000002d/n/armeabi
I/art     ( 3547): Background partial concurrent mark sweep GC freed 81434(5MB) AllocSpace objects, 33(804KB) LOS objects, 78% free, 3MB/15MB, paused 1.389ms total 109.889ms
I/Google Maps Android API( 3547): Google Play services client version: 12451000
I/Google Maps Android API( 3547): Google Play services package version: 210915015
2
I/System.out( 3547): (HTTPLog)-Static: isSBSettingEnabled false
D/ViewRootImpl@fee3f48[MainActivity]( 3547): ThreadedRenderer.create() translucent=true
D/InputTransport( 3547): Input channel constructed: fd=160
D/ViewRootImpl@fee3f48[MainActivity]( 3547): setView = DecorView@96911e1[MainActivity] touchMode=true
V/InputMethodManager( 3547): Not IME target window, ignoring
D/ViewRootImpl@fee3f48[MainActivity]( 3547): dispatchAttachedToWindow
D/ViewRootImpl@fee3f48[MainActivity]( 3547): Relayout returned: oldFrame=[0,0][0,0] newFrame=[0,0][768,896] result=0x27 surface={isValid=true 2056685568} surfaceGenerationChanged=true
D/ViewRootImpl@fee3f48[MainActivity]( 3547): mHardwareRenderer.initialize() mSurface={isValid=true 2056685568} hwInitialized=true
D/SurfaceView( 3547): Relayout returned: oldFrame=[0,0][0,0] newFrame=[0,0][768,896] result=0x7 surface={Surface(name=null)/@0xec0f763 isValid=true -2143178752}
D/ViewRootImpl@fee3f48[MainActivity]( 3547): Relayout returned: oldFrame=[0,0][768,896] newFrame=[0,0][768,896] result=0x1 surface={isValid=true 2056685568} surfaceGenerationChanged=false
D/SurfaceView( 3547): Relayout returned: oldFrame=[0,0][768,896] newFrame=[0,0][768,896] result=0x1 surface={Surface(name=null)/@0xec0f763 isValid=true -2143176704}
D/ViewRootImpl@fee3f48[MainActivity]( 3547): MSG_RESIZED_REPORT: frame=Rect(0, 0 - 768, 896) ci=Rect(0, 0 - 0, 0) vi=Rect(0, 0 - 0, 0) or=1
2
I/System.out( 3547): (HTTPLog)-Static: isSBSettingEnabled false
W/DynamiteModule( 3547): Local module descriptor class for com.google.android.gms.googlecertificates not found.
I/DynamiteModule( 3547): Considering local module com.google.android.gms.googlecertificates:0 and remote module com.google.android.gms.googlecertificates:6
I/DynamiteModule( 3547): Selected remote version of com.google.android.gms.googlecertificates, version >= 6
W/System  ( 3547): ClassLoader referenced unknown path: /data/user_de/0/com.google.android.gms/app_chimera/m/0000002c/n/armeabi-v7a
W/System  ( 3547): ClassLoader referenced unknown path: /data/user_de/0/com.google.android.gms/app_chimera/m/0000002c/n/armeabi
2
I/System.out( 3547): (HTTPLog)-Static: isSBSettingEnabled false

@dashu1999
Copy link

dashu1999 commented Apr 23, 2021

Same issue

Running Gradle task 'assembleDebug'...
√ Built build\app\outputs\flutter-apk\app-debug.apk.
Installing build\app\outputs\flutter-apk\app.apk...
Debug service listening on ws://127.0.0.1:59330/JgyhzK4RL0c=/ws
Syncing files to device MI 8 Lite...
I/Process (31780): Sending signal. PID: 31780 SIG: 9
Lost connection to device.

@dashu1999
Copy link

Same issue. Will try the android.enableDexingArtifactTransform=false fix
It worked!

it does not work for me

@arjinakgul
Copy link

Same issue. Will try the android.enableDexingArtifactTransform=false fix
It worked!

it does not work for me

It also does not work for me. I think this is a problem that emerged again recently.

@TahaTesser
Copy link
Member

Could everyone who still has this problem please file a new issue with the exact description of what happens, logs, and the output of flutter doctor -v.
All system setups can be slightly different, so it's always better to open new issues and reference related issues.

@mavci07
Copy link

mavci07 commented Apr 28, 2021

#81374 @TahaTesser

@arjinakgul
Copy link

#81375 @TahaTesser

@TheAlphaApp
Copy link

Same issue. Will try the android.enableDexingArtifactTransform=false fix
It worked!

it does not work for me

It also does not work for me. I think this is a problem that emerged again recently.

Yes it is also not working for me.

@TheAlphaApp
Copy link

Could everyone who still has this problem please file a new issue with the exact description of what happens, logs, and the output of flutter doctor -v.
All system setups can be slightly different, so it's always better to open new issues and reference related issues.

when I call interstitial ad to show (package google_mobile_ads : ^0.12.1+1) , this happens;

E/AndroidRuntime(12991): FATAL EXCEPTION: main E/AndroidRuntime(12991): Process: com.app.ssc_x, PID: 12991 E/AndroidRuntime(12991): java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/ads/InterstitialAd; E/AndroidRuntime(12991): at io.flutter.plugins.googlemobileads.FlutterInterstitialAd.load(FlutterInterstitialAd.java:70) E/AndroidRuntime(12991): at io.flutter.plugins.googlemobileads.GoogleMobileAdsPlugin.onMethodCall(GoogleMobileAdsPlugin.java:299) E/AndroidRuntime(12991): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:233) E/AndroidRuntime(12991): at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:85) E/AndroidRuntime(12991): at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:818) E/AndroidRuntime(12991): at android.os.MessageQueue.nativePollOnce(Native Method) E/AndroidRuntime(12991): at android.os.MessageQueue.next(MessageQueue.java:336) E/AndroidRuntime(12991): at android.os.Looper.loop(Looper.java:182) E/AndroidRuntime(12991): at android.app.ActivityThread.main(ActivityThread.java:7822) E/AndroidRuntime(12991): at java.lang.reflect.Method.invoke(Native Method)E/AndroidRuntime(12991): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492) E/AndroidRuntime(12991): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1026) E/AndroidRuntime(12991): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.ads.InterstitialAd" on path: DexPathList[[zip file "/data/app/com.appdexon.ssc_quixx-tk950NvFRQi0j4L7QbpB3A==/base.apk"],nativeLibraryDirectories=[/data/app/com.appdexon.ssc_quixx-tk950NvFRQi0j4L7QbpB3A==/lib/arm64, /data/app/com.appdexon.ssc_quixx-tk950NvFRQi0j4L7QbpB3A==/base.apk!/lib/arm64-v8a, /system/lib64, /system/product/lib64]] E/AndroidRuntime(12991): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:196) E/AndroidRuntime(12991): at java.lang.ClassLoader.loadClass(ClassLoader.java:379) E/AndroidRuntime(12991): at java.lang.ClassLoader.loadClass(ClassLoader.java:312) E/AndroidRuntime(12991): ... 12 more I/Process (12991): Sending signal. PID: 12991 SIG: 9 Lost connection to device.

@KleinKodes
Copy link

when I call interstitial ad to show (package google_mobile_ads : ^0.12.1+1) , this happens;

Been having the exact same issue for days now.

@github-actions
Copy link

github-actions bot commented Aug 2, 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 -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 2, 2021
@flutter-triage-bot flutter-triage-bot bot added the package flutter/packages repository. See also p: labels. label Jul 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
c: fatal crash Crashes that terminate the process c: regression It was better in the past than it is now customer: crowd Affects or could affect many people, though not necessarily a specific customer. found in release: 1.25 Found to occur in 1.25 found in release: 1.26 Found to occur in 1.26 has reproducible steps The issue has been confirmed reproducible and is ready to work on p: maps Google Maps plugin package flutter/packages repository. See also p: labels. platform-android Android applications specifically
Projects
None yet
Development

Successfully merging a pull request may close this issue.