android studio 问题1

在使用androidStudio中,经常导入其他的项目,有时候会出现以下错误:

 

rror:FAILURE: Build failed with an exception.

* What went wrong:
Task '' not found in root project 'XXXX'.

* 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.

 

找不到项目路径

打开project根目录的iml文件,在module 中修改为 

external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" type="JAVA_MODULE" version="4"

就OK了, 设置一下 root project路径.

posted @ 2015-01-16 16:52  散散客  阅读(789)  评论(0编辑  收藏  举报