Update build.gradle

This commit is contained in:
Arkai1 2025-04-14 13:35:07 +05:30 committed by GitHub
parent fb534ba665
commit ed5f5746dd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -7,8 +7,27 @@ ext {
apply from: "$rootDir/common.gradle"
android {
// Update compileSdkVersion and targetSdkVersion to ensure compatibility with dependencies
compileSdkVersion 34
defaultConfig {
minSdkVersion 21 // Minimum Android version supported
targetSdkVersion 34 // Align with compileSdkVersion
}
}
dependencies {
// Add necessary dependencies with correct versions
implementation "androidx.appcompat:appcompat:1.6.1"
implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.1" // JSON serialization for Kotlin
implementation "org.jsoup:jsoup:1.16.1" // Jsoup for HTML parsing
}
// Add a resolution strategy to force compatible versions
configurations.all {
resolutionStrategy {
force 'androidx.appcompat:appcompat:1.6.1' // Ensure this version is used across all modules
force 'org.jsoup:jsoup:1.16.1'
}
}