用户10004和当前进程都没有android.permission.READ_PHONE_STATE

时间:2016-05-25 05:12:16

标签: android-studio

java.lang.RuntimeException:无法启动活动ComponentInfo {com.ultraliant.brandcommunity.jaijinendra / com.ultraliant.brandcommunity.jaijinendra.EmailActivity}:java.lang.SecurityException:getDeviceId:用户10004和当前进程都没有android .permission.READ_PHONE_STATE。     在android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3253)     在android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3349)     在android.app.ActivityThread.access $ 1100(ActivityThread.java:221)     在android.app.ActivityThread $ H.handleMessage(ActivityThread.java:1794)     在android.os.Handler.dispatchMessage(Handler.java:102)     在android.os.Looper.loop(Looper.java:158)     在android.app.ActivityThread.main(ActivityThread.java:7225)     at java.lang.reflect.Method.invoke(Native Method)     在com.android.internal.os.ZygoteInit $ MethodAndArgsCaller.run(ZygoteInit.java:1230)     在com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120) 引起:java.lang.SecurityException:getDeviceId:用户10004和当前进程都没有android.permission.READ_PHONE_STATE。     在android.os.Parcel.readException(Parcel.java:1620)     在android.os.Parcel.readException(Parcel.java:1573)     在com.android.internal.telephony.ITelephony $ Stub $ Proxy.getDeviceId(ITelephony.java:5371)     在android.telephony.TelephonyManager.getDeviceId(TelephonyManager.java:812)     at com.ultraliant.brandcommunity.jaijinendra.EmailActivity.doPermissionGrantedStuffs(EmailActivity.java:198)     在com.ultraliant.brandcommunity.jaijinendra.EmailActivity.loadIMEI(EmailActivity.java:103)     在com.ultraliant.brandcommunity.jaijinendra.EmailActivity.onCreate(EmailActivity.java:67)     在android.app.Activity.performCreate(Activity.java:6876)     在android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1135)     在android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3206)     ... 9更多

0 个答案:

没有答案