天天看點

Cannot set the value of read-only property 'outputFile' for ApkVariantOutputImpl

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.

這個問題困擾了很久,最終通過修改檔案夾權限得以解決。

就是把項目所在的盤的使用者所有權限都開起來,這樣就可以了。

Cannot set the value of read-only property 'outputFile' for ApkVariantOutputImpl