Using ARR in eclipse

Recently, it is necessary to integrate the Alibaba feedback function on the company application. However, the Alibaba SDK only provides aar files, which completely abandons eclipse. . . In any case, the function still has to be put on it. After searching, I found a solution:

aar is a library file format specially launched by Google for Android Studio. Eclipse cannot use aar directly like jar, but we can use the files in aar to quickly create an Eclipse Library project, and then reference it in our project. .
Step 1: Unzip the aar file (if you can't unzip it directly, change the suffix name to zip and then unzip it)
Step 2: Create a libs folder in the decompressed directory, and then put the classes.jar file and the jni folder Move all the files
under Step 3: Copy the content of the proguard.txt file to the proguard-project.txt file of your project
Step 4: Create the project.properties file in the decompressed directory, The content is as follows:

 

[html]  view plain copy  
 
  1. target=android-22  
  2. android.library=true  

Step 5: Delete the aapt and jni folders and the R.txt and proguard.txt files.
At this point, an Eclipse Library project has been built. Next, just open the Eclipse import project and configure and reference this project in your project.

 

Original address: http://www.jianshu.com/p/ccf306e08d5b?hmsr=toutiao.io&utm_medium=toutiao.io&utm_source=toutiao.io

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326600160&siteId=291194637
Arr