I'm at a loss about the platform-target parameter for the gen-android command (android-sdk-plugin for SBT). Google isn't very helpful, too. Looks like there must be a way of questioning android sdk about platform targets available (installed)?
No gen-android usage examples, too.
Why target newer SDKs? When you upload an APK, it must meet Google Play’s target API level requirements. New apps must target Android 12 (API level 31) or higher; except for Wear OS apps, which must target Android 11 (API level 30) or higher.
Android 4.0 (API level 14) Android 3.2 (API level 13) Android 3.1 (API level 12) Android 3.0 (API level 11) Android 2.3.3 (API level 10) Android 2.3 (API level 9) This page provides release information about the SDK packages available for download from the SDK Manager, in the SDK Platforms tab.
How to use Android SDK Platform Tools The Android SDK and Android Studio are tools provided by Google for developers for the purpose of developing Android apps. The Android SDK, aka Android Software Development Kit, is a complete set of tools and utilities one would need to develop apps for Android.
Note: Starting in 2022 , some out-of-date apps will be unavailable to new users of devices that run newer versions of Android. Why target newer SDKs? Every new Android version introduces changes that bring security and performance improvements and enhance the Android user experience.
Make sue you are running SBT 0.13.5 or greater.
Then run sbt "gen-android android-19 com.your-pack testName"
.
This should create the packages and use android sdk version 19.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With