android studio3.0 编译 Cannot set the value of read-only property 'outputFile' for apkVariantOutputImp
来源:互联网 发布:mac 开发php 必备软件 编辑:程序博客网 时间:2024/06/06 02:42
修改方式:
原build.gradle中:
variant.outputs.each { output -> def outputFile = output.outputFile if (outputFile != null && outputFile.name.endsWith('.apk')) { def fileName if (variant.buildType.name == "debug") { fileName = "NewSecurityPlatform_v${defaultConfig.versionName}_debug_${dateTime()}.apk" } else { fileName = "NewSecurityPlatform_v${defaultConfig.versionName}_release_${dateTime()}.apk" } output.outputFile = new File(outputFile.parent, fileName) }}
更改为:
variant.outputs.all { if (variant.buildType.name == "debug") { outputFileName = "NewSecurityPlatform_v${defaultConfig.versionName}_debug_${dateTime()}.apk" } else { outputFileName = "NewSecurityPlatform_v${defaultConfig.versionName}_release_${dateTime()}.apk" }}
阅读全文
0 0
- android studio3.0 编译 Cannot set the value of read-only property 'outputFile' for apkVariantOutputImp
- android studio3.0(二)Cannot set the value of read-only property 'outputFile'
- [Exception]Cannot set the value of read-only property 'outputFile'
- Cannot set the value of read-only property 'outputFile'
- Cannot set the value of read-only property 'outputFile'
- Cannot set the value of read-only property 'outputFile' for ApkVariantOutputImpl_Decorated
- Cannot set the value of read-only property 'outputFile' for ApkVariantOutputImpl_Decorated{apkData=
- Cannot set the value of read-only property 'outputFile' for ApkVariantOutputImpl_Decorated
- Cannot set the value of read-only property 'outputFile' for ApkVariantOutputImpl_Decorated
- Cannot set the value of read-only property 'outputFile' for ApkVariantOutputImpl_Decorated
- Cannot set the value of read-only property 'outputFile' for ApkVariantOutputImpl_Decorated
- annot set the value of read-only property 'outputFile'
- Can not set the value of read-only property 'jniFolders' for task ': android: packageDebug
- set the property read only
- Cannot read property 'value' of null
- Cannot set property 'value' of null
- Cannot set property 'value' of undefined
- Uncaught TypeError: Cannot read property 'value' of null
- android屏幕适配
- 【赠书】从商用到开源:15个维度,全面剖析DB2与MySQL数据库的差异
- 详解 db file sequential read 等待事件
- 指针,&,*操作符
- com.sanwin.acdm.modules.sys.listener.WebContextListener
- android studio3.0 编译 Cannot set the value of read-only property 'outputFile' for apkVariantOutputImp
- 快速排序
- 网络访问流程 与 http流程
- How to get rid of this annoying W8123 warning in my IDE
- VUE优秀UI组件库合集
- Sqlserver2008连接失败的N种可能及解决方案
- Java中abstract class 和 interface 的解释和他们的异同点(转)
- pandas:填充缺失值 fillna("missing") 和fillna("missing",inplace=True)的区别
- Effective Java之用私有构造器或者枚举类型强化Singleton属性(三)