Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permissions issue with Android 6 #35

Open
danielat998 opened this issue Dec 21, 2016 · 0 comments
Open

Permissions issue with Android 6 #35

danielat998 opened this issue Dec 21, 2016 · 0 comments

Comments

@danielat998
Copy link

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.
如果别的人没有解决,我愿意看一下这个问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant