Status Update
Comments
se...@google.com <se...@google.com> #2
Any updates on this? It's been a month already since I reported it, and it seems this crash is occurring quite frequently for my users.
ra...@google.com <ra...@google.com> #3
I am still regularly receiving reports about this issue, and it seems it has not been addressed in the latest 1.4.0-rc01 release.
va...@tokopedia.com <va...@tokopedia.com> #4
Seems like a fairly easy fix on our end. I'll see to that it is fixed in 1.5.
va...@tokopedia.com <va...@tokopedia.com> #5
va...@tokopedia.com <va...@tokopedia.com> #6
br...@gmail.com <br...@gmail.com> #7
We are getting random crashes after the launch of our app.
Startup library: androidx.startup:startup-runtime:1.1.0
The affected devices are by the google play / firebase crashlytics:
Chromecast Google TV (Android 10)
SWTV-20AE (Android 10)
Galaxy A3 Core (Android 10)
APAC 2K TV (Android 9)
java.lang.RuntimeException:
at android.app.ActivityThread.installProvider (ActivityThread.java:6988)
at android.app.ActivityThread.installContentProviders (ActivityThread.java:6528)
at android.app.ActivityThread.handleBindApplication (ActivityThread.java:6445)
at android.app.ActivityThread.access$1300 (ActivityThread.java:219)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1859)
at android.os.Handler.dispatchMessage (Handler.java:107)
at android.os.Looper.loop (Looper.java:214)
at android.app.ActivityThread.main (ActivityThread.java:7356)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:930)
Caused by: androidx.startup.StartupException:
at androidx.startup.AppInitializer.discoverAndInitialize (AppInitializer.java:204)
at androidx.startup.InitializationProvider.onCreate (InitializationProvider.java:38)
at android.content.ContentProvider.attachInfo (ContentProvider.java:2092)
at android.content.ContentProvider.attachInfo (ContentProvider.java:2066)
at android.app.ActivityThread.installProvider (ActivityThread.java:6983)
at android.app.ActivityThread.installContentProviders (ActivityThread.java:6528)
at android.app.ActivityThread.handleBindApplication (ActivityThread.java:6445)
at android.app.ActivityThread.access$1300 (ActivityThread.java:219)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1859)
at android.os.Handler.dispatchMessage (Handler.java:107)
at android.os.Looper.loop (Looper.java:214)
at android.app.ActivityThread.main (ActivityThread.java:7356)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:930)
Caused by: java.lang.ClassNotFoundException:
at java.lang.Class.classForName (Native Method)
at java.lang.Class.forName (Class.java:454)
at java.lang.Class.forName (Class.java:379)
at androidx.startup.AppInitializer.discoverAndInitialize (AppInitializer.java:190)
at androidx.startup.InitializationProvider.onCreate (InitializationProvider.java:38)
at android.content.ContentProvider.attachInfo (ContentProvider.java:2092)
at android.content.ContentProvider.attachInfo (ContentProvider.java:2066)
at android.app.ActivityThread.installProvider (ActivityThread.java:6983)
at android.app.ActivityThread.installContentProviders (ActivityThread.java:6528)
at android.app.ActivityThread.handleBindApplication (ActivityThread.java:6445)
at android.app.ActivityThread.access$1300 (ActivityThread.java:219)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1859)
at android.os.Handler.dispatchMessage (Handler.java:107)
at android.os.Looper.loop (Looper.java:214)
at android.app.ActivityThread.main (ActivityThread.java:7356)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:930)
ji...@gmail.com <ji...@gmail.com> #8
oz...@gmail.com <oz...@gmail.com> #9
ti...@facer.io <ti...@facer.io> #10
Building the app with proguard enabled I do see the InitializationProvider in the main dex file. We are seeing these crashes specifically on Samsung wearable devices (Galaxy Watch 4).
ja...@deliveroo.co.uk <ja...@deliveroo.co.uk> #11
We followed the guide in this devrel article to add a ComposeInitializer with androidx startup
However after the update, we started seeing some crashes from Android 10 devices
Fatal Exception: java.lang.RuntimeException: Unable to get provider androidx.startup.InitializationProvider: androidx.startup.StartupException: java.lang.ClassNotFoundException: com.example.ComposeInitializer
at android.app.ActivityThread.installProvider(ActivityThread.java:7618)
at android.app.ActivityThread.installContentProviders(ActivityThread.java:7158)
at android.app.ActivityThread.handleMakeApplication(ActivityThread.java:7021)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6989)
at android.app.ActivityThread.access$1600(ActivityThread.java:272)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2055)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:237)
at android.app.ActivityThread.main(ActivityThread.java:8016)
We are using androidx startup 1.1.1, so we have the change to force initializers into the primary dex file. However when I inspected the apk/app bundle, this wasn't working and ComposeInitializer was in classes22.dex.
I tried replicating your changes from
Interestingly, similar to the OP of this issue, crashlytics says that all of these crashes happened in the background.
Is it safe to ignore these crashes, given they are all in the bg?
ra...@google.com <ra...@google.com> #12
Is your app multi-process ?
ra...@google.com <ra...@google.com> #13
The app is likely a multi-process app, in which case you have to define the startup provider per process.
ra...@google.com <ra...@google.com> #14
If that's not the case, please update with a comment and I can take another look.
ji...@gmail.com <ji...@gmail.com> #15
m....@gmail.com <m....@gmail.com> #16
`Fatal Exception: java.lang.RuntimeException: Unable to get provider androidx.startup.InitializationProvider: androidx.startup.StartupException: java.lang.ClassNotFoundException: androidx.lifecycle.ProcessLifecycleInitializer
Single process. `lifecycle-process` 2.5.1 which seems to bring `startup-process` 1.1.1. Dex files from AS built apk seem to have ProcessInitializationProvider in main file. It shows exceptions in some Android 10 devices.
With the lifecycle-process 2.2.0 which used old way of initializing we had similar exception with androidx.lifecycle.ProcessLifecycleOwnerInitializer.
Any idea if this can be dex problem?
4d...@gmail.com <4d...@gmail.com> #17
Fatal Exception: java.lang.RuntimeException: Unable to get provider androidx.startup.InitializationProvider: androidx.startup.StartupException: java.lang.ClassNotFoundException: androidx.profileinstaller.ProfileInstallerInitializer
at android.app.ActivityThread.installProvider(ActivityThread.java:7512)
at android.app.ActivityThread.installContentProviders(ActivityThread.java:7029)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6935)
at android.app.ActivityThread.access$1600(ActivityThread.java:259)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2110)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:230)
at android.app.ActivityThread.main(ActivityThread.java:7880)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:526)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1034)
Device
Brand:Vivo
Model:V2027
Orientation:Portrait
RAM free: 872.74 MB
Disk free: 15.85 GB
Operating system
Version:Android 10
Orientation:Portrait
Rooted:No
Crash Date:2 Apr 2024, 18:05:58
da...@google.com <da...@google.com> #18
This also appears to affect the NDK's native-activity sample:
There is no explicit dependency on androidx.startup
:
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.5.1'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
}
./gradlew app:dependencies
says it's brought in by a variety of things (lifecycle-process, emoji2, maybe a few other things). It's also direct from appcompat.
(that constraintlayout dependency is actually unnecessary, but I'm avoiding cleaning it up until I know what's going on here)
Running that app results in:
2022-08-14 18:30:36.023 14766-14766 AndroidRuntime com.example.native_activity E FATAL EXCEPTION: main
Process: com.example.native_activity, PID: 14766
java.lang.RuntimeException: Unable to get provider androidx.startup.InitializationProvider: java.lang.ClassNotFoundException: Didn't find class "androidx.startup.InitializationProvider" on path: DexPathList[[],nativeLibraryDirectories=[/data/app/~~PP1egPbFLI-kmk-JnW88Bg==/com.example.native_activity-SG8fEP0Dk5oc_F24oNObwA==/lib/arm64, /data/app/~~PP1egPbFLI-kmk-JnW88Bg==/com.example.native_activity-SG8fEP0Dk5oc_F24oNObwA==/base.apk!/lib/arm64-v8a, /system/lib64, /system_ext/lib64]]
at android.app.ActivityThread.installProvider(ActivityThread.java:7464)
at android.app.ActivityThread.installContentProviders(ActivityThread.java:6976)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6747)
at android.app.ActivityThread.access$1500(ActivityThread.java:256)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2091)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7870)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
Caused by: java.lang.ClassNotFoundException: Didn't find class "androidx.startup.InitializationProvider" on path: DexPathList[[],nativeLibraryDirectories=[/data/app/~~PP1egPbFLI-kmk-JnW88Bg==/com.example.native_activity-SG8fEP0Dk5oc_F24oNObwA==/lib/arm64, /data/app/~~PP1egPbFLI-kmk-JnW88Bg==/com.example.native_activity-SG8fEP0Dk5oc_F24oNObwA==/base.apk!/lib/arm64-v8a, /system/lib64, /system_ext/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:218)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at android.app.AppComponentFactory.instantiateProvider(AppComponentFactory.java:147)
at android.app.ActivityThread.installProvider(ActivityThread.java:7448)
at android.app.ActivityThread.installContentProviders(ActivityThread.java:6976)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6747)
at android.app.ActivityThread.access$1500(ActivityThread.java:256)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2091)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7870)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
The merged manifest (cat ./app/build/intermediates/packaged_manifests/debug/AndroidManifest.xml
) is:
<?xml version="1.0" encoding="utf-8"?>
<!-- BEGIN_INCLUDE(manifest) -->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.native_activity"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="33" />
<!-- This .apk has no Java code itself, so set hasCode to false. -->
<application
android:allowBackup="false"
android:appComponentFactory="androidx.core.app.CoreComponentFactory"
android:debuggable="true"
android:fullBackupContent="false"
android:hasCode="false"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name" >
<!--
Our activity is the built-in NativeActivity framework class.
This will take care of integrating with our NDK code.
-->
<activity
android:name="android.app.NativeActivity"
android:configChanges="orientation|keyboardHidden"
android:exported="true"
android:label="@string/app_name" >
<!-- Tell NativeActivity the name of our .so -->
<meta-data
android:name="android.app.lib_name"
android:value="native-activity" />
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<provider
android:name="androidx.startup.InitializationProvider"
android:authorities="com.example.native_activity.androidx-startup"
android:exported="false" >
<meta-data
android:name="androidx.emoji2.text.EmojiCompatInitializer"
android:value="androidx.startup" />
<meta-data
android:name="androidx.lifecycle.ProcessLifecycleInitializer"
android:value="androidx.startup" />
</provider>
</application>
</manifest> <!-- END_INCLUDE(manifest) -->
The app works correctly if I revert appcompat to 1.3.1 or older.
The PR offers a workaround, but why's it necessary? If it is necessary, where is it documented? I couldn't find any documentation telling me that I need to add this <provider />
tag other than
If this is just a thing that NativeActivity
apps need to include explicitly, I'm fine with that, but I can't find any documentation to support that, and based on the other folks in the thread who (I think) are not using NativeActivity
, it sure feels like there's something else going on.
da...@google.com <da...@google.com> #19
da...@google.com <da...@google.com> #20
My best guess is that hasCode
would be more accurately hasDex
, and that at some point in the past this sample did not have appcompat
, and thus did not have any DEX in the APK. Whenever appcompat
was added it starting containing DEX and that property should have been flipped. Or it's always been there and always been wrong, but only recently started showing symptoms.
rahulrav: does that sound correct to you? If so (and assuming that's the problem for the others in this thread), I would guess it's not fixable from androidx's end, since the app's manifest should win the merge, right? Assuming I'm right on all that, the "fix" here is probably just better docs. app:hasCode
is not false
.
da...@google.com <da...@google.com> #21
My best guess is that hasCode would be more accurately hasDex, and that at some point in the past this sample did not have appcompat, and thus did not have any DEX in the APK. Whenever appcompat was added it starting containing DEX and that property should have been flipped.
This appears to be correct. I've sent a CL to improve the docs.
da...@google.com <da...@google.com> #22
Anyone else that ran into this, check that you don't have app:hasCode="false"
in your manifest. If you do, that's likely the problem. If that isn't the problem, let us know and we'll reopen. And apologies for taking over your bug with an unrelated problem if that is the case :)
ge...@opennet.tw <ge...@opennet.tw> #23
We have a related problem :
dalvik.system.BaseDexClassLoader.findClass java.lang.ClassNotFoundException - Didn't find class "androidx.startup.InitializationProvider" on path: DexPathList
But we don't have app:hasCode="false" in the manifest
xr...@gmail.com <xr...@gmail.com> #24
After upgrading androidx.lifecycle from 2.7.0 to 2.8.0, I also encountered a similar issue.
java.lang.RuntimeException: Unable to get provider androidx.startup.InitializationProvider: androidx.startup.StartupException: androidx.startup.StartupException: java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/lifecycle/ReportFragment$ActivityInitializationListener;
at android.app.ActivityThread.installProvider(ActivityThread.java:7292)
at android.app.ActivityThread.installContentProviders(ActivityThread.java:6828)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6723)
at android.app.ActivityThread.access$1300(ActivityThread.java:238)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1914)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:223)
at android.app.ActivityThread.main(ActivityThread.java:7705)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:952)
Caused by: androidx.startup.StartupException: androidx.startup.StartupException: java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/lifecycle/ReportFragment$ActivityInitializationListener;
at androidx.startup.AppInitializer.doInitialize(AppInitializer.java:187)
at androidx.startup.AppInitializer.discoverAndInitialize(AppInitializer.java:238)
at androidx.startup.AppInitializer.discoverAndInitialize(AppInitializer.java:206)
at androidx.startup.InitializationProvider.onCreate(InitializationProvider.java:45)
at android.content.ContentProvider.attachInfo(ContentProvider.java:2388)
at android.content.ContentProvider.attachInfo(ContentProvider.java:2358)
at android.app.ActivityThread.installProvider(ActivityThread.java:7287)
at android.app.ActivityThread.installContentProviders(ActivityThread.java:6828)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6723)
at android.app.ActivityThread.access$1300(ActivityThread.java:238)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1914)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:223)
at android.app.ActivityThread.main(ActivityThread.java:7705)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:952)
Caused by: androidx.startup.StartupException: java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/lifecycle/ReportFragment$ActivityInitializationListener;
at androidx.startup.AppInitializer.doInitialize(AppInitializer.java:187)
at androidx.startup.AppInitializer.doInitialize(AppInitializer.java:173)
at androidx.startup.AppInitializer.discoverAndInitialize(AppInitializer.java:238)
at androidx.startup.AppInitializer.discoverAndInitialize(AppInitializer.java:206)
at androidx.startup.InitializationProvider.onCreate(InitializationProvider.java:45)
at android.content.ContentProvider.attachInfo(ContentProvider.java:2388)
at android.content.ContentProvider.attachInfo(ContentProvider.java:2358)
at android.app.ActivityThread.installProvider(ActivityThread.java:7287)
at android.app.ActivityThread.installContentProviders(ActivityThread.java:6828)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6723)
at android.app.ActivityThread.access$1300(ActivityThread.java:238)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1914)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:223)
at android.app.ActivityThread.main(ActivityThread.java:7705)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:952)
Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/lifecycle/ReportFragment$ActivityInitializationListener;
at androidx.lifecycle.ProcessLifecycleInitializer.create(ProcessLifecycleInitializer.kt:37)
at androidx.lifecycle.ProcessLifecycleInitializer.create(ProcessLifecycleInitializer.kt:25)
at androidx.startup.AppInitializer.doInitialize(AppInitializer.java:180)
at androidx.startup.AppInitializer.doInitialize(AppInitializer.java:173)
at androidx.startup.AppInitializer.discoverAndInitialize(AppInitializer.java:238)
at androidx.startup.AppInitializer.discoverAndInitialize(AppInitializer.java:206)
at androidx.startup.InitializationProvider.onCreate(InitializationProvider.java:45)
at android.content.ContentProvider.attachInfo(ContentProvider.java:2388)
at android.content.ContentProvider.attachInfo(ContentProvider.java:2358)
at android.app.ActivityThread.installProvider(ActivityThread.java:7287)
at android.app.ActivityThread.installContentProviders(ActivityThread.java:6828)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6723)
at android.app.ActivityThread.access$1300(ActivityThread.java:238)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1914)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:223)
at android.app.ActivityThread.main(ActivityThread.java:7705)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:952)
Caused by: java.lang.ClassNotFoundException: Didn't find class "androidx.lifecycle.ReportFragment$ActivityInitializationListener" on path: DexPathList[[zip file "/data/app/~~x0jwCxt1KOO6hA53V7AL7w==/com.iraytek.SModel-BNhCK3sgHeXXgSzh9rTgMg==/base.apk"],nativeLibraryDirectories=[/data/app/~~x0jwCxt1KOO6hA53V7AL7w==/com.iraytek.SModel-BNhCK3sgHeXXgSzh9rTgMg==/lib/arm64, /data/app/~~x0jwCxt1KOO6hA53V7AL7w==/com.iraytek.SModel-BNhCK3sgHeXXgSzh9rTgMg==/base.apk!/lib/arm64-v8a, /system/lib64, /system_ext/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:207)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at androidx.lifecycle.ProcessLifecycleInitializer.create(ProcessLifecycleInitializer.kt:37)
at androidx.lifecycle.ProcessLifecycleInitializer.create(ProcessLifecycleInitializer.kt:25)
at androidx.startup.AppInitializer.doInitialize(AppInitializer.java:180)
at androidx.startup.AppInitializer.doInitialize(AppInitializer.java:173)
at androidx.startup.AppInitializer.discoverAndInitialize(AppInitializer.java:238)
at androidx.startup.AppInitializer.discoverAndInitialize(AppInitializer.java:206)
at androidx.startup.InitializationProvider.onCreate(InitializationProvider.java:45)
at android.content.ContentProvider.attachInfo(ContentProvider.java:2388)
at android.content.ContentProvider.attachInfo(ContentProvider.java:2358)
at android.app.ActivityThread.installProvider(ActivityThread.java:7287)
at android.app.ActivityThread.installContentProviders(ActivityThread.java:6828)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6723)
at android.app.ActivityThread.access$1300(ActivityThread.java:238)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1914)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:223)
at android.app.ActivityThread.main(ActivityThread.java:7705)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:952)
cm...@gmail.com <cm...@gmail.com> #25
> api "androidx.lifecycle:lifecycle-runtime-ktx:2.8.1"
aTalk crashes on launch with:
// 2.8.x causes RuntimeException: Unable to get provider androidx.startup.InitializationProvider:
// androidx.startup.StartupException: java.lang.NoClassDefFoundError: Failed resolution of:
// Landroidx/lifecycle/ReportFragment$ActivityInitializationListener;
When move to use a lower version, the problem is resolved.
> api "androidx.lifecycle:lifecycle-runtime-ktx:2.7.0"
da...@google.com <da...@google.com> #26
#23 says that this happens for cases without hasCode="false"
(sorry for the delay in reopening).
jo...@gmail.com <jo...@gmail.com> #27
sh...@gmail.com <sh...@gmail.com> #28
this is issue happening with 2.7.0 as well , app:hasCode="false" this is not there in the code
sa...@peilicke.de <sa...@peilicke.de> #29
This could be the same as
Description
Version used: 2.6.0
Devices/Android versions reproduced on:
Oppo , Android 9, 100 percent in the background.
Hey guys we just upgraded the workManager version from 2.5.0 to 2.6.0.
As shown on the
Upon investigation we found that androidx.startup version 1.0.0 has been imported with the workManager version 2.6.0.
We use pro guard to obfuscate our code for production Apk.
We are getting this crash in the Oppo devices :
Caused by java.lang.ClassNotFoundException: Didn't find class "androidx.startup.InitializationProvider" on path: DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/com.tokopedia.tkpd--uP2gabRzmsyiWEbmh9Btg==/base.apk"],nativeLibraryDirectories=[/data/app/com.tokopedia.tkpd--uP2gabRzmsyiWEbmh9Btg==/lib/arm64, /data/app/com.tokopedia.tkpd--uP2gabRzmsyiWEbmh9Btg==/base.apk!/lib/arm64-v8a, /system/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at android.app.AppComponentFactory.instantiateProvider(AppComponentFactory.java:121)
at androidx.core.app.CoreComponentFactory.instantiateProvider(CoreComponentFactory.java:67)
at android.app.ActivityThread.installProvider(ActivityThread.java:6874)
at android.app.ActivityThread.installContentProviders(ActivityThread.java:6393)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6308)
at android.app.ActivityThread.access$1200(ActivityThread.java:224)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1844)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:233)
at android.app.ActivityThread.main(ActivityThread.java:7212)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:499)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:965)