1、导入工程时android studio报
Migrate Project to Gradle?
This project does not use the Gradle build system. We recommend that you migrate to using the Gradle build system.
2、解决方法:
Close your project(关闭工程)
Back up your project(备份你的项目)
Delete the .idea folder in the root directory of the project(在工程中删除 .idea文件夹)
Delete all the .iml files in your project(删除 .iml文件)
Import your project in Android Studio, and in the dialog that prompts you for a file, (导入你的工程到android studio)choose the build.gradle file.
After this you should be good to go.
3.教程
①当前你导入了这个项目,报错了,在studio开着的时候,项目在这个界面时候,你观看左侧列表,把(在工程中删除 .idea文件夹)删掉
②这时候你的左侧切换各种状态 Android或者project等,应该都是空白的
③此刻你点击工程的file--new--newImportProject----还是你的这个项目(例子:你的项目叫OneDemo,你执行到③操作时,你导入的就是OneDemo,你点击了,系统给你生成OneDemo1),此刻自动build.gradle了,项目可以运行了