[ERROR] Failed to execute goal Com.jayway.maven.plugins.android.generation2:and
Oid-maven-plugin:3.3.0:generate-sources (default-generate-sources) on Project L
Brary:execution Default-generate-sources of Goal Com.jayway.maven.plugins.andr
Id.generation2:android-maven-plugin:3.3.0:generate-sources failed:invalid SDK:
PLATFORM/API level is not available. This command should give you need:
[ERROR] D:\data\AppData\Local\Android\sdk\android-sdk\tools\android Update SDK
-no-ui--obsolete--force
Download the corresponding SDK version on the web and put it in the platform directory under the SDK directory.
Then the following exception is reported after running MVN eclipse:eclipse
Generate-sources failed:could not find tool ' AAPT '. Please provide a proper Android SDK directory path as configuration parameter <sdk><path>...</path>< /sdk> in the plugin <configuration/>. As an alternative, your may add the parameter to CommandLine:-dandroid.sdk.path= ... orset environment variable Android_hom E. [Help 1]
Probably means I can't find aapt. This can run the program, go to the SDK directory under the Platform-tools directory to execute the following command
Mklink Aapt.exe. \build-tools\17.0.0\aapt.exe
Where 17.0.0 needs to be based on its own SDK installation, such as the 21.1.1 version installed on my computer, then change to
Mklink Aapt.exe. \build-tools\17.0.0\aapt.exe
Build Android project times with maven no corresponding SDK version exception found