开发者

App causing Force Close in Application Manager

开发者 https://www.devze.com 2023-01-16 10:47 出处:网络
When my app is installed from Google Play, it causes a the Application Manager on Android 2.1-update1 to force close (Android settings, Applications, Manage applications). When installed through Eclip

When my app is installed from Google Play, it causes a the Application Manager on Android 2.1-update1 to force close (Android settings, Applications, Manage applications). When installed through Eclipse/ADB, however, the problem doesn't occur.

Here the exception:

Uncaught handler: thread main exiting due to uncaught exception
java.lang.ArrayIndexOutOfBoundsException
    at com.android.settings.ManageApplications$AppInfoAdapter.bulkUpdateLabels(ManageApplications.java:1197)
    at com.android.settings.ManageApplications$1.handleMessage(Ma开发者_JS百科nageApplications.java:404)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:123)
    at android.app.ActivityThread.main(ActivityThread.java:4595)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:521)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
    at dalvik.system.NativeStart.main(Native Method)

It appears to go paired with many warnings from the ResourceType and PackageManager:

W/ResourceType(  696): No package identifier when getting name for resource number 0x00000000
W/PackageManager(  696): Failure retrieving text 0x0 in package com.android.providers.drm
W/PackageManager(  696): android.content.res.Resources$NotFoundException: String resource ID #0x0
W/PackageManager(  696):        at android.content.res.Resources.getText(Resources.java:200)
W/PackageManager(  696):        at android.app.ApplicationContext$ApplicationPackageManager.getText(ApplicationContext.java:2306)
W/PackageManager(  696):        at com.android.settings.ManageApplications$ResourceLoaderThread.run(ManageApplications.java:771)
0

精彩评论

暂无评论...
验证码 换一张
取 消