Android Project add-on map code confusion considerations

Source: Internet
Author: User

Now a lot of projects are added to the third-party jar package, but the biggest problem is the time to pack the code to confuse the error, the following is the high-German map Confusion Error resolution method:

Add code such as the following in Proguard-project.txt:

-libraryjars Libs/android-support-v4.jar
-dontwarn android.support.v4.**
-keep class android.support.v4.** {*;}
-keep interface android.support.v4.app.** {*;}
-keep public class * extends android.support.v4.**
-keep public class * extends Android.app.Fragment

#libs目录下的第三方jar包, note the name
-libraryjars Libs/android_location_v1.1.0.jar
-libraryjars Libs/android_map_2.2.0.jar


-dontwarn com.amap.api.**
-dontwarn com.a.a.**
-dontwarn com.autonavi.**


-keep class com.amap.api.** {*;}
-keep class com.autonavi.** {*;}
-keep class com.a.a.** {*;}

Join in the Project.Properties

Proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt

If you have any questions, please leave a message, reproduced the source.

Android Project add-on map code confusion considerations

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.