android - java.lang.RuntimeException: Package manager has died -
i got following exception crashlytics on api level 22 yu5510 device. frequency of occurring exception not higher. hardware related issue or device specific issue?
exception java.lang.runtimeexception: unable start receivercom.google.firebase.iid.firebaseinstanceidinternalreceiver: java.lang.runtimeexception: package manager has died android.app.activitythread.handlereceiver (activitythread.java:2649) android.app.activitythread.access$1800 (activitythread.java:154) android.app.activitythread$h.handlemessage (activitythread.java:1398) android.os.handler.dispatchmessage (handler.java:102) android.os.looper.loop (looper.java:135) android.app.activitythread.main (activitythread.java:5292) java.lang.reflect.method.invoke (method.java) java.lang.reflect.method.invoke (method.java:372) com.android.internal.os.zygoteinit$methodandargscaller.run (zygoteinit.java:904) com.android.internal.os.zygoteinit.main (zygoteinit.java:699) arrow_drop_down caused java.lang.runtimeexception: package manager has died android.app.applicationpackagemanager.resolveservice (applicationpackagemanager.java:638) com.google.firebase.iid.firebaseinstanceidinternalreceiver.zze () com.google.firebase.iid.firebaseinstanceidinternalreceiver.zzh () com.google.firebase.iid.firebaseinstanceidinternalreceiver.zzb () com.google.firebase.iid.firebaseinstanceidinternalreceiver.onreceive () android.app.activitythread.handlereceiver (activitythread.java:2642) android.app.activitythread.access$1800 (activitythread.java:154) android.app.activitythread$h.handlemessage (activitythread.java:1398) android.os.handler.dispatchmessage (handler.java:102) android.os.looper.loop (looper.java:135) android.app.activitythread.main (activitythread.java:5292) java.lang.reflect.method.invoke (method.java) java.lang.reflect.method.invoke (method.java:372) com.android.internal.os.zygoteinit$methodandargscaller.run (zygoteinit.java:904) com.android.internal.os.zygoteinit.main (zygoteinit.java:699) arrow_drop_down caused android.os.deadobjectexception: android.os.binderproxy.transactnative (binder.java) android.os.binderproxy.transact (binder.java:496) android.content.pm.ipackagemanager$stub$proxy.resolveservice (ipackagemanager.java:2669) android.app.applicationpackagemanager.resolveservice (applicationpackagemanager.java:632) com.google.firebase.iid.firebaseinstanceidinternalreceiver.zze () com.google.firebase.iid.firebaseinstanceidinternalreceiver.zzh () com.google.firebase.iid.firebaseinstanceidinternalreceiver.zzb () com.google.firebase.iid.firebaseinstanceidinternalreceiver.onreceive () android.app.activitythread.handlereceiver (activitythread.java:2642) android.app.activitythread.access$1800 (activitythread.java:154) android.app.activitythread$h.handlemessage (activitythread.java:1398) android.os.handler.dispatchmessage (handler.java:102) android.os.looper.loop (looper.java:135) android.app.activitythread.main (activitythread.java:5292) java.lang.reflect.method.invoke (method.java) java.lang.reflect.method.invoke (method.java:372) com.android.internal.os.zygoteinit$methodandargscaller.run (zygoteinit.java:904) com.android.internal.os.zygoteinit.main (zygoteinit.java:699)
this manifest file
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.sss.lll" > <uses-permission android:name="android.permission.access_network_state"/> <uses-permission android:name="android.permission.access_wifi_state"/> <uses-permission android:name="android.permission.internet"/> <uses-permission android:name="android.permission.write_external_storage"/> <uses-permission android:name="android.permission.read_external_storage"/> <!-- <uses-permission android:name="android.permission.get_accounts" />--> <uses-permission android:name="android.permission.wake_lock" /> <uses-permission android:name="com.google.android.c2dm.permission.receive" /> <permission android:name="com.sss.lll.permission.c2d_message" android:protectionlevel="signature" /> <uses-permission android:name="com.sss.lll.permission.c2d_message" /> <application android:allowbackup="false" android:icon="@drawable/m_icon" android:label="@string/app_name" android:name="myapp" android:theme="@style/apptheme"> <activity android:name=".activities.mainactivity" android:label="@string/app_name" android:screenorientation="portrait"> <intent-filter> <action android:name="android.intent.action.main" /> <category android:name="android.intent.category.launcher" /> </intent-filter> </activity> <activity android:name=".activities.listactivity" android:launchmode= "singletop" android:screenorientation="portrait"></activity> <activity android:name=".activities.detailactivity" android:launchmode= "singletop" android:parentactivityname=".activities.listactivity" android:screenorientation="portrait"></activity> <activity android:name=".activities.webviewactivity" android:launchmode= "singletop" android:parentactivityname=".activities.listactivity" android:screenorientation="portrait"></activity> <activity android:name=".activities.viewpagerimageactivity" android:launchmode= "singletop" android:parentactivityname=".activities.detailactivity" android:screenorientation="portrait"></activity> <activity android:name=".activities.likeactivity" android:launchmode= "singletop" android:parentactivityname=".activities.listactivity" android:screenorientation="portrait" ></activity> <service android:name=".myfirebasemessagingservice"> <intent-filter> <action android:name="com.google.firebase.messaging_event"/> </intent-filter> </service> <service android:name=".myfirebaseinstanceidservice"> <intent-filter> <action android:name="com.google.firebase.instance_id_event"/> </intent-filter> </service> <meta-data android:name="io.fabric.apikey" android:value="1234567899" /> <meta-data android:name="com.google.firebase.messaging.default_notification_icon" android:resource="@drawable/ic_notification" /> </application> </manifest>
add receiver , check it.
internal receiver firebaseinstanceid used start services securely. receiver automatically added application's manifest file via manifest merge. if necessary can manually declared via: <receiver android:name="com.google.firebase.iid.firebaseinstanceidinternalreceiver" android:exported="false" />
Comments
Post a Comment