outputfile专题

Android Studio3.0以后outputfile不可用更改

Android Studio自从更新3.0,gradle更新3.1.3之后,build.gradle文件中outputfile就不可用了,会报错,既Cannot set the value of read-only property 'outputFile' for object of type com.android.build.gradle.internal.api.LibraryVarian

Cannot set the value of read-only property 'outputFile' for ApkVariantOutputImpl_Decorated{...

转载请标明出处:https://www.cnblogs.com/tangZH/p/10764568.html 在做多渠道打包的时候出现了这个错误,在高版本的gradle出现。   具体错误为:Cannot set the value of read-only property 'outputFile' for ApkVariantOutputImpl_Decorated{apkData=Main

Cannot set the value of read-only property 'outputFile' for ApkVariantOutputImpl_Decorated{apkData=M

1.错误描述  Cannot set the value of read-only property 'outputFile' for ApkVariantOutputImpl_Decorated{apkData=Main{type=MAIN, fullName=debug, filters=[], versionCode=76, versionName=1.10.31}} of type co