您好,请问现在有一个华为手机安卓9
Environment.initialization(this);这一行报错
是获取设备信息的时候报错吗?
错误日志是
java.lang.RuntimeException:Unable to start activity ComponentInfo{com.hzx.wh.app_space_manage/com.hzx.wh.app_space_manage.activity.FillListActivity}: java.lang.SecurityException: getDeviceId
2
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3430)
3
......
4
Caused by:
5
java.lang.SecurityException:getDeviceId
6
android.os.Parcel.createException(Parcel.java:1953)
7
android.os.Parcel.readException(Parcel.java:1921)
8
android.os.Parcel.readException(Parcel.java:1871)
9
com.android.internal.telephony.IHwTelephony$Stub$Proxy.getUniqueDeviceId(IHwTelephony.java:2218)
10
android.telephony.HwTelephonyManagerInner.getUniqueDeviceId(HwTelephonyManagerInner.java:1167)
11
android.telephony.HwInnerTelephonyManagerImpl.getUniqueDeviceId(HwInnerTelephonyManagerImpl.java:322)
12
android.telephony.TelephonyManager.getDeviceId(TelephonyManager.java:1256)
13
com.supermap.data.Environment.checkDevice_New(Environment.java:854)
14
com.supermap.data.Environment.initialization(Environment.java:623)
15
com.hzx.wh.app_space_manage.activity.FillListActivity.onCreate(FillListActivity.java:171)
16
android.app.Activity.performCreate(Activity.java:7458)
17
android.app.Activity.performCreate(Activity.java:7448)
18
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1286)
19
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3409)
20
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3614)
21
android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:86)
22
android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
23
android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
24
android.app.ActivityThread$H.handleMessage(ActivityThread.java:2199)
25
android.os.Handler.dispatchMessage(Handler.java:112)
26
android.os.Looper.loop(Looper.java:216)
27
android.app.ActivityThread.main(ActivityThread.java:7625)
28
java.lang.reflect.Method.invoke(Native Method)
29
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524)
30
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:987)