在Android Studio的Hello word在增加了个部局XML内容后报错,如下错误:
Caused by: org.gradle.workers.internal.DefaultWorkerExecutor$WorkExecutionException: A failure occurred while executing com.android.build.gradle.internal.res.ParseLibraryResourcesTask$ParseResourcesRunnable
修改的文件:
其实就是多了个头声明:<?xml version="1.0" encoding="utf-8"?>
去掉就可以了,运行如下图:
OK,错误一样但是修正方法不一样。