Error:FAILURE: Build failed with an exception. * What went wrong: Task 'generate_360DebugSources' n
来源:互联网 发布:网络配置出现问题 编辑:程序博客网 时间:2024/05/20 00:16
把一个用了几年的笔记本的硬盘换成了固态硬盘,然后又装了2.3.1版的Android Studio。但是在导入项目的时候却报错了,错误如下:
Error:FAILURE: Build failed with an exception.
* What went wrong:
Task 'generate_360DebugSources' not found in root project 'higirl'.
* Try:
Run gradle tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
。看到这个错误的时候一头雾水,经过谷歌之后,在stack overflow上看到了一些解决方案。
This happened to me recently when I close one Android Studio project and imported another Eclipse project. It seemed to be some bug in Android Studio where it preserves some gradle settings from previously open project and then get confused in the new project.
The solution was extremely simple: Close the project and shut down Android Studio completely, before re-opening it and then import/open the new project. Everything goes smoothly from then on.
第二段话是怎样解决问题的:解决的方法十分简单,关闭项目然后关闭Android Studio,然后再重新import/open
一个新的项目就好了,然后就没有问题了。经过测试方法可行。
刚开始用Android Studio的时候新建一个项目会报错,怎么解决呢,其实关闭Android Studio再次打开或者新建一个项目就没有问题了。
- Error:FAILURE: Build failed with an exception. * What went wrong: Task 'generate_360DebugSources' n
- Error:FAILURE: Build failed with an exception. * What went wrong: Task '' not found in root projec
- Android Studio 中 FAILURE: Build failed with an exception. * What went wrong: Execution failed for ta
- AndoridStudio--Error:FAILURE: Build failed with an exception.
- FAILURE: Build failed with an exception.
- FAILURE: Build failed with an exception
- What went wrong: Execution failed for task ':compileArmv7DebugJavaWithJavac'. 问题解决办法
- NDK配置debug环境时:Error:FAILURE: Build failed with an exception
- Spring 源码编译 出错FAILURE: Build failed with an exception.
- Android Studio 中 FAILURE: Build failed with an exception.
- 关于android studio 的FAILURE: Build failed with an exception解决办法
- 测试人员检出SVN的致命error,Build failed with an excception
- Fatal error: Uncaught exception 'RedisException' with message 'Redis server went away'
- Gradle build error, Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug
- Gradle build error, Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug
- Gradle build error, Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug
- Gradle build error, Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug
- Deployment failed because of an internal error: Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE]
- 563. Binary Tree Tilt(C语言)
- 日期函数:取过去或者将来多少天的日期
- 《Effective java 第2版》读书笔记--类与接口
- python-19-如何访问文件的状态?如何使用临时文件?
- Openvswitch原理与代码分析(3): 添加一条流表flow
- Error:FAILURE: Build failed with an exception. * What went wrong: Task 'generate_360DebugSources' n
- 友元函数
- swift3 删除main.storyboard之后(纯代码做项目)
- 跨平台远程框架Remoting SDK发布v9新版本,增加新的Code First服务器等功能
- 什么是高内聚、低耦合?
- 多线程执行父类和子类中的同步方法的结论
- Spark开发笔记(2017-05-04)
- mysql sql语句大全
- Android屏幕values-sw适配