Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 755
Sree Avatar asked Jun 10 '13 12:06

Sree


1 Answers

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.

like image 69
CommonsWare Avatar answered Oct 11 '22 12:10

CommonsWare