Error:FAILURE: Build failed with an exception. * What went wrong: Task 'generate_360DebugSources' n
2017-05-05 16:51
423 查看
把一个用了几年的笔记本的硬盘换成了固态硬盘,然后又装了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,然后再重新[b]import/open
[/b]
一个新的项目就好了,然后就没有问题了。经过测试方法可行。
刚开始用Android Studio的时候新建一个项目会报错,怎么解决呢,其实关闭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,然后再重新[b]import/open
[/b]
一个新的项目就好了,然后就没有问题了。经过测试方法可行。
刚开始用Android Studio的时候新建一个项目会报错,怎么解决呢,其实关闭Android Studio再次打开或者新建一个项目就没有问题了。
相关文章推荐
- Error:FAILURE: Build failed with an exception. * What went wrong: Task '' not found in root projec
- The "GenerateResource" task failed unexpectedly. a generic error occured in GDI+
- android studio 中报Error:Execution failed for task ':app:mergeDebugResources'的解决方法
- 关于Android Studio使用.9.png图片引起的的Error:Execution failed for task ':app:mergeDebugResources'. 问题
- Error:Execution failed for task ':clean'. > Unable to delete directory :\build\intermediates
- Error: Execution failed for task ': app: dexRelease'. Com.android.ide.common.process.ProcessExceptio
- 解决 Error:java: javacTask: source release 1.X requires target release 1.X
- 混淆代码问题之没有jar包的解析Error:Execution failed for task ':app:transformClassesAndResourcesWithProguardForRel
- Error:Execution failed for task ':app:processDebugRecom.android.ide.common.process.ProcessException
- [Android] Error:java.lang.OutOfMemoryError: GC overhead limit exceeded;Execution failed for task ':t
- Error:Execution failed for task ':clean'. > Unable to delete directory :\build\intermediates
- 解决Error:Execution failed for task ':voxryJstyle1:transformClassesWithDexFor360Debug'.
- Grunt Error in linux: Running "watch" task Waiting...Warning: watch ENOSPC
- Error:Execution failed for task ':app:dexDebug'. > com.android.ide.common.process.ProcessException总结
- Error[Pe020]: identifier "OS_TASK_TMR_PRIO" is undefined D:\Stm32_ucosII_demo_yang\OS_uCOS_II\core\o
- Mysql create table failure: ERROR 1005 (HY000): Can't create table 'lams.attendance1' (errno: 121)
- Error:Execution failed for task ':app:mergeDebugResources'. > Error: java.util.concurrent.ExecutionE
- Assertion failure in -[AFHTTPRequestSerializer requestWithMethod:URLString:parameters:error:]
- Driver build Error "error C2220: warning treated as error - no 'object' file generated"
- Failure [DELETE_FAILED_INTERNAL_ERROR] 不能卸载