I did an SDK update last night and it moved adb.exe. In its place it left a file called "adb_has_mov

本文介绍了如何解决Android SDK更新导致的ADB路径变化问题,特别是在Eclipse中无法找到正确ADB路径的情况。通过更新Eclipse ADT插件及调整环境变量等步骤,确保开发者能在集成开发环境中顺利使用ADB工具。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

I did an SDK update last night and it moved adb.exe. In its place it left a file called "adb_has_moved.txt" saying

The adb tool has moved to platform-tools/

If you don't see this directory in your SDK, launch the SDK and AVD Manager (execute the android tool) and install "Android SDK Platform-tools"

Please also update your PATH environment variable to include the platform-tools/ directory, so you can execute adb from any location.

So I did all that, including the PATH and now I can start adb.exe from any DOS prompt. But I still can't start it from Eclipse (Galileo 3.52). When I try it says

Location of the Android SDK has not been set up in the preferences

... which is not true. The SDK IS set up in Preferences. The real problem is at the top of the Preferences window where it says "Could not find C:\SDK\android-sdk-windows\ tools \adb.exe!" ...No kidding - the update moved it to C:\SDK\android-sdk-windows\ platform-tools. Because it's specifying a specific (wrong) path Eclipse is bypassing the PATH variable. So how do I get Eclipse to look in the right place?
android link|improve this question asked Feb 13 at 15:07

Peter Nelson
356316

72% accept rate

Was this post useful to you?

2 Answers
active
oldest
votes
up vote
0
down vote

Updating the ADT plugin from within Eclipse might help, as detailed here: http://developer.android.com/sdk/eclipse-adt.html

http://stackoverflow.com/questions/4984868/android-adb-has-moved-and-eclipse-is-looking-in-the-old-place

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值