Hi There,
I'm trying to backport the updater_sample system app to a platform build running Android 9 / API 28. This updater_sample app uses advanced Java features such as lambda functions which are not supported in the JDK of the platform build. So the platform build is failing when it attempts to compile the backported app.
If I was compiling the app via Android Studio I would add something like the following to the gradle config file:
android {
compileOptions {
// change compatibility to Java 8 to get Java 8 IDE support
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
But I'm not sure where to add this in the platform build.
Is there a way to configure the build of this system app in the platform build (perhaps via its Android.bp file) to use the JDK 1.8?
Thank you,
Donal