我在應用類初始化織物面料初始化無法計算的應用程序圖標散在Android的即時應用
Fabric.with(context, crashlyticsKit);
我的項目分爲三個模塊的情況下 - 基礎功能模塊,APK-包裝器模塊和即時應用程序模塊。 App圖標在基本特徵模塊的AndroidManifest.xml
中聲明爲application
屬性。
在即時應用程序的啓動,面料拋出以下錯誤
E/Fabric: Could not calculate hash for app icon.
android.content.res.Resources$NotFoundException: Resource ID #0x0
at android.content.res.Resources.getValue(Resources.java:1351)
at android.content.res.Resources.openRawResource(Resources.java:1265)
at android.content.res.Resources.openRawResource(Resources.java:1241)
at io.fabric.sdk.android.services.common.CommonUtils.getAppIconHashOrNull(CommonUtils.java:824)
at io.fabric.sdk.android.services.settings.Settings.initialize(Settings.java:83)
at io.fabric.sdk.android.Onboarding.retrieveSettingsData(Onboarding.java:124)
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:237)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at java.lang.Thread.run(Thread.java:818)
好的,所以它看起來像你已經看到https://stackoverflow.com/questions/30606527/twitter-no-package-identifier-when-getting-value-for-resource-number-0x00000000。仔細檢查您的設置https://stackoverflow.com/questions/44361850/how-do-i-integrate-crashlytics-with-android-instant-apps並確保您使用的是最新版本2.6.8 https:// fabric .IO /包/安卓/ crashlytics /安裝 – TWL