突然,在正常使用Nexus 5的过程中,每次我尝试打开Nexus 5时,Google Play商店便开始崩溃。
因此,我尝试获取错误的日志,这里是:

11664-11664/? E/AndroidRuntime: FATAL EXCEPTION: main Process: com.android.vending, PID: 11664
                                               java.lang.RuntimeException: Unable to create application com.google.android.finsky.FinskyApp: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.app.AppOpsManager.checkPackage(int, java.lang.String)' on a null object reference
                                                   at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4710)
                                                   at de.robv.android.xposed.XposedBridge.invokeOriginalMethodNative(Native Method)
                                                   at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:334)
                                                   at android.app.ActivityThread.handleBindApplication(<Xposed>)
                                                   at android.app.ActivityThread.-wrap1(ActivityThread.java)
                                                   at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1405)
                                                   at android.os.Handler.dispatchMessage(Handler.java:102)
                                                   at android.os.Looper.loop(Looper.java:148)
                                                   at android.app.ActivityThread.main(ActivityThread.java:5417)
                                                   at java.lang.reflect.Method.invoke(Native Method)
                                                   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
                                                   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
                                                   at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:102)
                                                Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.app.AppOpsManager.checkPackage(int, java.lang.String)' on a null object reference
                                                   at android.os.Parcel.readException(Parcel.java:1605)
                                                   at android.os.Parcel.readException(Parcel.java:1552)
                                                   at android.content.pm.IPackageInstaller$Stub$Proxy.getMySessions(IPackageInstaller.java:385)
                                                   at android.content.pm.PackageInstaller.getMySessions(PackageInstaller.java:415)
                                                   at com.google.android.finsky.installer.PackageInstallerImpl.<init>(PackageInstallerImpl.java:71)
                                                   at com.google.android.finsky.installer.PackageInstallerFactory.init(PackageInstallerFactory.java:23)
                                                   at com.google.android.finsky.FinskyApp.onCreate(FinskyApp.java:387)
                                                   at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1013)
                                                   at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4707)
                                                   at de.robv.android.xposed.XposedBridge.invokeOriginalMethodNative(Native Method) 
                                                   at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:334) 
                                                   at android.app.ActivityThread.handleBindApplication(<Xposed>) 
                                                   at android.app.ActivityThread.-wrap1(ActivityThread.java) 
                                                   at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1405) 
                                                   at android.os.Handler.dispatchMessage(Handler.java:102) 
                                                   at android.os.Looper.loop(Looper.java:148) 
                                                   at android.app.ActivityThread.main(ActivityThread.java:5417) 
                                                   at java.lang.reflect.Method.invoke(Native Method) 
                                                   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) 
                                                   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) 
                                                   at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:102) `

我试图在线查找此错误,但找不到任何东西。我认为它与某个系统应用程序相关,该系统应用程序的权限之一未经批准(我不知道可能是哪一个),或者与我的Xposed Framework安装有关。

会是什么呢?
感谢您的帮助。

最佳答案

它没有任何其他问题,您没有看到尝试在空对象引用上调用虚拟方法'void android.app.AppOpsManager.checkPackage(int,java.lang.String)'。您已经调用了一些空对象引用。

10-08 01:47