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

Master builds are broken #35

Closed
tobrun opened this issue Mar 9, 2019 · 3 comments
Closed

Master builds are broken #35

tobrun opened this issue Mar 9, 2019 · 3 comments
Labels
android bug Something isn't working

Comments

@tobrun
Copy link
Collaborator

tobrun commented Mar 9, 2019

Currently master is compiling but not running for me:

2019-03-09 11:46:46.828 12437-12437/com.mapbox.mapboxglexample E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.mapbox.mapboxglexample, PID: 12437
java.lang.RuntimeException: Unable to get provider android.arch.lifecycle.ProcessLifecycleOwnerInitializer: java.lang.ClassNotFoundException: Didn't find class "android.arch.lifecycle.ProcessLifecycleOwnerInitializer" on path: DexPathList[[zip file "/data/app/com.mapbox.mapboxglexample-nuAHpUG1WsyTeS6O4FLb2A==/base.apk"],nativeLibraryDirectories=[/data/app/com.mapbox.mapboxglexample-nuAHpUG1WsyTeS6O4FLb2A==/lib/arm64, /data/app/com.mapbox.mapboxglexample-nuAHpUG1WsyTeS6O4FLb2A==/base.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64]]
at android.app.ActivityThread.installProvider(ActivityThread.java:6249)
at android.app.ActivityThread.installContentProviders(ActivityThread.java:5812)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5729)
at android.app.ActivityThread.-wrap1(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1656)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6501)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
Caused by: java.lang.ClassNotFoundException: Didn't find class "android.arch.lifecycle.ProcessLifecycleOwnerInitializer" on path: DexPathList[[zip file "/data/app/com.mapbox.mapboxglexample-nuAHpUG1WsyTeS6O4FLb2A==/base.apk"],nativeLibraryDirectories=[/data/app/com.mapbox.mapboxglexample-nuAHpUG1WsyTeS6O4FLb2A==/lib/arm64, /data/app/com.mapbox.mapboxglexample-nuAHpUG1WsyTeS6O4FLb2A==/base.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:125)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at android.app.ActivityThread.installProvider(ActivityThread.java:6234)

TBI which commit introduced the regression, this issue clearly shows we need CI integration.

@tobrun tobrun added bug Something isn't working android labels Mar 9, 2019
@tobrun tobrun mentioned this issue Mar 9, 2019
@tobrun tobrun closed this as completed in #36 Mar 9, 2019
@yoavrofe
Copy link
Collaborator

yoavrofe commented Mar 9, 2019

I investigated this a bit. It seams that the apk doesn't include the flutter.so file in the /lib directory for all platforms. This caused an error for release builds as well, and forced me to insert ndk { abiFilters 'armeabi-v7a' } under defaultConfig in the app/build.gradle.

Can you please run flutter build apk and then flutter install to see what happens on your device (better test it on a 64bit device)?

You can then also drag the apk file to Android studio and try to analyse it there.

Searching for the error on Google shows that it might be a multidex issue as well.

@yoavrofe
Copy link
Collaborator

Please be sure to run flutter clean. I wasted a two hours on it today because I forgot to do it.

@tobrun
Copy link
Collaborator Author

tobrun commented Mar 11, 2019

I tried adding multidex as first step but this didn't resolve the issue.

Please be sure to run flutter clean. I wasted a two hours on it today because I forgot to do it.

🙈

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants