app/build.gradle
android {
...
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8.toString()
}
}
GL
More Related Contents:
- startForeground fail after upgrade to Android 8.1
- No App Icon on ActionBar
- How to fix ERROR: No signature of method: build_ap86oam3dut3pxce3x49rdtma.android()?
- How to disable Instant Run for Android Studio 3.0
- Kotlin: Whats does “return@” mean?
- Why a new ViewModel is created in each Compose Navigation route?
- How can I create tests in Android Studio?
- Kotlin Error : Could not find org.jetbrains.kotlin:kotlin-stdlib-jre7:1.0.7
- ‘ERROR: Failed to resolve: com.android.support:appcompat-v7:29.0.1’ [duplicate]
- Why is the Android test runner reporting “Empty test suite”?
- Change Chip Widget style programmatically not working – Android
- Why a viewmodel factory is needed in Android?
- Outdated Kotlin Runtime warning in Android Studio
- Android Studio cannot resolve R in imported project?
- Android – How to achieve setOnClickListener in Kotlin?
- Android Studio Project Structure (v.s. Eclipse Project Structure)
- No Creators, like default construct, exist): cannot deserialize from Object value (no delegate- or property-based Creator
- Where does local.properties go for android project?
- Can’t create new Kotlin project after updating to Android Studio 4.2
- ‘setHasOptionsMenu(Boolean): Unit’ is deprecated. Deprecated in Java
- Execution failed for task ‘:app:checkReleaseDuplicateClasses’
- Android Hello-World compile error: Intellij cannot find aapt
- Keyboard hides BottomSheetDialogFragment
- How to disable and enable scrolling in LazyColumn/LazyRow in Jetpack Compose?
- How to add android.support.v7.widget.GridLayout into intelliJidea?
- How can I debounce a setOnClickListener for 1 second using Kotlin Coroutines?
- fillMaxSize modifier not working when combined with VerticalScroll in Jetpack Compose
- Android : Permissions check for BLE [closed]
- How to: Install Plugin in Android Studio
- Kotlin: open new Activity inside of a Fragment