您的位置:首页 > 其它

Cannot find 'aapt.exe'

2015-04-13 15:43 429 查看

Cannot find ‘aapt.exe’

在解决Xamarin.VS设计器无法显示layout后

(因为Xamarin.VS版本对Android SDK 版本不支持导致)

后来用了Xamarin.VS3.8 于Android SDK 24.0.2设计器显示出来了

可是报了一个Cannot find ‘aapt.exe’的错误。

上网找了很多资料,大致都是说Android SDK的目录有改变

解决办法一:

While you waiting new release of IntelliJ IDEA (or your IDE) … you need copy 1 folder(lab with dx.jar) and 1 file( aapt.exe)

from: (instalation path)\Android\android-sdk\build-tools\17.0.0\ to

to: (installation path)\Android\android-sdk\platform-tools

and

from: (instalation path)\Android\android-sdk\build-tools\17.0.0\aapt.exe

to: (instalation path)\Android\android-sdk\platform-tools\aapt.exe

if in windows your default path is C:\Program Files (x86),then

from: C:\Program Files (x86)\Android\android-sdk\build-tools\17.0.0\lib\

to: C:\Program Files (x86)\Android\android-sdk\platform-tools

from: C:\Program Files (x86)\Android\android-sdk\build-tools\17.0.0\aapt.exe

to: C:\Program Files (x86)\Android\android-sdk\platform-tools\aapt.exe

这个办法我试了不好使,不过看起来很有科学道理。(可能有用)

办法二:

最简单粗暴的直接拿一个别人正在用完整的Android SDK

链接:http://pan.baidu.com/s/1mgoVbK0

里面是完整的 Xamarin.VS.3.9的安装所有需要的工具以及安装方法。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐