Android资源无法找到资源ID#0x7f0e0037

时间:2019-10-20 22:01:38

标签: android firebase push-notification onesignal

我正在尝试在Android应用中使用oneSignal,但是当我在清单文件中添加android:name="com.sarkaribank.Activities.oneSignal"时,此行。我收到此错误。 我的应用程序ID与我的Firebase项目中的相同

E/AndroidRuntime: FATAL EXCEPTION: main Process: com.sarkaribank, PID: 25391 java.lang.RuntimeException: Unable to get provider com.google.firebase.provider.FirebaseInitProvider: android.content.res.Resources$NotFoundException: Unable to find resource ID #0x7f0e0037 at android.app.ActivityThread.installProvider(ActivityThread.java:6396) at android.app.ActivityThread.installContentProviders(ActivityThread.java:5938) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5853) at android.app.ActivityThread.access$1100(ActivityThread.java:199) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1650) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:193) at android.app.ActivityThread.main(ActivityThread.java:6669) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858) Caused by: android.content.res.Resources$NotFoundException: Unable to find resource ID #0x7f0e0037 at android.content.res.ResourcesImpl.getResourcePackageName(ResourcesImpl.java:263) at android.content.res.Resources.getResourcePackageName(Resources.java:1970) at com.google.android.gms.common.internal.StringResourceValueReader.(Unknown Source:5) at com.google.firebase.FirebaseOptions.fromResource(com.google.firebase:firebase-common@@16.0.2:160) at com.google.firebase.FirebaseApp.initializeApp(com.google.firebase:firebase-common@@16.0.2:301) at com.google.firebase.provider.FirebaseInitProvider.onCreate(com.google.firebase:firebase-common@@16.0.2:53) at android.content.ContentProvider.attachInfo(ContentProvider.java:1917) at android.content.ContentProvider.attachInfo(ContentProvider.java:1892) at com.google.firebase.provider.FirebaseInitProvider.attachInfo(com.google.firebase:firebase-common@@16.0.2:47) at android.app.ActivityThread.installProvider(ActivityThread.java:6391) at android.app.ActivityThread.installContentProviders(ActivityThread.java:5938)  at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5853)  at android.app.ActivityThread.access$1100(ActivityThread.java:199)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1650)  at android.os.Handler.dispatchMessage(Handler.java:106)  at android.os.Looper.loop(Looper.java:193)  at android.app.ActivityThread.main(ActivityThread.java:6669)  at java.lang.reflect.Method.invoke(Native Method)  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)

0 个答案:

没有答案
相关问题