I have a working android app on my Android Studio (windows) and I am trying to create an apklib with MAVEN for the project.
When I run compile on MAVEN (3.0.5) I get the following error message:
Failed to execute goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.6.0:generate-sources (default-generate-sources) on project userprofile: 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. This command should give you all you need:
[ERROR] C:Program Files (x86)Androidandroid-studiosdkoolsandroid update sdk --no-ui --obsolete --force
I run the above command for update sdk but no luck (it was successful, but I keep get the above error). My SDK Manager shows that API 16 is installed.
Any ideas? (all questions on web conclude to install the API on SDK Manager :( )
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…