ADT 22 - missing aapt.exe after upgrading

耗尽温柔 提交于 2019-11-28 18:43:53

It's moved to:

path/to/your/android-sdk/build-tools/17.0.0/...

I'm assuming this it to ad versioning to the build tools.

We need the android-maven-plugin to do a fix! As its looking for the files under platform-tools/... which of course they are not anymore.

Update - Fixed

Update your pom.xml to 3.6.0 (or greater). The android-maven-plugin has been updated to support the new structure.

See 3.6.0 Released

<plugin>
    <groupId>com.jayway.maven.plugins.android.generation2</groupId>
    <artifactId>android-maven-plugin</artifactId>
    <version>3.6.0</version>
    <inherited>true</inherited>
    <configuration>
        <sdk>
            <platform>${android.platform}</platform>
        </sdk>
     </configuration>
</plugin>

Temp Fix (Old - See Fix)

As mentioned by the OP, copy the files from /build-tools/17.0.0/... to /platform-tools until the maven plugin is fixed.

For unix users

cp -r build-tools/17.0.0/* platform-tools/

From your android sdk folder.

The correct fix is to clone the android-maven-plugin wich is actually up to date with the latest developper tools but not yet released in central maven repository :

Clone the android-maven-plugin on GitHub and install it in your repo

git clone https://github.com/jayway/maven-android-plugin.git
cd .../maven-android-plugin/
mvn clean install

Then update your pom to use version 3.5.4-SNAPSHOT of the plugin. Everything should work properly !

You need add ~/sdk/build-tools to you $PATH

Just make sure you've installed Build-tools. Unfortunately you need to run SDK manager twice. For the first time to upgrade Tools to revision 22, then close it (reload from menu doesn't work) and run again. After refresh you'll see an update of Platform-Tools to revision 17 and new package called Build-tools that contains aapt.

Hope it helps.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!