2013-07-19 34 views
2

我一直在使用Android Studio中创建了一个简单的应用程序开始在Windows 7中,并已部署到我的手机(通过USB),并在模拟器上无数次,没有任何问题。的Android工作室停留在摇篮建立使用任务

突然间我不能再部署我的应用程序。当我打开Android Studio中在底部的消息称:“摇篮建立使用任务:干净,:项目名:assembleDebug]”这个过程只持续运行永远阻止我在Android Studio中做任何事情。

此消息不消失,我不能做任何事情。有谁之前经历过这个吗?好像Eclipse的可能是对我来说是更好的选择......

回答

0

真正的问题是,Android的Studio的早期版本配置错误的IDEA文件(例如MyProject.iml)。它添加了一个不应存在的额外<component name="FacetManager"> XML元素。

在上面的情况下,溶液是编辑MyProject.iml并除去<component name="FacetManager">部分如下所示:

<module external.system.id="GRADLE" type="JAVA_MODULE" version="4"> 
    <component name="FacetManager"> 
    ...remove this element and everything inside such as <facet> elements... 
    </component> 
    <component name="NewModuleRootManager" inherit-compiler-output="true"> 
    ...keep this part... 
    </component> 
</module> 

Gradle: FAILURE: Could not determine which tasks to execute也见。