From 0415b60ba59585a3edabe99c010bf082c20447fe Mon Sep 17 00:00:00 2001 From: Tamim Hossain <132823494+CodeWithTamim@users.noreply.github.com> Date: Sat, 10 Aug 2024 17:32:32 +0600 Subject: [PATCH] Fix ABI split configuration for updated Gradle plugin API (#3449) * Fix ABI split configuration for updated Gradle plugin API Updated the ABI split configuration in the build.gradle file to use the new syntax. Replaced deprecated `reset()` method with the updated `splits.abi` configuration block and added `universalApk = true` to include a universal APK. * Unresolved reference: universalApk Unresolved reference: universalApk --- V2rayNG/app/build.gradle.kts | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/V2rayNG/app/build.gradle.kts b/V2rayNG/app/build.gradle.kts index 96617b89..9203d6d4 100644 --- a/V2rayNG/app/build.gradle.kts +++ b/V2rayNG/app/build.gradle.kts @@ -14,15 +14,19 @@ android { versionCode = 580 versionName = "1.8.36" multiDexEnabled = true - splits.abi { - reset() - include( - "arm64-v8a", - "armeabi-v7a", - "x86_64", - "x86" - ) + splits { + abi { + isEnable = true + include( + "arm64-v8a", + "armeabi-v7a", + "x86_64", + "x86" + ) + isUniversalApk = true + } } + } compileOptions { @@ -50,13 +54,6 @@ android { jvmTarget = JavaVersion.VERSION_1_8.toString() } - splits { - abi { - isEnable = true - isUniversalApk = true - } - } - applicationVariants.all { val variant = this val versionCodes =