问题描述
我有什么:
- 的Eclipse朱诺服务版本2在Windows 7工作64。
- Android的工作室更新到0.2.8
- ADT更新
我做了什么
我一直在使用Eclipse开发了很长时间,现在我想给一个机会,Android的工作室,所以我在谷歌开发者网页检查,我下载和更新的Android Studio来0.2.8。由于谷歌说,我确实需要从Eclipse中创建的文件的gradle,所以我这样做是为了出口。在那之后,我打开Android的工作室,并检查它说谷歌网页上:使用gradle这个包装。每次我尝试导入项目中,我得到一个错误说:
What should I do? Everything I have looked on the net is for an update of the ide to 0.2.7 with a project that is imported and not to being imported.
EDIT
gradle file: (my project has a deppendency for which also I made a gradle file from Eclipse. "library" is actionbarSherlock library
SOLVED
Finally, after the new upgrades the error has been solved. If you have this error try to update ADT to r22.2.1 and Android Studio to 0.2.9. Then, export again gradle from eclipse and try it to import it from AS.
Maybe you will have now an error with sdk dir importing the file. If so, add the variable ANDROID_HOME to windows variables with the route of your android sdk and after rebotting the computer try it again. Remember that with AS there's a new installation of ADT so you have to update also that one or change the path as shown here http://stackoverflow.com/a/18409923/1200914
这篇关于导入Android Studio中的Eclipse项目。误差摇篮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!