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

泄露秘密 提交于 2019-12-04 01:15:45

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/17023461/error-building-android-project-with-maven-platform-api-level-16-not-available

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!