简体   繁体   中英

Android Studio 2.3.2 Unable to build project due to error Error:Execution failed for task ':app:dataBindingProcessLayoutsDebug'

Android studio gradle build error occurred after gradle build crashed a few times:

Error:Execution failed for task ':app:dataBindingProcessLayoutsDebug'.

Unknown constant tag 111 in class file org/antlr/v4/runtime/CommonTokenFactory

Environment:

Mac OSX Yosemite

Android Studio 2.3.2

JAVA 6 (downgraded due to constant AS crashes and failed to startup AS)

Gradle-3.3 (gradle/wrapper/gradle-3.3)

com.android.tools.build:gradle:2.3.2

buildToolsVersion '25.0.3'

I've tried reinstalling AS and also recovering my java and xml layout files to a previous working version but with no luck.

Anyone has experienced the same issue?

https://gradle.org/releases下载gradle包装器3.5并将提取的文件放在gradle / wrapper中后,我能够再次清理和构建项目,在AS Preferences> Build,Execution,Deployment> Gradle>中更新gradle包装器select use local gradle distribution> set Gradle home:/path_to/gradle/wrapper/gradle-3.5>应用并重新启动AS>清理并构建项目。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM