我是做安卓开发的,昨天我的两个手机都推送了更新版本,更新后无法再用android studio直接安装应用。安装第一次时完全正常,第二次可以安装,但是打不开应用,提示:
E/AndroidRuntime: FATAL EXCEPTION: main
PID: 13809
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.Object.toString()' on a null object reference
at com.android.tools.deploy.instrument.ResourceOverlays.getPackageName(ResourceOverlays.java:88)
at com.android.tools.deploy.instrument.ResourceOverlays.updateLoader(ResourceOverlays.java:64)
at com.android.tools.deploy.instrument.ResourceOverlays.addResourceOverlays(ResourceOverlays.java:36)
at com.android.tools.deploy.instrument.InstrumentationHooks.addResourceOverlays(InstrumentationHooks.java:102)
at android.app.LoadedApk.getResources(LoadedApk.java:1425)
at android.app.ContextImpl.createSystemContext(ContextImpl.java:3103)
at android.app.ActivityThread.getSystemContext(ActivityThread.java:2884)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6915)
at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2288)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:240)
at android.os.Looper.loop(Looper.java:351)
at android.app.ActivityThread.main(ActivityThread.java:8380)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:584)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1013)
第一次安装的时候没有任何问题,可以进入并正常使用,再往后就没法安装,报这个错。删除app后再安装也是可以第一次安装,后面仍然不行。官方技术人员迅速联系我
E/AndroidRuntime: FATAL EXCEPTION: main
PID: 13809
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.Object.toString()' on a null object reference
at com.android.tools.deploy.instrument.ResourceOverlays.getPackageName(ResourceOverlays.java:88)
at com.android.tools.deploy.instrument.ResourceOverlays.updateLoader(ResourceOverlays.java:64)
at com.android.tools.deploy.instrument.ResourceOverlays.addResourceOverlays(ResourceOverlays.java:36)
at com.android.tools.deploy.instrument.InstrumentationHooks.addResourceOverlays(InstrumentationHooks.java:102)
at android.app.LoadedApk.getResources(LoadedApk.java:1425)
at android.app.ContextImpl.createSystemContext(ContextImpl.java:3103)
at android.app.ActivityThread.getSystemContext(ActivityThread.java:2884)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6915)
at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2288)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:240)
at android.os.Looper.loop(Looper.java:351)
at android.app.ActivityThread.main(ActivityThread.java:8380)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:584)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1013)
第一次安装的时候没有任何问题,可以进入并正常使用,再往后就没法安装,报这个错。删除app后再安装也是可以第一次安装,后面仍然不行。官方技术人员迅速联系我