Сбой приложения Android при запуске с использованием FirebaseRemoteConfigManager

Мое приложение не запускается на определенных устройствах. Но это не дает мне никаких сбоев через FireBase.

Это сообщение об ошибке, которое я получаю:

2019-01-04 12:48:18.443 32369-32438/uk.co.hiyacar I/uk.co.hiyacar: Rejecting re-init on previously-failed class java.lang.Class<com.google.firebase.perf.internal.RemoteConfigManager>: java.lang.ExceptionInInitializerError: 
2019-01-04 12:48:18.443 32369-32438/uk.co.hiyacar I/uk.co.hiyacar: (Throwable with no stack trace)
2019-01-04 12:48:18.460 32369-32438/uk.co.hiyacar E/AndroidRuntime: FATAL EXCEPTION: pool-12-thread-1
    Process: uk.co.hiyacar, PID: 32369
    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.zzd.zzbd(Unknown Source:51)
        at com.google.firebase.perf.internal.zzd.zzb(Unknown Source:202)
        at com.google.firebase.perf.internal.zze.run(Unknown Source:2)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
        at java.lang.Thread.run(Thread.java:764)
     Caused by: java.lang.ExceptionInInitializerError
        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.android.gms.internal.firebase-perf.zzat.<init>(Unknown Source:2)
        at com.google.android.gms.internal.firebase-perf.zzat.zza(Unknown Source:1)
        at com.google.firebase.perf.network.FirebasePerfUrlConnection.instrument(Unknown Source:9)
        at io.fabric.sdk.android.services.network.HttpRequest$ConnectionFactory$1.create(HttpRequest.java:315)
        at io.fabric.sdk.android.services.network.HttpRequest.createConnection(HttpRequest.java:1298)
        at io.fabric.sdk.android.services.network.HttpRequest.getConnection(HttpRequest.java:1318)
        at io.fabric.sdk.android.services.network.HttpRequest.useCaches(HttpRequest.java:2104)
        at io.fabric.sdk.android.services.common.AbstractSpiCall.getHttpRequest(AbstractSpiCall.java:139)
        at io.fabric.sdk.android.services.settings.DefaultSettingsSpiCall.invoke(DefaultSettingsSpiCall.java:86)
        at io.fabric.sdk.android.services.settings.DefaultSettingsController.loadSettingsData(DefaultSettingsController.java:80)
        at io.fabric.sdk.android.services.settings.DefaultSettingsController.loadSettingsData(DefaultSettingsController.java:64)
        at io.fabric.sdk.android.services.settings.Settings.loadSettingsData(Settings.java:155)
        at io.fabric.sdk.android.Onboarding.retrieveSettingsData(Onboarding.java:126)
        at io.fabric.sdk.android.Onboarding.doInBackground(Onboarding.java:99)
        at io.fabric.sdk.android.Onboarding.doInBackground(Onboarding.java:45)
        at io.fabric.sdk.android.InitializationTask.doInBackground(InitializationTask.java:63)
        at io.fabric.sdk.android.InitializationTask.doInBackground(InitializationTask.java:28)
        at io.fabric.sdk.android.services.concurrency.AsyncTask$2.call(AsyncTask.java:311)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:458)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) 
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) 
        at java.lang.Thread.run(Thread.java:764) 
     Caused by: java.lang.IllegalStateException: Default FirebaseApp is not initialized in this process uk.co.hiyacar. Make sure to call FirebaseApp.initializeApp(Context) first.
        at com.google.firebase.FirebaseApp.getInstance(com.google.firebase:firebase-common@@16.0.2:240)
        at com.google.firebase.remoteconfig.FirebaseRemoteConfig.getInstance(Unknown Source:11)
        at com.google.firebase.perf.internal.RemoteConfigManager.<init>(Unknown Source:2)
        at com.google.firebase.perf.internal.RemoteConfigManager.<clinit>(Unknown Source:160)
        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.android.gms.internal.firebase-perf.zzat.<init>(Unknown Source:2) 
        at com.google.android.gms.internal.firebase-perf.zzat.zza(Unknown Source:1) 
        at com.google.firebase.perf.network.FirebasePerfUrlConnection.instrument(Unknown Source:9) 
        at io.fabric.sdk.android.services.network.HttpRequest$ConnectionFactory$1.create(HttpRequest.java:315) 
        at io.fabric.sdk.android.services.network.HttpRequest.createConnection(HttpRequest.java:1298) 
        at io.fabric.sdk.android.services.network.HttpRequest.getConnection(HttpRequest.java:1318) 
        at io.fabric.sdk.android.services.network.HttpRequest.useCaches(HttpRequest.java:2104) 
        at io.fabric.sdk.android.services.common.AbstractSpiCall.getHttpRequest(AbstractSpiCall.java:139) 
        at io.fabric.sdk.android.services.settings.DefaultSettingsSpiCall.invoke(DefaultSettingsSpiCall.java:86) 
        at io.fabric.sdk.android.services.settings.DefaultSettingsController.loadSettingsData(DefaultSettingsController.java:80) 
        at io.fabric.sdk.android.services.settings.DefaultSettingsController.loadSettingsData(DefaultSettingsController.java:64) 
        at io.fabric.sdk.android.services.settings.Settings.loadSettingsData(Settings.java:155) 
        at io.fabric.sdk.android.Onboarding.retrieveSettingsData(Onboarding.java:126) 
        at io.fabric.sdk.android.Onboarding.doInBackground(Onboarding.java:99) 
        at io.fabric.sdk.android.Onboarding.doInBackground(Onboarding.java:45) 
        at io.fabric.sdk.android.InitializationTask.doInBackground(InitializationTask.java:63) 
        at io.fabric.sdk.android.InitializationTask.doInBackground(InitializationTask.java:28) 
        at io.fabric.sdk.android.services.concurrency.AsyncTask$2.call(AsyncTask.java:311) 
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:458) 
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) 
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) 
        at java.lang.Thread.run(Thread.java:764) 

я добавил FirebaseApp.initializeApp(this); в моем классе приложений и сделал некоторые обходные пути, основанные на предыдущих ответах и ​​форумах Google, но он все еще не работает на нескольких устройствах. Я использую все последние инструменты для сборки и библиотеки Firebase, я даже добавил multidex-config.txt класс в моем приложении, чтобы попытаться предотвратить это, но по-прежнему ничего.

У кого-нибудь была такая проблема? Конкретно так или это просто странный случай? Я могу предоставить более подробную информацию, если это необходимо

0 ответов

Другие вопросы по тегам