Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save denihida1216/82699dae5c0bc3e022bbeb184ff48785 to your computer and use it in GitHub Desktop.
Save denihida1216/82699dae5c0bc3e022bbeb184ff48785 to your computer and use it in GitHub Desktop.
Error: Invoke-customs are only supported starting with Android O
Add in builg.gradle
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
Example:
apply plugin: 'com.android.application'
android {
compileSdkVersion 30
buildToolsVersion "30.0.1"
defaultConfig {
applicationId 'com.android.motekar'
minSdkVersion 16
targetSdkVersion 30
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
//insert here
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment