Android project error: invoke customers are only supported starting with Android o (- – min API 26)
Solution:
Under the app folder, click build. Gradle
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
As shown in the figure below
Similar Posts:
- Error:Error converting bytecode to dex [How to Solve]
- AS Import Project Error: Plugin with id ‘com.android.application’ not found.
- [Solved] Android Studio Error: Could not initialize class com.android.sdklib.repository.AndroidSdkHandler
- How to Solve Unknown error: Unable to build: the file dx.jar was not loaded from the SDK folder!
- [Solved] Android Studio Compile error: Android resource linking failed
- Could not find com.android.tools.build:gradle:3.3.0.
- error: unmappable character for encoding UTF-8
- [Solved] Android Studio Error: Could not initialize class com.android.sdklib.repository.AndroidSdkHandler
- Plugin is too old, please update to a more recent
- Error:(1, 0) Plugin with id ‘android’ not found.