Recently, AndroidStudio has encountered this problem for the first time running a project. I don’t know the specific reason, but the solution is as follows.
Add the following to your app’s build.gradle file under the Android TAB.
Add the following to your app’s build.gradle file under the Android TAB.
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
Read More:
- Android Studio Error: Invoke-customs are only supported starting with Android O (–min-api 26)
- As Error:Could not determine the class-path for interface com.android.builder.model.AndroidProject.
- Caused by: com.android.builder.dexing.DexArchiveBuilderException: Failed to process D:\….\0.jar
- Android Studio sync build.gradle appears: Failed to resolve: com.android.support:appcompat problem
- Scala Flink Watermarker Error: Static Methods in interface require -target:jvm-1.8
- Android project error: could not resolve com.android.support .c onstraint:constraint-layout :2.0.2.
- How to Fix com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
- Putty logs in and prompts no supported authentication methods available
- No supported authentication methods available
- Failed to resolve: com.android.support:appcompat-v7:27.
- Failed to resolve: com.android.support:appcompat-v7:25.3.0
- About Android studio error: (26,13) failed to resolve: com.android.support : appcompat-v7:27. + error
- To solve the problem of C # calling excel interface error, prompt: the COM object of Microsoft. Office. Interop. Excel. Applicationclass is forcibly converted to the interface type “Microsoft. Offi”
- Diamond types are not supported at this language level appears in IntelliJ
- Installation user interface mode not supported solution
- Putty encountered an error when logging into alicloud CentOS: dis connected:No supported authentication methods available
- Error starting day: SELinux is not supported with the overlay 2
- Idea running Flink program reported an error: static methods in interface require- target:jvm-1.8
- Cross origin requests are only supported for
- [Git & GitHub] Solution: error: failed to push some refs to’https://github.com/xxxx.git’