Build Android project times with maven no corresponding SDK version exception found

Source: Internet
Author: User

[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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.