Skip to content

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

Closed

Description

@pamir72

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

Activity

  1. LuisGrt commented on Dec 12, 2020

    @LuisGrt

    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!
  2. radvansky-tomas commented on Dec 13, 2020

    @radvansky-tomas

    Same issue

  3. sgehrman commented on Dec 13, 2020

    @sgehrman
  4. radvansky-tomas commented on Dec 13, 2020

    @radvansky-tomas

    Resolved by changing gradle.properties
    android.enableDexingArtifactTransform=false

  5. rohitkhatri commented on Dec 13, 2020

    @rohitkhatri

    I'm also facing the same issue.

  6. rohitkhatri commented on Dec 13, 2020

    @rohitkhatri

    Resolved by changing gradle.properties
    android.enableDexingArtifactTransform=false

    It worked for me, thanks.

  7. TahaTesser commented on Dec 14, 2020

    @TahaTesser
    Contributor

    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.
  8. 37 remaining items

  9. trane77 commented on Mar 2, 2021

    @trane77

    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.

  10. temirfe commented on Mar 25, 2021

    @temirfe

    #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

  11. mavci07 commented on Apr 13, 2021

    @mavci07

    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
  12. dashu1999 commented on Apr 23, 2021

    @dashu1999

    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.

  13. dashu1999 commented on Apr 23, 2021

    @dashu1999

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

    it does not work for me

  14. arjinakgul commented on Apr 28, 2021

    @arjinakgul

    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.

  15. TahaTesser commented on Apr 28, 2021

    @TahaTesser
    Contributor

    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.

  16. mavci07 commented on Apr 28, 2021

    @mavci07
  17. arjinakgul commented on Apr 28, 2021

    @arjinakgul
  18. TheAlphaApp commented on Apr 28, 2021

    @TheAlphaApp

    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.

  19. TheAlphaApp commented on Apr 28, 2021

    @TheAlphaApp

    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.

  20. KleinKodes commented on May 6, 2021

    @KleinKodes

    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.

  21. github-actions commented on Aug 2, 2021

    @github-actions

    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.

  22. locked as resolved and limited conversation to collaborators on Aug 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

c: fatal crashCrashes that terminate the processc: regressionIt was better in the past than it is nowcustomer: crowdAffects or could affect many people, though not necessarily a specific customer.found in release: 1.25Found to occur in 1.25found in release: 1.26Found to occur in 1.26has reproducible stepsThe issue has been confirmed reproducible and is ready to work onp: mapsGoogle Maps pluginpackageflutter/packages repository. See also p: labels.platform-androidAndroid applications specifically

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions