W/System.err: android.content.pm.PackageManager$NameNotFoundException: app.awesome.my.anti_addiciton
W/System.err: at android.app.ApplicationPackageManager.getApplicationInfoAsUser(ApplicationPackageManager.java:506)
at android.app.ApplicationPackageManager.getApplicationInfo(ApplicationPackageManager.java:488)
at my.awesome.tony.usagetrack0819.MainActivity.getUsageStatsList(MainActivity.java:91)
at my.awesome.tony.usagetrack0819.MainActivity.onCreate(MainActivity.java:179)
at android.app.Activity.performCreate(Activity.java:7174)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1220)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2910)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3032)
at android.app.ActivityThread.-wrap11(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1696)
at android.os.Handler.dispatchMessage(Handler.java:105)
W/System.err: at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6944)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)
我的应用中有一个奇怪的错误。我以前在三星Galaxy S7上进行过测试,并且可以正常工作,但是现在出现了此错误。