简体   繁体   中英

Xamarin.Forms Android App crash when first launch after install or update

I have this issue when first launch my app after installing it or update new version then my app will crashing. It's only happening once time and not appear on debug mode just only in release. I have include AppCenter Crash into my app and then find this stack traces but im not understand it. Hope you guy could help me find the problem:

java.lang.Class.newInstance Class.java
android.app.AppComponentFactory.instantiateReceiver AppComponentFactory.java:110
androidx.core.app.CoreComponentFactory.instantiateReceiver
android.app.ActivityThread.handleReceiver ActivityThread.java:3773
android.app.ActivityThread.access$1400 ActivityThread.java:225
android.app.ActivityThread$H.handleMessage ActivityThread.java:1876
android.os.Handler.dispatchMessage Handler.java:107
android.os.Looper.loop Looper.java:359
android.app.ActivityThread.main ActivityThread.java:7418
java.lang.reflect.Method.invoke Method.java
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run RuntimeInit.java:492
com.android.internal.os.ZygoteInit.main ZygoteInit.java:935

Based your AppCenter Crash data you use AndroidX, and you need to change your Tabbar.xaml and Toolbar.xaml and other layout you have with AndroidX class.

在此处输入图片说明

Use this AndroidX Class Mappings to update your layout.

Thank you everyone for supporting me, i have found the problem and solved it. Turn out it's all because i've include FirebaseInstanceIdInternalReceiver to AndroidManifest which i'm not using anymore. After erasing that and uninstalling the AppCenter.Push nuget then everything is fine for now.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM