From ed5f5746dd109e3c565f5f08bce15c1979c0c051 Mon Sep 17 00:00:00 2001 From: Arkai1 Date: Mon, 14 Apr 2025 13:35:07 +0530 Subject: [PATCH] Update build.gradle --- src/en/animekai/build.gradle | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/en/animekai/build.gradle b/src/en/animekai/build.gradle index f2689a12..50d5719a 100644 --- a/src/en/animekai/build.gradle +++ b/src/en/animekai/build.gradle @@ -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' + } } \ No newline at end of file