android - 将 android 项目从 eclipse 迁移到 android studio 时出现 "Gradle location is incorrect"

标签 android eclipse android-studio

我按照本指南迁移了我的 android 项目 https://developer.android.com/sdk/installing/migrate.html

我已经通过 eclipse 导出了一个 Gradle 文件。当我尝试将项目导入 android studio 时,我遇到了这个错误。请帮忙enter image description here

安卓工作室版本0.6.1

最佳答案

这不是要求您的项目的 Gradle 结构化文件,它需要您的 Gradle 构建工具或 Gradle 配置文件的位置。

我认为它默认为您的用户主目录中名为 .gradle 的文件。
我的指向:

/home/indiv/.gradle

不过,我发现将我的 Eclipse 项目导入 Studio(作为 Eclipse 项目)比从 Eclipse 导出 Gradle 项目然后导入 Studio 更容易。

不过你的选择。

关于android - 将 android 项目从 eclipse 迁移到 android studio 时出现 "Gradle location is incorrect",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24352901/

相关文章:

android - 为什么 Bitmap.decodeFile() 方法返回 null?

eclipse - 使用 P4Eclipse 插件创建补丁失败并显示 "Perforce password (P4PASSWD) invalid or unset"

eclipse - 使用 Firefox 的 PDT/Xdebug

android - 在 Android Studio 上,检查 "Unused resources"不适用于我项目中的所有模块

java - 安卓 : Thread not passing data to Handler

android - 更新服务中的 MusicPlayer SeekBar

intellij-idea - 在 Android Studio 代码编辑器中使用 Control + 鼠标左键单击选择元素

android-studio - 我无法打开Android设备监视器

android - 将游标跳转到包含指定 ID 的行而不遍历所有记录

eclipse - eclipse 中自动发布