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

java.lang.RuntimeException: Unable to get provider androidx.startup.InitializationProvider #54

Open
conde-aruns opened this issue Aug 25, 2022 · 0 comments

Comments

@conde-aruns
Copy link

Hi.

I am facing the following issue when I integrate library version 3.0.5

com.parsely:parsely:3.0.5

 FATAL EXCEPTION: main
 Process: com.condenast.thenewyorker.android, PID: 10216
 java.lang.RuntimeException: Unable to get provider androidx.startup.InitializationProvider: androidx.startup.StartupException: java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/lifecycle/ProcessLifecycleInitializ
    er;
 at android.app.ActivityThread.installProvider(ActivityThread.java:7776)
 at android.app.ActivityThread.installContentProviders(ActivityThread.java:7288)
 at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7028)
 at android.app.ActivityThread.access$1800(ActivityThread.java:254)
 at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2184)
 at android.os.Handler.dispatchMessage(Handler.java:106)
 at android.os.Looper.loopOnce(Looper.java:233)
 at android.os.Looper.loop(Looper.java:344)
 at android.app.ActivityThread.main(ActivityThread.java:8212)
 at java.lang.reflect.Method.invoke(Native Method)
 at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:584)
 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1034)
 Caused by: androidx.startup.StartupException: java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/lifecycle/ProcessLifecycleInitializer;
 at androidx.startup.AppInitializer.doInitialize(AppInitializer.java:162)
 at androidx.startup.AppInitializer.discoverAndInitialize(AppInitializer.java:198)
 at androidx.startup.InitializationProvider.onCreate(InitializationProvider.java:38)
 at android.content.ContentProvider.attachInfo(ContentProvider.java:2413)
 at android.content.ContentProvider.attachInfo(ContentProvider.java:2383)
 at android.app.ActivityThread.installProvider(ActivityThread.java:7771)
 ... 11 more
 Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/lifecycle/ProcessLifecycleInitializer;
 at androidx.emoji2.text.EmojiCompatInitializer.dependencies(EmojiCompatInitializer.java:128)
 at androidx.startup.AppInitializer.doInitialize(AppInitializer.java:143)
 ... 16 more
 Caused by: java.lang.ClassNotFoundException: Didn't find class "androidx.lifecycle.ProcessLifecycleInitializer" on path: DexPathList[[zip file "/data/app/~~raM1iJz7HW1AdFilTYKlzQ==/com.condenast.thenewyorker.android-kRXVe4hCKI
    XwAezTUHtLEQ==/base.apk", zip file "/data/app/~~raM1iJz7HW1AdFilTYKlzQ==/com.condenast.thenewyorker.android-kRXVe4hCKIXwAezTUHtLEQ==/split_tny_articles.apk", zip file "/data/app/~~raM1iJz7HW1AdFilTYKlzQ==/com.condenast.thenewy
    orker.android-kRXVe4hCKIXwAezTUHtLEQ==/split_tny_linksubscription.apk", zip file "/data/app/~~raM1iJz7HW1AdFilTYKlzQ==/com.condenast.thenewyorker.android-kRXVe4hCKIXwAezTUHtLEQ==/split_tny_subscription.apk", zip file "/data/ap
    p/~~raM1iJz7HW1AdFilTYKlzQ==/com.condenast.thenewyorker.android-kRXVe4hCKIXwAezTUHtLEQ==/split_tny_topstories.apk"],nativeLibraryDirectories=[/data/app/~~raM1iJz7HW1AdFilTYKlzQ==/com.condenast.thenewyorker.android-kRXVe4hCKIXw
    AezTUHtLEQ==/lib/arm64, /data/app/~~raM1iJz7HW1AdFilTYKlzQ==/com.condenast.thenewyorker.android-kRXVe4hCKIXwAezTUHtLEQ==/base.apk!/lib/arm64-v8a, /data/app/~~raM1iJz7HW1AdFilTYKlzQ==/com.condenast.thenewyorker.android-kRXVe4hC
    KIXwAezTUHtLEQ==/split_tny_articles.apk!/lib/arm64-v8a, /data/app/~~raM1iJz7HW1AdFilTYKlzQ==/com.condenast.thenewyorker.android-kRXVe4hCKIXwAezTUHtLEQ==/split_tny_linksubscription.apk!/lib/arm64-v8a, /data/app/~~raM1iJz7HW1AdF
    ilTYKlzQ==/com.condenast.thenewyorker.android-kRXVe4hCKIXwAezTUHtLEQ==/split_tny_subscription.apk!/lib/arm64-v8a, /data/app/~~raM1iJz7HW1AdFilTYKlzQ==/com.condenast.thenewyorker.android-kRXVe4hCKIXwAezTUHtLEQ==/split_tny_topst
    ories.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)
 ... 18 more

Could someone please help us with this issue.

compileSdkVersion - 32
targetSdkVersion - 32

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

1 participant