Cannot set the value of read-only property 'outputFile' for ApkVariantOutputImpl_Decorated{apkData=
2017-11-03 13:21
531 查看
问题描述:
解决:
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. Open File
解决:
android.applicationVariants.all { variant -> variant.outputs.all { output -> def outputFile = output.outputFile if (outputFile != null && outputFile.name.endsWith('.apk')) { def fileName = outputFile.name.replace("app", "${defaultConfig.applicationId}_${defaultConfig.versionName}_${releaseTime()}") outputFileName = fileName } } }
相关文章推荐
- Cannot set the value of read-only property 'outputFile' for ApkVariantOutputImpl_Decorated{apkData=M
- Cannot set the value of read-only property 'outputFile' for ApkVariantOutputImpl_Decorated{apkData=M
- Cannot set the value of read-only property 'outputFile' for ApkVariantOutputImpl_Decorated{apkData=M
- Cannot set the value of read-only property 'outputFile' for ApkVariantOutputImpl_Decorated{apkData=M
- Cannot set the value of read-only property 'outputFile' for ApkVariantOutputImpl_Decorated
- Error:Cannot set the value of read-only property 'outputFile' for ApkVariantOutputImpl_Decorated{apk
- 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
- Cannot set the value of read-only property 'outputFile' for ApkVariantOutputImpl_Decorated
- Android Studio3.0报错:Cannot set the value of read-only property 'outputFile' for ApkVariantOutputImpl
- android studio3.0 编译 Cannot set the value of read-only property 'outputFile' for apkVariantOutputImp
- Error:(45, 0) Cannot set the value of read-only property 'outputFile' for ...
- “Cannot set the value of read-only property 'outputFile' for 。。。”解决
- android studio3.0(二)Cannot set the value of read-only property 'outputFile'
- Cannot set the value of read-only property 'outputFile'
- Android Gradle 3.0.0-alpha2 plugin, Cannot set the value of read-only property 'outputFile'
- Cannot set the value of read-only property 'outputFile'
- Can not set the value of read-only property 'jniFolders' for task ': android: packageDebug