You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I've updated the stripe-android SDK version to 20.53.0 and I get this error: FATAL EXCEPTION: main Process: it.peachwire.myapplication, PID: 6669 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:8231) at android.app.ActivityThread.installContentProviders(ActivityThread.java:7728) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7482) at android.app.ActivityThread.access$1600(ActivityThread.java:310) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2281) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loopOnce(Looper.java:226) at android.os.Looper.loop(Looper.java:313) at android.app.ActivityThread.main(ActivityThread.java:8669) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135) 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:2516) at android.content.ContentProvider.attachInfo(ContentProvider.java:2486) at android.app.ActivityThread.installProvider(ActivityThread.java:8226) at android.app.ActivityThread.installContentProviders(ActivityThread.java:7728) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7482) at android.app.ActivityThread.access$1600(ActivityThread.java:310) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2281) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loopOnce(Looper.java:226) at android.os.Looper.loop(Looper.java:313) at android.app.ActivityThread.main(ActivityThread.java:8669) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135) 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:2516) at android.content.ContentProvider.attachInfo(ContentProvider.java:2486) at android.app.ActivityThread.installProvider(ActivityThread.java:8226) at android.app.ActivityThread.installContentProviders(ActivityThread.java:7728) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7482) at android.app.ActivityThread.access$1600(ActivityThread.java:310) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2281) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loopOnce(Looper.java:226) at android.os.Looper.loop(Looper.java:313) at android.app.ActivityThread.main(ActivityThread.java:8669) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135) 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:2516) at android.content.ContentProvider.attachInfo(ContentProvider.java:2486) at android.app.ActivityThread.installProvider(ActivityThread.java:8226) at android.app.ActivityThread.installContentProviders(ActivityThread.java:7728) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7482) at android.app.ActivityThread.access$1600(ActivityThread.java:310) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2281) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loopOnce(Looper.java:226) at android.os.Looper.loop(Looper.java:313) at android.app.ActivityThread.main(ActivityThread.java:8669) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135) Caused by: java.lang.ClassNotFoundException: Didn't find class "androidx.lifecycle.ReportFragment$ActivityInitializationListener" on path: DexPathList[[zip file "/data/app/~~L20YSX1rxkDk_k9C8y6nMQ==/it.peachwire.myapplication-8HywJc7A5m7Mxu7jJj6Wcw==/base.apk"],nativeLibraryDirectories=[/data/app/~~L20YSX1rxkDk_k9C8y6nMQ==/it.peachwire.myapplication-8HywJc7A5m7Mxu7jJj6Wcw==/lib/arm64, /system/lib64, /system/system_ext/lib64]] at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:259) at java.lang.ClassLoader.loadClass(ClassLoader.java:637) at java.lang.ClassLoader.loadClass(ClassLoader.java:573) 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:2516) at android.content.ContentProvider.attachInfo(ContentProvider.java:2486) at android.app.ActivityThread.installProvider(ActivityThread.java:8226) at android.app.ActivityThread.installContentProviders(ActivityThread.java:7728) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7482) at android.app.ActivityThread.access$1600(ActivityThread.java:310) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2281) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loopOnce(Looper.java:226) at android.os.Looper.loop(Looper.java:313) at android.app.ActivityThread.main(ActivityThread.java:8669) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135)
I've updated all the needed dependencies and the problem happens even if I update this dependency androidx.lifecycle:lifecycle-viewmodel-ktx to version 2.8.7 (also 2.8.6) as in CHANGELOG.
Code to reproduce
Update SDK version to 20.53.0
Run demo at device
Android version
minSdkVersion 23
targetSdkVersion 35
Dependency Versions
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation project(path: ':self_ble')
implementation project(path: ':self_db')
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.8.7'
// GOOGLE DEPENDENCIES
implementation 'com.google.android.gms:play-services-vision:20.1.3' // Scanner QR Code
implementation 'com.google.android.material:material:1.12.0'
implementation 'com.google.code.gson:gson:2.10.1' // Json Mapper
// ANDROID DEPENDENCIES
implementation 'androidx.appcompat:appcompat:1.7.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.recyclerview:recyclerview:1.3.2'
// Per manipolazione immagini
// https://developer.android.com/reference/android/media/ExifInterface
implementation 'androidx.exifinterface:exifinterface:1.3.7'
implementation 'androidx.constraintlayout:constraintlayout:2.2.0'
implementation 'androidx.multidex:multidex:2.0.1'
// FIREBASE
// Per Crashlytics e Notifiche (raccomandato)
// https://firebase.google.com/docs/android/setup
implementation 'com.google.firebase:firebase-crashlytics:19.2.1'
implementation 'com.google.firebase:firebase-analytics:22.1.2'
// Notifiche
// https://firebase.google.com/docs/cloud-messaging/android/client
implementation 'com.google.firebase:firebase-messaging:24.1.0'
// Work Manager
implementation "android.arch.work:work-runtime:1.0.1"
// BRAINTREE
implementation 'com.braintreepayments.api:drop-in:6.16.0'
// SATISPAY
implementation 'com.satispay:satispayintent:1.0.6'
// STRIPE
implementation('com.stripe:stripe-android:20.53.0') {
exclude group: 'org.jetbrains', module: 'annotations'
// Per evitare conflitti con le annotations di appcompat
}
implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
implementation 'com.squareup.retrofit2:adapter-rxjava2:2.9.0'
implementation 'com.squareup.okhttp3:okhttp:4.12.0'
implementation 'com.squareup.okhttp3:logging-interceptor:4.10.0'
// Per estrarre valori da html
implementation 'org.jsoup:jsoup:1.13.1'
implementation 'androidx.documentfile:documentfile:1.0.1'
// LIBRERIE TERZE
implementation 'de.hdodenhof:circleimageview:3.0.2'
// Codifica di stringhe
implementation([group: 'commons-codec', name: 'commons-codec', version: '1.13'])
// Country code picker per i prefissi telefonici internazionali (Usato in Satispay)
implementation 'com.hbb20:ccp:2.3.5'
implementation 'com.android.volley:volley:1.2.1'
// Richiesto da Braintree per migrazione a 3DS 2.0
// https://developers.braintreepayments.com/guides/3d-secure/migration/android/v3
components.all {
allVariants {
withDependencies { deps ->
deps.each { dep ->
if (dep.group == 'net.minidev' && dep.name == 'json-smart') {
dep.version {
prefer "2.3"
}
dep.because "resolving dependencies issue"
}
}
}
}
}
The text was updated successfully, but these errors were encountered:
fradev94
changed the title
[BUG] java.lang.RuntimeException at SDK update to version 20.53.0
[BUG] java.lang.RuntimeException: Unable to get provider androidx.startup.InitializationProvider at SDK update to version 20.53.0
Nov 27, 2024
Hi @fradev94, I am not able to reproduce this using the dependencies you provided. However, I did have to comment out the braintree and satispay dependencies as they could not be resolved so it's possible the conflict is in one of those dependencies.
Summary
Hi, I've updated the stripe-android SDK version to 20.53.0 and I get this error:
FATAL EXCEPTION: main Process: it.peachwire.myapplication, PID: 6669 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:8231) at android.app.ActivityThread.installContentProviders(ActivityThread.java:7728) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7482) at android.app.ActivityThread.access$1600(ActivityThread.java:310) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2281) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loopOnce(Looper.java:226) at android.os.Looper.loop(Looper.java:313) at android.app.ActivityThread.main(ActivityThread.java:8669) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135) 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:2516) at android.content.ContentProvider.attachInfo(ContentProvider.java:2486) at android.app.ActivityThread.installProvider(ActivityThread.java:8226) at android.app.ActivityThread.installContentProviders(ActivityThread.java:7728) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7482) at android.app.ActivityThread.access$1600(ActivityThread.java:310) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2281) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loopOnce(Looper.java:226) at android.os.Looper.loop(Looper.java:313) at android.app.ActivityThread.main(ActivityThread.java:8669) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135) 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:2516) at android.content.ContentProvider.attachInfo(ContentProvider.java:2486) at android.app.ActivityThread.installProvider(ActivityThread.java:8226) at android.app.ActivityThread.installContentProviders(ActivityThread.java:7728) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7482) at android.app.ActivityThread.access$1600(ActivityThread.java:310) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2281) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loopOnce(Looper.java:226) at android.os.Looper.loop(Looper.java:313) at android.app.ActivityThread.main(ActivityThread.java:8669) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135) 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:2516) at android.content.ContentProvider.attachInfo(ContentProvider.java:2486) at android.app.ActivityThread.installProvider(ActivityThread.java:8226) at android.app.ActivityThread.installContentProviders(ActivityThread.java:7728) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7482) at android.app.ActivityThread.access$1600(ActivityThread.java:310) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2281) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loopOnce(Looper.java:226) at android.os.Looper.loop(Looper.java:313) at android.app.ActivityThread.main(ActivityThread.java:8669) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135) Caused by: java.lang.ClassNotFoundException: Didn't find class "androidx.lifecycle.ReportFragment$ActivityInitializationListener" on path: DexPathList[[zip file "/data/app/~~L20YSX1rxkDk_k9C8y6nMQ==/it.peachwire.myapplication-8HywJc7A5m7Mxu7jJj6Wcw==/base.apk"],nativeLibraryDirectories=[/data/app/~~L20YSX1rxkDk_k9C8y6nMQ==/it.peachwire.myapplication-8HywJc7A5m7Mxu7jJj6Wcw==/lib/arm64, /system/lib64, /system/system_ext/lib64]] at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:259) at java.lang.ClassLoader.loadClass(ClassLoader.java:637) at java.lang.ClassLoader.loadClass(ClassLoader.java:573) 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:2516) at android.content.ContentProvider.attachInfo(ContentProvider.java:2486) at android.app.ActivityThread.installProvider(ActivityThread.java:8226) at android.app.ActivityThread.installContentProviders(ActivityThread.java:7728) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7482) at android.app.ActivityThread.access$1600(ActivityThread.java:310) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2281) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loopOnce(Looper.java:226) at android.os.Looper.loop(Looper.java:313) at android.app.ActivityThread.main(ActivityThread.java:8669) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135)
I've updated all the needed dependencies and the problem happens even if I update this dependency androidx.lifecycle:lifecycle-viewmodel-ktx to version 2.8.7 (also 2.8.6) as in CHANGELOG.
Code to reproduce
Update SDK version to 20.53.0
Run demo at device
Android version
minSdkVersion 23
targetSdkVersion 35
Dependency Versions
The text was updated successfully, but these errors were encountered: