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

Fatal exception and Crash on Android #78

Open
amitash opened this issue Dec 30, 2020 · 3 comments
Open

Fatal exception and Crash on Android #78

amitash opened this issue Dec 30, 2020 · 3 comments

Comments

@amitash
Copy link

amitash commented Dec 30, 2020

After upgrading to flutter 1.25.0-8.1.pre, app crashes on start-up as soon as the Ads start to load. The error is similar to one reported on the flutter community at flutter/flutter#72185.

java.lang.AbstractMethodError: abstract method "void io.flutter.plugin.platform.PlatformView.onFlutterViewAttached(android.view.View)"

The temporary fix for this is to set android.enableDexingArtifactTransform=false in gradle.properties.

on iOS, this issue is absent.

@diegoflassa
Copy link

diegoflassa commented Jan 3, 2021

Same issue. Will try the android.enableDexingArtifactTransform=false fix

It worked!!

@bartonhammond
Copy link

Same issue. I added android.enableDexingArtifactTransform=false and now I can see the ads on Android (thanks! @amitash )

I am seeing this stacktrace. The ad appears fine and I can click it successfully. Not sure what it means.

W/ConnectionTracker(17043): Exception thrown while unbinding
W/ConnectionTracker(17043): java.lang.IllegalArgumentException: Service not registered: lu@6bfdddf
W/ConnectionTracker(17043): 	at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1751)
W/ConnectionTracker(17043): 	at android.app.ContextImpl.unbindService(ContextImpl.java:1776)
W/ConnectionTracker(17043): 	at android.content.ContextWrapper.unbindService(ContextWrapper.java:741)
W/ConnectionTracker(17043): 	at ci.f(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (120700-0):1)
W/ConnectionTracker(17043): 	at ci.d(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (120700-0):2)
W/ConnectionTracker(17043): 	at lv.E(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (120700-0):9)
W/ConnectionTracker(17043): 	at lf.a(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (120700-0):3)
W/ConnectionTracker(17043): 	at ef.run(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (120700-0):3)
W/ConnectionTracker(17043): 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462)
W/ConnectionTracker(17043): 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
W/ConnectionTracker(17043): 	at iy.run(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (120700-0):5)

@keeliu07
Copy link

keeliu07 commented Jan 5, 2021

same issue.
Fixed by adding android.enableDexingArtifactTransform=false
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants