Android-SDK封装(jar,so,aar)

**集成aar库**

***aar库操作:***
1. 能正常封装成aar库;
2. 去掉manifest中application中的icon, roundIcon,label;

3. 异常部分抛出;


***引入aar项目:***
3. 把库manifest下的权限移到项目相同文件下;
4. buil.gradle文件版本要与库中版本一致,把库中引入的依赖和其他配置全部移到项目中;
5. 项目中文件命名最好不与库中文件名一致;
6. 如果要引入的aar项目中有多个库,都要封装成aar引入;
7. 添加 tools:replace="android:icon, android:theme, android:roundIcon"

```
<application
android:allowBackup="true"
android:icon="@mipmap/icon_security"
android:label="@string/app_name"
android:roundIcon="@mipmap/icon_security"
android:supportsRtl="true"
android:theme="@style/AppBaseTheme"
tools:replace="android:icon, android:theme, android:roundIcon">
<activity
android:name="com.csizg.andtest.MaintestActivity"
android:label="@string/app_name"
android:theme="@style/AppTheme.NoActionBar">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>

<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
</application>
```

原文地址:https://www.cnblogs.com/zx-blog/p/11849663.html