From 3a065c35f0b81e0d0dcb5ce5efd275c515fa24bc Mon Sep 17 00:00:00 2001 From: Triang3l Date: Mon, 11 Jul 2022 21:46:53 +0300 Subject: [PATCH] [Android] -j, not ndk.jobs, in Gradle --- android/android_studio_project/app/build.gradle | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/android/android_studio_project/app/build.gradle b/android/android_studio_project/app/build.gradle index ae753e1b2..a05d41823 100644 --- a/android/android_studio_project/app/build.gradle +++ b/android/android_studio_project/app/build.gradle @@ -18,13 +18,14 @@ android { arguments 'NDK_APPLICATION_MK:=../../../build/xenia.Application.mk', 'PREMAKE_ANDROIDNDK_PLATFORMS:=Android-ARM64', 'PREMAKE_ANDROIDNDK_PLATFORMS+=Android-x86_64', + // ndk.jobs doesn't work as of Gradle 7.1.0. + "-j${Runtime.runtime.availableProcessors()}", // Work around "Bad file descriptor" on Windows on NDK r22+. '--output-sync=none' } } ndk { abiFilters 'arm64-v8a', 'x86_64' - jobs Runtime.runtime.availableProcessors() stl 'c++_static' } }