MAUI Anroid - java.lang.ClassNotFoundException: Didn't find class "androidx.startup.InitializationProvider"

Aneetha 65 Reputation points
2024-10-17T12:11:52.0966667+00:00

I have an MAUI Net 8 project, when running the project , the app is installed, but upon startup, the app crashed with the following exception,

Java.Lang.RuntimeException: Unable to get provider androidx.startup.InitializationProvider: java.lang.ClassNotFoundException: Didn't find class "androidx.startup.InitializationProvider" on path: DexPathList[[zip file "/data/app/~~xi_b7t4ieNG0dd3fn3N2Bg==/com.SKM.SKMMobileApp-RgclfUvdWvQZdDCUlftF9Q==/base.apk"],nativeLibraryDirectories=[/data/app/~~xi_b7t4ieNG0dd3fn3N2Bg==/com.SKM.SKMMobileApp-RgclfUvdWvQZdDCUlftF9Q==/lib/arm64, /data/app/~~xi_b7t4ieNG0dd3fn3N2Bg==/com.SKM.SKMMobileApp-RgclfUvdWvQZdDCUlftF9Q==/base.apk!/lib/arm64-v8a, /system/lib64, /system_ext/lib64]]

---> Java.Lang.ClassNotFoundException: Didn't find class "androidx.startup.InitializationProvider" on path: DexPathList[[zip file "/data/app/~~xi_b7t4ieNG0dd3fn3N2Bg==/com.SKM.SKMMobileApp-RgclfUvdWvQZdDCUlftF9Q==/base.apk"],nativeLibraryDirectories=[/data/app/~~xi_b7t4ieNG0dd3fn3N2Bg==/com.SKM.SKMMobileApp-RgclfUvdWvQZdDCUlftF9Q==/lib/arm64, /data/app/~~xi_b7t4ieNG0dd3fn3N2Bg==/com.SKM.SKMMobileApp-RgclfUvdWvQZdDCUlftF9Q==/base.apk!/lib/arm64-v8a, /system/lib64, /system_ext/lib64]]

--- End of managed Java.Lang.ClassNotFoundException stack trace ---

java.lang.ClassNotFoundException: Didn't find class "androidx.startup.InitializationProvider" on path: DexPathList[[zip file "/data/app/~~xi_b7t4ieNG0dd3fn3N2Bg==/com.SKM.SKMMobileApp-RgclfUvdWvQZdDCUlftF9Q==/base.apk"],nativeLibraryDirectories=[/data/app/~~xi_b7t4ieNG0dd3fn3N2Bg==/com.SKM.SKMMobileApp-RgclfUvdWvQZdDCUlftF9Q==/lib/arm64, /data/app/~~xi_b7t4ieNG0dd3fn3N2Bg==/com.SKM.SKMMobileApp-RgclfUvdWvQZdDCUlftF9Q==/base.apk!/lib/arm64-v8a, /system/lib64, /system_ext/lib64]]

at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:259)

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:8367)

at android.app.ActivityThread.installContentProviders(ActivityThread.java:7889)

at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7576)

at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)

at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2428)

at android.os.Handler.dispatchMessage(Handler.java:106)

at android.os.Looper.loopOnce(Looper.java:257)

at android.os.Looper.loop(Looper.java:368)

at android.app.ActivityThread.main(ActivityThread.java:8839)

at java.lang.reflect.Method.invoke(Native Method)

at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:572)

at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1049)

--- End of managed Java.Lang.ClassNotFoundException stack trace ---

java.lang.ClassNotFoundException: Didn't find class "androidx.startup.InitializationProvider" on path: DexPathList[[zip file "/data/app/~~xi_b7t4ieNG0dd3fn3N2Bg==/com.SKM.SKMMobileApp-RgclfUvdWvQZdDCUlftF9Q==/base.apk"],nativeLibraryDirectories=[/data/app/~~xi_b7t4ieNG0dd3fn3N2Bg==/com.SKM.SKMMobileApp-RgclfUvdWvQZdDCUlftF9Q==/lib/arm64, /data/app/~~xi_b7t4ieNG0dd3fn3N2Bg==/com.SKM.SKMMobileApp-RgclfUvdWvQZdDCUlftF9Q==/base.apk!/lib/arm64-v8a, /system/lib64, /system_ext/lib64]]

at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:259)

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:8367)

at android.app.ActivityThread.installContentProviders(ActivityThread.java:7889)

at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7576)

at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)

at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2428)

at android.os.Handler.dispatchMessage(Handler.java:106)

at android.os.Looper.loopOnce(Looper.java:257)

at android.os.Looper.loop(Looper.java:368)

at android.app.ActivityThread.main(ActivityThread.java:8839)

at java.lang.reflect.Method.invoke(Native Method)

at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:572)

at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1049)

--- End of inner exception stack trace ---

--- End of managed Java.Lang.RuntimeException stack trace ---

java.lang.RuntimeException: Unable to get provider androidx.startup.InitializationProvider: java.lang.ClassNotFoundException: Didn't find class "androidx.startup.InitializationProvider" on path: DexPathList[[zip file "/data/app/~~xi_b7t4ieNG0dd3fn3N2Bg==/com.SKM.SKMMobileApp-RgclfUvdWvQZdDCUlftF9Q==/base.apk"],nativeLibraryDirectories=[/data/app/~~xi_b7t4ieNG0dd3fn3N2Bg==/com.SKM.SKMMobileApp-RgclfUvdWvQZdDCUlftF9Q==/lib/arm64, /data/app/~~xi_b7t4ieNG0dd3fn3N2Bg==/com.SKM.SKMMobileApp-RgclfUvdWvQZdDCUlftF9Q==/base.apk!/lib/arm64-v8a, /system/lib64, /system_ext/lib64]]

at android.app.ActivityThread.installProvider(ActivityThread.java:8383)

at android.app.ActivityThread.installContentProviders(ActivityThread.java:7889)

at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7576)

at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)

at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2428)

at android.os.Handler.dispatchMessage(Handler.java:106)

at android.os.Looper.loopOnce(Looper.java:257)

at android.os.Looper.loop(Looper.java:368)

at android.app.ActivityThread.main(ActivityThread.java:8839)

at java.lang.reflect.Method.invoke(Native Method)

at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:572)

at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1049)

Caused by: java.lang.ClassNotFoundException: Didn't find class "androidx.startup.InitializationProvider" on path: DexPathList[[zip file "/data/app/~~xi_b7t4ieNG0dd3fn3N2Bg==/com.SKM.SKMMobileApp-RgclfUvdWvQZdDCUlftF9Q==/base.apk"],nativeLibraryDirectories=[/data/app/~~xi_b7t4ieNG0dd3fn3N2Bg==/com.SKM.SKMMobileApp-RgclfUvdWvQZdDCUlftF9Q==/lib/arm64, /data/app/~~xi_b7t4ieNG0dd3fn3N2Bg==/com.SKM.SKMMobileApp-RgclfUvdWvQZdDCUlftF9Q==/base.apk!/lib/arm64-v8a, /system/lib64, /system_ext/lib64]]

at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:259)

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:8367)

... 11 more

--- End of managed Java.Lang.RuntimeException stack trace ---

java.lang.RuntimeException: Unable to get provider androidx.startup.InitializationProvider: java.lang.ClassNotFoundException: Didn't find class "androidx.startup.InitializationProvider" on path: DexPathList[[zip file "/data/app/~~xi_b7t4ieNG0dd3fn3N2Bg==/com.SKM.SKMMobileApp-RgclfUvdWvQZdDCUlftF9Q==/base.apk"],nativeLibraryDirectories=[/data/app/~~xi_b7t4ieNG0dd3fn3N2Bg==/com.SKM.SKMMobileApp-RgclfUvdWvQZdDCUlftF9Q==/lib/arm64, /data/app/~~xi_b7t4ieNG0dd3fn3N2Bg==/com.SKM.SKMMobileApp-RgclfUvdWvQZdDCUlftF9Q==/base.apk!/lib/arm64-v8a, /system/lib64, /system_ext/lib64]]

at android.app.ActivityThread.installProvider(ActivityThread.java:8383)

at android.app.ActivityThread.installContentProviders(ActivityThread.java:7889)

at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7576)

at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)

at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2428)

at android.os.Handler.dispatchMessage(Handler.java:106)

at android.os.Looper.loopOnce(Looper.java:257)

at android.os.Looper.loop(Looper.java:368)

at android.app.ActivityThread.main(ActivityThread.java:8839)

at java.lang.reflect.Method.invoke(Native Method)

at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:572)

at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1049)

Caused by: java.lang.ClassNotFoundException: Didn't find class "androidx.startup.InitializationProvider" on path: DexPathList[[zip file "/data/app/~~xi_b7t4ieNG0dd3fn3N2Bg==/com.SKM.SKMMobileApp-RgclfUvdWvQZdDCUlftF9Q==/base.apk"],nativeLibraryDirectories=[/data/app/~~xi_b7t4ieNG0dd3fn3N2Bg==/com.SKM.SKMMobileApp-RgclfUvdWvQZdDCUlftF9Q==/lib/arm64, /data/app/~~xi_b7t4ieNG0dd3fn3N2Bg==/com.SKM.SKMMobileApp-RgclfUvdWvQZdDCUlftF9Q==/base.apk!/lib/arm64-v8a, /system/lib64, /system_ext/lib64]]

at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:259)

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:8367)

... 11 more

Please help me to resolve this issue.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,579 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.