Created
August 18, 2020 08:02
-
-
Save denihida1216/82699dae5c0bc3e022bbeb184ff48785 to your computer and use it in GitHub Desktop.
Error: Invoke-customs are only supported starting with Android O
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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