As myself and my collegue running same android code in different os.when my collegue run the code in ubuntu() its code was successfully running.
he shared the code via bitbucket i am cloning same code and try to running in win10 but i am facing following
error throw:-
----------------------------
Error: Invoke-customs are only supported starting with Android O (--min-api 26)
stacktrace
-----------------------------
com.android.builder.dexing.DexArchiveBuilderException: Failed to process H:\projects\zinx-player1\app\build\intermediates\transforms\instantRun\debug\0
com.android.builder.dexing.DexArchiveBuilderException: Error while dexing.
com.android.tools.r8.CompilationFailedException: Compilation failed to complete
com.android.tools.r8.utils.AbortException: Error: Invoke-customs are only supported starting with Android O (--min-api 26)
i verified the following link to check version compactblity everything.but not clear my issue
https://stackoverflow.com/questions...-supported-starting-with-android-0-min-api-26
my basic config:
android {
compileSdkVersion 28
buildToolsVersion '28.0.3'
defaultConfig {
minSdkVersion 16
targetSdkVersion 28
renderscriptTargetApi 28
vectorDrawables.useSupportLibrary = true
applicationId 'com.arun.carapplication'
versionCode 170
versionName '1.2.0'
multiDexEnabled true
}