Android Studio 中 FAILURE: Build failed with an exception. * What went wrong: Execution failed for ta
来源:互联网 发布:windows即将过期怎么办 编辑:程序博客网 时间:2024/05/17 05:07
声明:转载自 第七城市
完整的问题提示
Gradle: FAILURE:Build failed with an exception.*What went wrong:Execution failed for task ':compileDebugAidl'.>No signature of method: com.android.ide.common.internal.WaitableExecutor.waitForTasks()is applicable for argument types:() values:[]Possible solutions: waitForAllTasks()*Try:Runwith--stacktrace option to get the stack trace.Runwith--info or--debug option to get more log output.但是这个提示我们却不知道干嘛看了StackOver http://stackoverflow.com/questions/16682443/android-studio-gradle-build-fails-execution-failed-for-task-compiledebugai上的解答我是明白了,是要到根目录(也就是找到gradlew.bat这个文件)下运行,打开命令行
接着就会出现完整的提示,运行发现居然是字符编码的问题,一口老血喷了一地测试 了一下,把那些中文改为英文后发现真的没问题了,我的一个下午啊。问题是知道了,就是我们不能写中文或者把文件换成GBK编码,不然编译的时候是会以GBK编码编译的,然后就出错。但是咱们是中国人啊,不能不写中文啊。我继续找,最后在这篇博客上找到了解决方案http://blog.csdn.net/nono_love_lilith/article/details/9041813具体就是在下图中红色圈圈的 build.gradle 文件中添加一个东西,就是下面这个,让它以UTF-8的方式编译 tasks.withType(Compile) { options.encoding = "UTF-8"}
就是在最后加入就可以了,最后编译通过,还是要默哀一下我的下午。还有仇视一下这坑爹的IDE难怪大神们一般都不用IDE
0 0
- Android Studio 中 FAILURE: Build failed with an exception. * What went wrong: Execution failed for ta
- Error:FAILURE: Build failed with an exception. * What went wrong: Task '' not found in root projec
- Error:FAILURE: Build failed with an exception. * What went wrong: Task 'generate_360DebugSources' n
- Android Studio 中 FAILURE: Build failed with an exception.
- What went wrong: Execution failed for task ':compileArmv7DebugJavaWithJavac'. 问题解决办法
- FAILURE: Build failed with an exception.
- FAILURE: Build failed with an exception
- 关于android studio 的FAILURE: Build failed with an exception解决办法
- Spring 源码编译 出错FAILURE: Build failed with an exception.
- AndoridStudio--Error:FAILURE: Build failed with an exception.
- android studio Execution failed for clean build失败 open editor
- NDK配置debug环境时:Error:FAILURE: Build failed with an exception
- [Android Studio]常见Execution failed for task
- android studio 开发 Execution failed for task
- Android Studio Error:Execution failed for task
- android studio编程时出现的错误:Error:Execution failed for task ':app:buildInfoDebugLoader'. > Exception whi
- Android studio的build问题:Error:Execution failed for task ':mystatusbar:buildInfoDebugLoader'.
- Execution failed for task ':transformClassesWithJarMergingForDebug'. > com.android.build.api.transfo
- Python 装饰器举例
- 【c++对象模型】
- 观察者模式2
- 《C++ Primer第五版》读书笔记(8)--GENERIC ALGORITHMS
- 开源学习 百度推送实战项目 友聊 (七)
- Android Studio 中 FAILURE: Build failed with an exception. * What went wrong: Execution failed for ta
- 动态显示和隐藏状态栏
- 在Lua Development Tools中使用代码帮助
- 最近忙于面试
- Wireshark看127.0.0.1数据包
- 设计模式之访问者模式
- eclipse调试hadoop
- Hibernate -- 检索方式 HQL
- 商城业务流程小结