新建一个Project,无论什么Project,gradle-wrapper.properties文件都是乱码
我把其他现有的Project的gradle-wrapper.properties的内容替换到这个乱码文件中,但还是build gradle时候还是有问题
builde gradle时
ParseError at [row,col]:[1,1]
Message: 前言中不允许有内容。
Execution failed for task ':app:mergeDebugResources'.
Multiple task action failures occurred:
A failure occurred while executing com.android.build.gradle.internal.res.ResourceCompilerRunnable
Resource compilation failed. Check logs for details.
A failure occurred while executing com.android.build.gradle.internal.res.ResourceCompilerRunnable
Resource compilation failed. Check logs for details.
我之前也遇到过
#补充
1.Build的时候错误如下
像是哪里有全角字符或者中文字符
你把Android Studio中的Transparent native-to-ascii conversion选项给取消勾选了,再提交试一下
#补充二
stacktrace.txt文件内容
IDE 的编码 encode 重新设置下
你应该是无意中改了编辑器编码或者Windows的使用编码。