2013-07-19 121 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也見。