Could not find tool aapt. Please provide proper Android SDK directory path as configuration parameter
In the last release of android sdk directory structure has changed. Build tools like aapt or dex has been moved from platform-tools to build-tools directory. Support for new directory structure was added in maven-android-plugin version 3.6.0. Changing plugin version to 3.6.0 in pom.xml must help.
<plugin> <groupId>com.jayway.maven.plugins.android.generation2</groupId> <artifactId>android-maven-plugin</artifactId> <version>3.6.0</version> <configuration> <androidManifestFile>src/main/other/AndroidManifest.xml</androidManifestFile> <resourceDirectory>src/main/resources</resourceDirectory> <sourceDirectory>src/main/java</sourceDirectory> <sdk> <platform>17</platform> <path>/opt/android-sdk/</path> </sdk> <manifest> <debuggable>true</debuggable> </manifest> </configuration> <extensions>true</extensions> </plugin>
当一个人找不到出路的时候,最好的办法就是将当前能做好的事情做到极致,做到无人能及。