展会信息港展会大全

AndroidStudio初体验:解决Execution failed for task ':TestAndroid:compileDebug'.
来源:互联网   发布日期:2016-01-14 12:42:49   浏览:1437次  

导读:Execution failed for task ':TestAndroid:compileDebug'. 有各种各样原因,具体就请自己进cmd编译看什么地方出错 进入项目的gradle文件所在目录打 gradlew compileDebug --stacktrace 来追踪就可以啦~ 昨天编译的时候出现了问题,具体问题具体解决! Gradle...

Execution failed for task ':TestAndroid:compileDebug'.

有各种各样原因,具体就请自己进cmd编译看什么地方出错

进入项目的gradle文件所在目录打

gradlew compileDebug --stacktrace

来追踪就可以啦~

昨天编译的时候出现了问题,具体问题具体解决!

Gradle:

FAILURE: Build failed with an exception.

* What went wrong:

Execution failed for task ':TestAndroid:compileDebug'.

> Compilation failed; see the compiler error output for details.

* Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

Could not execute build using Gradle installation 'C:\gradle-1.6'.

首先进入命令行

进入项目根目录(gradule文件所在目录)

输入命令

gradlew compileDebug --stacktrace

查看错误位置:

错误如下

=================================================================

C:\Users\Administrator\AndroidStudioProjects\TestAndroid\TestAndroid\src\main\ja

va\com\example\testandroid\MainActivity.java:125: 警告:编码 GBK 的不可映射字符

//淇

赞助本站

人工智能实验室

相关热词: android开发 教程

AiLab云推荐
展开

热门栏目HotCates

Copyright © 2010-2024 AiLab Team. 人工智能实验室 版权所有    关于我们 | 联系我们 | 广告服务 | 公司动态 | 免责声明 | 隐私条款 | 工作机会 | 展会港