Не удалось проанализировать конфигурацию Gradle Application Module Application после изменения CompilesDK и BuildToolSveAndroid

Форум для тех, кто программирует под Android
Ответить
Anonymous
 Не удалось проанализировать конфигурацию Gradle Application Module Application после изменения CompilesDK и BuildToolSve

Сообщение Anonymous »

Я сталкиваюсь с следующей ошибкой в ​​Android Studio: не смог проанализировать конфигурацию модуля приложения Android. Решить проблемы с сборкой Gradle и /или Resync. < /P>
Я пробовал несколько вещей, чтобы исправить это:
Понижение версии CompilesDK
Изменение компилированных и строительных конверсий из диалога структуры проекта
< /> < /pree -gradle
нет. Файл на уровне приложения.plugins {
id 'com.android.application'
id 'org.jetbrains.kotlin.android'
id 'kotlin-kapt'
id 'com.google.android.libraries.mapsplatform.secrets-gradle-plugin'
< /code>
} < /p>
android {
namespace 'com.quizzing.qflagandcapitals'
compilesdk 36 < /p>
defaultConfig {
applicationId "com.quizzing.qflagandcapitals"
minSdk 23
targetSdk 35
versionCode 5
versionName "1.5"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
buildToolsVersion '36.0.0'
< /code>
} < /p>
dependencies {
implementation 'androidx.core:core-ktx:1.17.0'
implementation 'androidx.appcompat:appcompat:1.7.1'
implementation 'com.google.android.material:material:1.13.0'
implementation 'androidx.constraintlayout:constraintlayout:2.2.1'
implementation 'androidx.activity:activity-ktx:1.11.0'
implementation 'com.google.android.gms:play-services-maps:19.2.0'
implementation("com.google.android.gms:play-services-ads:24.6.0")
implementation "com.android.billingclient:billing-ktx:8.0.0"
implementation "androidx.fragment:fragment-ktx:1.8.9"

// OkHttp
implementation 'com.squareup.okhttp3:okhttp:5.1.0'
implementation 'com.squareup.okhttp3:logging-interceptor:5.1.0'

// Retrofit
implementation 'com.squareup.retrofit2:retrofit:3.0.0'
implementation 'com.squareup.retrofit2:converter-gson:3.0.0'

// Glide
implementation 'com.github.bumptech.glide:glide:5.0.5'
kapt 'com.github.bumptech.glide:compiler:5.0.5'

// Kotlin
implementation "org.jetbrains.kotlin:kotlin-stdlib:2.2.20"
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.10.2'

// Firebase dependencies
implementation 'com.google.firebase:firebase-auth-ktx:23.2.1'
implementation 'com.google.firebase:firebase-firestore-ktx:25.1.4'
implementation 'com.google.firebase:firebase-database-ktx:21.0.0'
implementation 'com.google.firebase:firebase-analytics-ktx:22.5.0'
implementation 'com.google.firebase:firebase-messaging-ktx:24.1.2'
implementation 'com.google.firebase:firebase-storage-ktx:21.2.0'
implementation 'com.google.firebase:firebase-crashlytics-ktx:19.4.4'

testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.3.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.7.0'
< /code>
} < /p>
I’m not sure what else I can try. Could someone help me identify why Android Studio cannot parse the Gradle config and how to fix it?

Подробнее здесь: https://stackoverflow.com/questions/797 ... hanging-co
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

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