Eclipse 可以使用与 Android Studio (intelliJ) 相同的 sdk 吗? [英] Can Eclipse use the same sdk that Android Studio (intelliJ)?

查看:38
本文介绍了Eclipse 可以使用与 Android Studio (intelliJ) 相同的 sdk 吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Android Studio,但目前我需要 Eclipse.因此,在 Window > Preferences > Android 中,在 SDK Location 中,我选择了 Android Studio 文件夹中的 sdk 位置,即 .../android-studio/sdk,但它找不到我安装的 sdk API.

I'm using Android Studio, but I need Eclipse at the moment. So, in Window > Preferences > Android, in SDK Location, I choose the sdk location inside my Android Studio folder, that is .../android-studio/sdk, but it can't find the sdk APIs I've installed.

当我尝试输入此配置时,它显示:

And when I try to enter this configuration, it shows:

The currently displayed page contains invalid values

有什么帮助吗?

谢谢!

推荐答案

我知道答案已经晚了,但如果有人搜索这个..

I know it is late for the answer but if anyone search for this..

首先你要设置一个通用的SDK,比如把你的SDK文件夹放在以下位置C:\Android\sdk

First you have to set up a common SDK, for example put your SDK folder at the following location C:\Android\sdk

在您的 Android Studio 中链接 SDK,转到 File->Project Structure->Android SDK 并将 C:\Android\sdk 指向 Android SDK 位置.

Link SDK in your Android Studio, go to File->Project Structure->Android SDK and point the C:\Android\sdk in Android SDK location.

在您的 Eclipse ADT 中链接 SDK,转到 Eclipse->Preferences->Android 并将 SDK 位置更改为 C:\Android\sdk

Link SDK in your Eclipse ADT, go to Eclipse->Preferences->Android and change the SDK Location to C:\Android\sdk

*重启 Eclipse 和 Android Studio

*Restart both Eclipse and Android Studio

这篇关于Eclipse 可以使用与 Android Studio (intelliJ) 相同的 sdk 吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆