Вызвано: org.gradle.internal.metaobject.AbstractDynamicObject$CustomMessageMissingMethodException: не удалось найти метоAndroid

Форум для тех, кто программирует под Android
Anonymous
Вызвано: org.gradle.internal.metaobject.AbstractDynamicObject$CustomMessageMissingMethodException: не удалось найти мето

Сообщение Anonymous »

Привет, ребята, у меня такая проблема. Здесь, с Android Studio, вот мой установленный SDK:
Мой SDK установлен, кроме этих 2
У меня такая проблема:
Caused by: org.gradle.internal.metaobject.AbstractDynamicObject$CustomMessageMissingMethodException: Could not find method compileSdk() for arguments [30] on extension 'android' of type com.android.build.gradle.internal.dsl.BaseAppModuleExtension.

Gradle sync failed: Could not find method compileSdk() for arguments [30] on extension 'android' of type com.android.build.gradle.internal.dsl.BaseAppModuleExtension.

Caused by: java.lang.IllegalStateException: compileSdkVersion is not specified.

Мой файл build.gradle:
android {
compileSdk 30
buildToolsVersion "25.0.3"
defaultConfig {
applicationId "Net.er.bate.accel"
minSdk 19
targetSdk 31
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}


Подробнее здесь: https://stackoverflow.com/questions/734 ... messagemis

Вернуться в «Android»