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的安装所有需要的工具以及安装方法。
相关文章推荐
- Spring cvc-elt.1: Cannot find the declaration of element 'beans'.
- Windows cannot find '.xlsx' Make sure you typed the name correctly, and then try again.
- Cannot run program "/android-sdk-linux/aapt.exe": error=2, 没有那个文件或目录
- cvc-elt.1: Cannot find the declaration of element 'taglib'的解决方法
- cocos2dx在Eclipse下编译报错:Cannot find module with tag 'CocosDenshion/android' in import path
- Spring启动异常: cvc-elt.1: Cannot find the declaration of element 'beans'
- Cocos2dx 2.0.2版本Android环境出错:Cannot find module with tag 'CocosDenshion/android' in import path
- NodeJS:cannot find module 'socket.io' | nmp全局安装 modules 后在应用中 require 不到的解决方案
- Caused by: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'beans'.
- Windows node.js npm install express -g Cannot find module 'express'
- nested exception is org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'beans'.
- SharePoint Error: 'Recycle IIS Application Pool': Win32: The system cannot find the path specified'
- org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'beans'.
- GoldenGate Data Pump 进程 report 报 WARNING OGG-01223 Cannot find executable file './server' 无法启动
- Spring启动异常: cvc-elt.1: Cannot find the declaration of element 'beans'
- org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'taglib'. 异常
- configure: error: Cannot find OpenSSL's <evp.h>
- 解决 Cannot find OpenSSL's <evp.h>
- maven编译error:Could not find tool 'aapt'. Please provide a proper Android SDK directory path as confi
- Android NDK: jni/Android.mk: Cannot find module with tag 'CocosDenshion/android' in import path