Arcgis for Android Project Code Proguard Confusion Problem Summary

Source: Internet
Author: User

One, ordinary Android project code confusion (the project does not contain a third-party class library)

Step 1: In the project.properties file, remove the following comment:

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


Second, for the ArcGIS for Android project to be confused, because of the use of ArcGIS third-party class library, the project will need to be confused when the third-party class library to be excluded.

Step 1: In the Project.Properties file, remove the following comment:

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

Step 2: Add the following content to the Proguard-project.txt file:

-libraryjars Libs/arcgis-android-api.jar// Import third-party class libraries to prevent confusion when reading package contents error
-dontwarn com.esri.** // Remove Warning
-keep class com.esri.** {*;} // do not confuse the specified content in a third-party package


-libraryjars Libs/jackson-core-lgpl-1.9.5.jar
-dontwarn org.codehaus.jackson.**
-keep class org.codehaus.jackson.** {*;}


-libraryjars Libs/jackson-mapper-lgpl-1.9.5.jar
-dontwarn org.codehaus.jackson.**
-keep class org.codehaus.jackson.** {*;}


-libraryjars Libs/jcifs-1.3.17.jar
-dontwarn jcifs.**
-keep class jcifs.** {*;}





Arcgis for Android Project Code Proguard Confusion Problem Summary

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.