android studio 更新3.0后多渠道打包配置问题
来源:互联网 发布:网络攻防基础题库 编辑:程序博客网 时间:2024/06/05 05:39
minSdkVersion :***
2.gradle打包,自定义apk名称代码报错(Cannot set the value of read-only property 'outputFile' )
报错
Error:(56, 0) Cannot set the value of read-only property 'outputFile' for ApkVariantOutputImpl_Decorated{apkData=Main{type=MAIN, fullName=debug, filters=[]}} of type com.android.build.gradle.internal.api.ApkVariantOutputImpl.
<a href="openFile:D:\eclipseCode\ipay-android\xinlebao\build.gradle" rel="external nofollow" >Open File</a>
解决 :修改文件名代码请这样写
3. AAPT2 编译报错 AAPT2 error
报错
Error:java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
解决:在gradle.properties中关闭APPT2 编译
注:如果是eclipse转到as上的项目,可能没有gradle.properties文件,请在项目根目录中手动创建
4.apt插件问题(Error:Cannot choose between the following configurations of project :mylibrary:)
报错:
Error:Cannot choose between the following configurations of project :mylibrary:
- debugApiElements
- debugRuntimeElements
- releaseApiElements
- releaseRuntimeElements
All of them match the consumer attributes:
解决
其他使用apt的依赖,也要这样更改
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持脚本之家。
- android studio 更新3.0后多渠道打包配置问题
- Android Studio多渠道打包配置
- Android studio 3.0 多渠道打包
- Android Studio gradle 配置 多渠道打包
- android studio多渠道打包+混淆配置
- Android studio 3.0上进行多渠道打包遇到的问题
- Android studio 3.0上进行多渠道打包遇到的问题
- Android studio 多渠道打包
- Android Studio多渠道打包
- Android studio 多渠道打包
- android studio 多渠道打包
- Android Studio 多渠道打包
- Android Studio 多渠道打包
- Android Studio多渠道打包
- Android Studio多渠道打包
- Android Studio 多渠道打包
- Android Studio 多渠道打包
- Android Studio多渠道打包
- JS工具类
- Capstone日志2017-12-22
- python字符串连接的三种方法及其效率、适用场景详解
- unity--3D物体的上下左右移动,鼠标控制大小,旋转
- Windows下安装Redis教程
- android studio 更新3.0后多渠道打包配置问题
- Retrofit2
- c++11 thread 类内使用方法和跨类使用方法
- synchronized同步三种使用方法
- Java基础知识:循环(1)
- CSS优先级
- html 内联类型容器中文本溢出部分隐藏
- 过滤器监听器JavaBean
- 数值的扩展