java.lang.IllegalAccessError:非法类访问:

时间:2017-09-19 12:45:37

标签: android android-volley proguard

获取错误

  

致命的例外:主要                                                                                          过程:com.wowoni.bikesharing.bicyclesharing,PID:17274                                                                                          java.lang.IllegalAccessError:非法类访问:   'com.google.android.gms.location.LocationServices'试图   访问'com.google.android.gms.internal.zzccb'(声明   'com.google.android.gms.location.LocationServices'出现在   /data/app/com.wowoni.bikesharing.bicyclesharing-1/split_lib_dependencies_apk.apk:classes29.dex)                                                                                              在com.google.android.gms.location.LocationServices。(未知   资源)                                                                                              在   com.wowoni.bikesharing.bicyclesharing.activity.LoginActivity.onCreate(LoginActivity.java:142)                                                                                              在android.app.Activity.performCreate(Activity.java:6904)                                                                                              在   android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1136)                                                                                              在   android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3266)                                                                                              在   android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3415)                                                                                              在android.app.ActivityThread.access $ 1100(ActivityThread.java:229)                                                                                              在   android.app.ActivityThread $ H.handleMessage(ActivityThread.java:1821)                                                                                              在android.os.Handler.dispatchMessage(Handler.java:102)                                                                                              在android.os.Looper.loop(Looper.java:148)                                                                                              在android.app.ActivityThread.main(ActivityThread.java:7325)                                                                                              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)

在此行中收到错误

 mGoogleApiClient = new GoogleApiClient.Builder(this)
            .enableAutoManage(this, this)
            .addApi(Auth.GOOGLE_SIGN_IN_API, gso)
            .addApi(LocationServices.API)
            .build();

每当我试图打开我的应用程序时,它会以上述错误关闭,实际上我想将用户位置发送到服务器,所以我需要从设备访问该位置。

0 个答案:

没有答案