该应用程序永远卡住并示出启动时的白色画面。我已经把日志中飞溅活动的onCreate,但它并没有达到该行也。
我最近所做的更改是迁移到androidX支持库,并且我记得在更新gradle文件中的库之后开始发生这种情况。
如果我启动该应用程序两次(共10次),将继续启动并正常运行。
这是依赖项列表,
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
androidTestImplementation('androidx.test.espresso:espresso-core:3.1.0-beta02', {
exclude group: 'com.android.support', module: 'support-annotations'
})
testImplementation 'junit:junit:4.12'
implementation 'com.google.firebase:firebase-messaging:17.3.4'
implementation 'com.google.firebase:firebase-core:16.0.6'
implementation 'com.google.firebase:firebase-perf:16.2.3'
implementation('com.crashlytics.sdk.android:crashlytics:2.7.1@aar') {
transitive = true
}
implementation 'androidx.dynamicanimation:dynamicanimation:1.0.0'
implementation 'com.google.android.material:material:1.0.0'
implementation 'androidx.annotation:annotation:1.0.1'
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-alpha3'
implementation 'androidx.recyclerview:recyclerview:1.0.0'
implementation 'com.facebook.android:facebook-android-sdk:4.33.0'
implementation 'io.card:android-sdk:5.5.1'
implementation 'com.apollographql.apollo:apollo-runtime:0.3.2'
implementation 'com.squareup.okhttp3:okhttp:3.10.0'
implementation 'com.github.bumptech.glide:glide:4.8.0'
implementation 'jp.wasabeef:glide-transformations:3.3.0'
implementation 'com.wang.avi:library:2.1.3'
implementation 'com.braintreepayments.api:braintree:2.16.0'
implementation 'com.braintreepayments.api:drop-in:3.7.0'
def work_version = "1.0.0-alpha10"
implementation "android.arch.work:work-runtime:$work_version"
implementation 'io.supercharge:shimmerlayout:2.1.0'
implementation 'com.theartofdev.edmodo:android-image-cropper:2.7.0'
}
更新:-添加了日志文件
java.lang.NoClassDefFoundError: com.google.firebase.perf.internal.RemoteConfigManager
at com.google.firebase.perf.internal.RemoteConfigManager.zzcb(Unknown Source:17)
at com.google.firebase.perf.internal.FeatureControl.<init>(Unknown Source:2)
at com.google.firebase.perf.internal.FeatureControl.zzar(Unknown Source:10)
at com.google.firebase.perf.internal.GaugeManager.<init>(Unknown Source:4)
at com.google.firebase.perf.internal.GaugeManager.zzbf(Unknown Source:22)
at com.google.firebase.perf.internal.SessionManager.<init>(Unknown Source:4)
at com.google.firebase.perf.internal.SessionManager.<clinit>(Unknown Source:39)
at com.google.firebase.perf.internal.SessionManager.zzcn(Unknown Source:1)
at com.google.firebase.perf.metrics.AppStartTrace.onActivityCreated(Unknown Source:37)
at android.app.Application.dispatchActivityCreated(Application.java:220)
at android.app.Activity.onCreate(Activity.java:1048)
at androidx.core.app.ComponentActivity.onCreate(ComponentActivity.java:75)
at androidx.fragment.app.FragmentActivity.onCreate(FragmentActivity.java:335)
at androidx.appcompat.app.AppCompatActivity.onCreate(AppCompatActivity.java:85)
at activity.SplashActivity.onCreate(SplashActivity.java:22)
at android.app.Activity.performCreate(Activity.java:7144)
at android.app.Activity.performCreate(Activity.java:7135)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1271)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2931)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3086)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1816)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:193)
所以,如果有人对此有修复,请告诉我。
谢谢