sdk找不到android.bat,sdk - Failed to execute tools\android.bat - Stack Overflow

在Windows 7环境下,一位新手开发者遇到了在安装Android SDK (installer_r23.0.2) 后,由于新增加了JDK 8,导致Android SDK无法正常运行的问题。尝试了复制SDK管理器和AVD管理器到SDK根目录,修改android.bat文件中的Java路径,甚至卸载JDK只保留JRE,但问题仍然存在。开发者请求解决方案。

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

I am very new in the android development,I download the SDK "installer_r23.0.2-windows.exe" form the android "https://developer.android.com/sdk/index.html?hl=i".

Initially i install it works fine,but due to some additional things I installed "jdk-8u25-windows-x64.exe". After JDK installation when i tried to run farther Android SDK "installer_r23.0.2-windows.exe" it shows me error "Failed to execute tools\android.bat".

I also checked many solutions on the stackoverflow like....

"I just copied sdk manager.exe and avd manager.exe from ..sdk\tools\lib to ..sdk"

"Change the line in the android.bat file with 'set java_exe= JAVA PATH\jre7\bin\java.exe'"

But did not get any positive result.

I try after removing JDK and install only JRE and try Andriod SDK but even that it shows me same issue.

Don't say it's permission issue because i also execute SDK as administrator permission.

Please help me out with this issue.

I am using windows 7 platform.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值