Set both compileSdkVersion
and targetSdkVersion
to 31
in your build.gradle(app)
file.
android {
compileSdkVersion 31 // <-- This
defaultConfig {
applicationId "com.example.app"
targetSdkVersion 31 // <-- and this too
// ...
}
}
More Related Contents:
- JCenter deprecation; impact on Gradle and Android
- unrecognized Attribute name MODULE (class com.sun.tools.javac.util.SharedNameTable$NameImpl)
- Translate java widget to kotlin [duplicate]
- Room database created in Kotlin, activity written in Java, can I do that?
- Formatting Double to String? [duplicate]
- Unfortunately MyApp has stopped. How can I solve this?
- Why does my function that calls an API return an empty or null value?
- com.android.build.transform.api.TransformException
- How to make an Android device vibrate? with different frequency?
- Execution Failed for task :app:compileDebugJavaWithJavac in Android Studio
- Transitive dependencies not resolved for aar library using gradle
- Why does my function that calls an API or launches a coroutine return an empty or null value?
- Failed to resolve: com.google.firebase:firebase-core:16.0.1
- Import Google Play Services library in Android Studio
- android:exported needs to be explicitly specified for . Apps targeting Android 12 and higher are required to specify
- onActivityResult() not called in new nested fragment API
- How to specify the JDK version in Android Studio?
- How to save an image in Android Q using MediaStore?
- How to include JAR dependency into an AAR library
- How to remove specific permission when build Android app with gradle?
- :app:dexDebug ExecException finished with non-zero exit value 2
- What does transitive = true in Gradle exactly do (w.r.t. crashlytics)?
- java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex in Android Studio 3.0 [closed]
- Failed to import new Gradle project: failed to find Build Tools revision *.0.0
- How to exclude an element from a Firestore query?
- What is the best way to declare on UI component in android with Kotlin?
- Android Failed to instantiate one or more classes
- Importing Facebook library in Android Studio: Could not find property ‘ANDROID_BUILD_SDK_VERSION’
- How can I get the average color of an image?
- Android Studio 3.0 DexArchiveBuilderException