标签:
AndroidManifest.xml
<meta-data android:name="UMENG_CHANNEL" android:value="${UMENG_CHANNEL_VALUE}" />
build.gradle
android { 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 } productFlavors { 应用宝市场 {} 微信市场 {} 百度市场 {} productFlavors.all { flavor -> flavor.manifestPlaceholders = [UMENG_CHANNEL_VALUE: name] } }
在android studio 的命令行下执行 gradlew assembleRelease, 就等着生成吧
参考: http://www.cnblogs.com/0616--ataozhijia/p/4203997.html
参考: https://www.zhihu.com/question/22842123
标签:
原文地址:http://www.cnblogs.com/emyueguang/p/5454728.html