https://www.jianshu.com/p/a0fd23afe39f
http://blog.csdn.net/zgd826237710/article/details/51819587
AndroidManifest.xml 文件中
删除重复的定位服务代码 如下<service android:name="com.baidu.location.f" android:enabled="true" android:process=":remote" > <intent-filter> <action android:name="com.baidu.location.service" /> </intent-filter> </service>
屏蔽如下代码(在build.gradle中体现):
<!--<uses-sdk--> <!--android:minSdkVersion="8"--> <!--android:targetSdkVersion="16" />-->
name填写:
<activity android:name="com.tencent.android.tpush.XGPushActivity" android:exported="true" > <intent-filter> <!-- 若使用AndroidStudio,请设置android:name="android.intent.action" --> <action android:name="android.intent.action" /> </intent-filter> </activity>
application看情况添加
xmlns:tools="http://schemas.android.com/tools" tools:replace="android:icon,android:theme"
在build.gradle中添加检查代码设置
lintOptions { checkReleaseBuilds false // Or, if you prefer, you can continue to check for errors in release builds, // but continue the build even when errors are found: abortOnError false }
资源文件.9.png 设置规范格式
修改非正常的PNG图片格式,方法:1.在资源文件夹下全选 右击-打开方式-预览 2. 在左侧空白处右击-排序方式-种类 这样就非正常的PNG图片就会显示在顶部 3.选中该文件-文件-导出-选择格式PNG 4.替换
打包可能会发现部分文件UTF-8格式错误,可以选择disable inspection。或者更改文件格式(目前测试无效)
视情况统一各个模块的minSdkVersion
注意线上的版本号versionCode versionName
删除重复的jar包