You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to build and run for Android 6, I get the following error:
用Android 6 的时候,我受到了以下的error:
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.allenjuns.wechat, PID: 6728
java.lang.RuntimeException: Unable to create application com.android.tools.fd.runtime.BootstrapApplication: java.lang.SecurityException: getDeviceId: Neither user 10194 nor current process has android.permission.READ_PHONE_STATE.
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4759)
at android.app.ActivityThread.-wrap1(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1424)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5466)
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)
I believe this is due to changes in Android 6 which require that permissions are requested at runtime in addition to at runtime.
我觉得这是因为在Android 6 ,你的APP需要在runtime的时候请求permissions.
Is this a problem of which you are aware? I'm happy to take a look at moving the permissions if noone else is up for it.
如果别的人没有解决,我愿意看一下这个问题。
The text was updated successfully, but these errors were encountered:
When trying to build and run for Android 6, I get the following error:
用Android 6 的时候,我受到了以下的error:
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.allenjuns.wechat, PID: 6728
java.lang.RuntimeException: Unable to create application com.android.tools.fd.runtime.BootstrapApplication: java.lang.SecurityException: getDeviceId: Neither user 10194 nor current process has android.permission.READ_PHONE_STATE.
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4759)
at android.app.ActivityThread.-wrap1(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1424)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5466)
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)
I believe this is due to changes in Android 6 which require that permissions are requested at runtime in addition to at runtime.
我觉得这是因为在Android 6 ,你的APP需要在runtime的时候请求permissions.
Is this a problem of which you are aware? I'm happy to take a look at moving the permissions if noone else is up for it.
如果别的人没有解决,我愿意看一下这个问题。
The text was updated successfully, but these errors were encountered: