本文引用:点击打开链接
导入工程后出现,Failed to complete gradle execution case:查看sdk,gradle配置也没有问题,同时工程也没有报错,一运行就出现这个错误,并且没告诉什么原因:查找了一段时间,在以上引用文中找到了解决办法,亲测有效。
1. 打开Gradle Console输出文件,第一行类似输出:
AGPBI: {"kind":"error","text":"Float types not allowed (at \u0027icon_alpha_active\u0027 with value \u00270.75\u0027).","sources":[{"file":"/Users/mingsheng/path/to/my/errenous/integers.xml","position":{"startLine":5,"startColumn":38,"startOffset":272,"endColumn":42,"endOffset":276}}],"original":""}
错误信息:键值对的形式,告诉你类型 kind = error;资源具体位置等等,
2. MAC本,打开Android Studio->preference->Build, Execution, Deployment->Compiler,在Command-line Options一栏,添加 --stacktrace
·Windows 类似