Cannot find 'aapt.exe'

来源:互联网 发布:农村淘宝服务站赚钱吗 编辑:程序博客网 时间:2024/05/13 18:11

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的安装所有需要的工具以及安装方法。

0 0
原创粉丝点击