java.lang.RuntimeException: Package manager has died
See original GitHub issue- 我已阅读并理解 贡献指南,严格遵循其约定。
错误报告
你做了什么?
打包插件后运行宿主
你期望的结果是什么?
程序正常
实际结果是什么?
java.lang.RuntimeException: Package manager has died
at android.app.ApplicationPackageManager.getPackageInfo(ApplicationPackageManager.java:116)
at net.wequick.small.ActivityLauncher.setUp(ActivityLauncher.java:60)
at net.wequick.small.Bundle.setupLaunchers(Bundle.java:363)
at net.wequick.small.Bundle.loadBundles(Bundle.java:297)
at net.wequick.small.Bundle.loadLaunchableBundles(Bundle.java:233)
at net.wequick.small.Small.setUp(Small.java:176)
at net.wequick.small.Small.setUpOnDemand(Small.java:190)
at net.wequick.small.ApkBundleLauncher$ActivityThreadHandlerCallback.ensureServiceClassesLoadable(ApkBundleLauncher.java:193)
at net.wequick.small.ApkBundleLauncher$ActivityThreadHandlerCallback.handleMessage(ApkBundleLauncher.java:136)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:194)
at android.app.ActivityThread.main(ActivityThread.java:5546)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:967)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:762)
Caused by: android.os.TransactionTooLargeException
at android.os.BinderProxy.transactNative(Native Method)
at android.os.BinderProxy.transact(Binder.java:504)
at android.content.pm.IPackageManager$Stub$Proxy.getPackageInfo(IPackageManager.java:1798)
at android.app.ApplicationPackageManager.getPackageInfo(ApplicationPackageManager.java:111)
at net.wequick.small.ActivityLauncher.setUp(ActivityLauncher.java:60)?
at net.wequick.small.Bundle.setupLaunchers(Bundle.java:363)?
at net.wequick.small.Bundle.loadBundles(Bundle.java:297)?
at net.wequick.small.Bundle.loadLaunchableBundles(Bundle.java:233)?
at net.wequick.small.Small.setUp(Small.java:176)?
at net.wequick.small.Small.setUpOnDemand(Small.java:190)?
at net.wequick.small.ApkBundleLauncher$ActivityThreadHandlerCallback.ensureServiceClassesLoadable(ApkBundleLauncher.java:193)?
at net.wequick.small.ApkBundleLauncher$ActivityThreadHandlerCallback.handleMessage(ApkBundleLauncher.java:136)?
at android.os.Handler.dispatchMessage(Handler.java:107)?
at android.os.Looper.loop(Looper.java:194)?
at android.app.ActivityThread.main(ActivityThread.java:5546)?
at java.lang.reflect.Method.invoke(Native Method)?
at java.lang.reflect.Method.invoke(Method.java:372)?
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:967)?
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:762)?
Small环境
Compile-time
gradle-small plugin : 1.2.0-alpha3 (maven)
small aar : 1.2.0-alpha3 (maven)
gradle core : 3.3
android plugin : 2.3.0
OS : Mac OS X 10.12.5 (x86_64)
Bundles
type | name | PP | sdk | aapt | support | file | size |
---|---|---|---|---|---|---|---|
host | app | 25 | 25.0.3 | ||||
stub | app+stub | 25 | 25.0.3 | ||||
app | app.xxx | 0x30 | 25 | 25.0.3 | *.xx.apk | 212.6 KB | |
app | app.xxx | 0x40 | 25 | 25.0.3 | *.xx.apk | 440.4 KB | |
lib | lib.common | 0x20 | 25 | 25.0.3 | *.common.apk | 107.1 KB |
Runtime
Device : Redmi Note 3
SDK : Android 5.0.2
ABI : armeabi-v7a
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
exception - Android Package manager has died with ...
If you hit a TransactionTooLargeException or similar Binder failures when retrieving data from PackageManager (e.g., getPackageInfo() ) ...
Read more >Package manager has died while checking permission
A DeadObjectException can occur if two Android processes are communicating with each other and one of them dies while transferring data to ...
Read more >java.lang.RuntimeException: Package manager has died #382
RuntimeException : Package manager has died at android.app.ApplicationPackageManager.getApplicationInfo(ApplicationPackageManager.java:207) ...
Read more >RuntimeException: Package manager has died - Google Groups
Fatal Exception: java.lang.RuntimeException: Package manager has died at android.app.ApplicationPackageManager.
Read more >getInstalledPackages(PackageManager.GET_ACTIVITIES)
Caused by: java.lang.RuntimeException: Package manager has died at android.app. ... To post to this group, send email to android-***@googlegroups.com
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
多个线程同时 PackageManager.getPackageInfo 了吧,造成 binder 进程内存限制炸了
这个连接解析了原因 https://stackoverflow.com/questions/24253976/android-package-manager-has-died-with-transactiontoolargeexception