Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android SDK platform targets (for sbt gen-android <platform-target> <package-name> <name>)

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.

like image 967
Alexey Orlov Avatar asked Nov 04 '14 12:11

Alexey Orlov


People also ask

Why target newer SDKs for Android APKs?

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.

What are the different Android SDKs?

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.

What is Android SDK platform tools?

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.

Why target newer SDKs in 2022?

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.


1 Answers

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.

like image 163
Karolis Avatar answered Oct 10 '22 03:10

Karolis