我的手机没有显示异常消息

时间:2017-06-03 11:06:55

标签: android exception android-studio-2.3 huawei

我是一名新的Android开发人员,对不起我的英语不好,我买了一部新手机(华为6X)。当我使用我的手机安卓工作室进行调试时,它不会显示我的异常消息,并始终显示:

`06-03 15:21:40.668 2077-14971/? E/DatabaseUtils: Writing exception to parcel
                                                 java.lang.SecurityException: Permission Denial: reading com.huawei.android.launcher.LauncherProvider from pid=1628, uid=10028 requires com.huawei.android.launcher.permission.WRITE_SETTINGS: uid 10028 does not have com.huawei.android.launcher.permission.WRITE_SETTINGS.
                                                     at android.app.ContextImpl.enforce(ContextImpl.java:1599)
                                                     at android.app.ContextImpl.enforcePermission(ContextImpl.java:1612)
                                                     at android.content.ContextWrapper.enforcePermission(ContextWrapper.java:664)
                                                     at com.huawei.android.launcher.LauncherProvider.checkPermission(LauncherProvider.java:1615)
                                                     at com.huawei.android.launcher.LauncherProvider.call(LauncherProvider.java:1854)
                                                     at android.content.ContentProvider$Transport.call(ContentProvider.java:398)
                                                     at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:283)
                                                     at android.os.Binder.execTransact(Binder.java:453)
06-03 15:21:40.671 1628-6300/? E/LauncherInteractiveUtil: Call launcher evnt fail. lock=true
                                                          java.lang.SecurityException: Permission Denial: reading com.huawei.android.launcher.LauncherProvider from pid=1628, uid=10028 requires com.huawei.android.launcher.permission.WRITE_SETTINGS: uid 10028 does not have com.huawei.android.launcher.permission.WRITE_SETTINGS.
                                                              at android.os.Parcel.readException(Parcel.java:1602)
                                                              at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:183)
                                                              at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:135)
                                                              at android.content.ContentProviderProxy.call(ContentProviderNative.java:646)
                                                              at android.content.ContentProviderClient.call(ContentProviderClient.java:437)
                                                              at com.huawei.keyguard.support.LauncherInteractiveUtil$Caller.run(LauncherInteractiveUtil.java:59)
                                                              at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:246)
                                                              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
                                                              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
                                                              at java.lang.Thread.run(Thread.java:833)` 

当我尝试使用另一部手机时,android studio正确显示异常消息。请帮帮我。

ps:我的手机没有显示"很遗憾你的应用已经关闭了#34;消息...它只是关闭应用程序。

0 个答案:

没有答案