Error building Android project with Maven: Platform/API level 16 not available
Asked Answered
M

1

7

I was actually compiling a android project using maven: mvn clean install and i got this error but don't understand why this is happening

Failed to execute goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.6.0:generate-sources (default-generate-sources) on project helloflashlight: Execution default-generate-sources of goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.6.0:generate-sources failed: Invalid SDK: Platform/API level 16 not available.

What should I do?

Meyers answered 10/6, 2013 at 12:5 Comment(2)
This happened to me while building the project through Android Studio terminal. When I tried to build via mvn console (using "mvn clean compile" for instance) everything went smoothly.Lollipop
See also: How to install platform tools, Check which version is currently availableSuccessive
L
7

My guess is that your app is configured with API Level 16 as the build target, and you do not have that installed through the SDK Manager. Use the SDK Manager to download the API Level 16 SDK components, and see if that helps.

Liaison answered 10/6, 2013 at 13:18 Comment(3)
ya you were right .Thanx for the help it is working properly nowMeyers
I have them installed but still getting this error. anyone else with similar problem?Blackguard
@geoak, here is someone.Lollipop

© 2022 - 2024 — McMap. All rights reserved.