简体   繁体   English

Android Studio没有使用gradle来构建我的项目

[英]Android Studio is not using gradle to build my projects

I imported a project from Eclipse and android studio is not using my gradle scripts to build the project. 我从Eclipse导入了一个项目,android studio没有使用我的gradle脚本来构建项目。 Anyone else having this issue? 还有谁有相同的问题吗? Is there anyway to force Android Studio to use gradle to build my project. 反正是否迫使Android Studio使用gradle来构建我的项目。

If you import an existing project with no gradle configuration, Android Studio will use the old build system. 如果导入没有gradle配置的现有项目,Android Studio将使用旧的构建系统。 If you want to use gradle, you should follow the instructions in the documentation : 如果要使用gradle,则应遵循文档中的说明:

http://developer.android.com/sdk/installing/migrate.html http://developer.android.com/sdk/installing/migrate.html

删除.idea和.iml,然后再次打开您的项目

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM