Error creating an Android project with Maven: platform level 16 / API unavailable

I actually built an android project using maven: mvn clean install , and I got this error, but don’t understand why this is happening

Failed to fulfill target com.jayway.maven.plugins.android.generation2: android-maven-plugin: 3.6.0: generate-sources (default sources-generation) in helloflashlight project: Default execution-sources-generation Target com. jayway.maven.plugins.android.generation2: android-maven-plugin: 3.6.0: generated sources failed: invalid SDK: platform / API level 16 not available.

What should I do?

+6
source share
1 answer

I assume that your application is configured at API level 16 as the build target, and you do not have this installed through the SDK Manager. Use the SDK Manager to download API level 16 SDK components and see if that helps.

+6
source

Source: https://habr.com/ru/post/946950/


All Articles