If I use JDK 8, will my application run on android 4.0
My Android Studio project uses the default version 8 embedded JDK I want to know if my app will still run on Android 4.0 and 5.0 devices?
Solution
The app will definitely run on JDK 8.
Android Studio 3.0 and later supports all Java 7 language features and some Java 8 language features, depending on the platform version.
Android Studio provides built-in support for using certain Java 8 language features and third-party libraries that use them.
Note:
When developing apps for Android, using Java 8 language features is
optional. You can keep your project’s source and target compatibility
values set to Java 7, but you still need to compile using JDK 8.
Review about your minSDK
“What is your preferred minSDK?” If you start with API 19, you have a 95%”-> success rate
The minSdk is required to set the minimum API level runtime environment (android OS version) for the application. If you select the smallest minSdk, you can target the maximum number of devices.