高德地图混淆代码后定位失败

因为在我的工程里出现了这种情况。不混淆代码可以,一旦混淆代码后,定位那部分的方法虽然可以调用,但一直是定位失败,随后我下了其官方的demo,混码编译之后也是如此,有人知道怎么解决吗?
我的用的是android studio
下面是我代码混淆的编码
-keep class com.nostra13.universalimageloader.** { *; }

-dontwarn com.pgyersdk.**

-dontwarn com.viewpagerindicator.**

-dontwarn com.handmark.pulltorefresh.library.**

-dontwarn com.gc.materialdesign.**

-dontwarn org.apache.**

-dontwarn org.apache.http.**

-dontwarn org.apache.commons.**



-keep class com.pgyersdk.** { *; }

-keep class org.apache.http.** {*;}

-keep class com.viewpagerindicator.** {*;}

-keep class com.handmark.pulltorefresh.library.** {*;}

-keep class com.gc.materialdesign.** {*;}

-dontwarn com.amap.api.**

-dontwarn com.aps.**

-dontwarn android.support.v4.**

 -keep class android.support.v4.**

 -keep interface android.support.v4.app.** {*;}

-dontwarn com.a.a.**

-dontwarn com.autonavi.**

#高德相关混淆文件

#3D 地图

#Location

-keep   class com.amap.api.location.**{*;}

-keep   class com.aps.**{*;}

#Service

-keep   class com.amap.api.services.**{*;}

下面是我调用定位的方法
mLocationManagerProxy = LocationManagerProxy.getInstance(this);
        mLocationManagerProxy.setGpsEnable(false);
        mLocationManagerProxy.requestLocationData(

                LocationProviderProxy.AMapNetwork, -1, 15, this);

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


你可能感兴趣的:(高德地图混淆代码后定位失败)