问题
android studio 3.0出现报错:
Error:(24, 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:platforms/android/app/build.gradle">Open File</a>
网上有人说改
variant.outputs.each { output ->
def outputFile = output.outputFile
if (outputFile != null && outputFile.name.equals('app-debug.apk')){
def fileName = outputFile.name.replace("app-debug.apk", "playground.apk")
output.outputFile = new File(outputFile.parent, fileName)
}
}
问题二:
我改了一些代码,倒是没报错,但是运行模拟器,模拟器里面只显示hello world 没有显示weex的logo信息, 与pc版本的显示也有区别
不清楚你们遇到没有。