diff --git a/SDL2/Android.mediawiki b/SDL2/Android.mediawiki
index eea223248..419e06627 100644
--- a/SDL2/Android.mediawiki
+++ b/SDL2/Android.mediawiki
@@ -50,8 +50,12 @@ Notes:
* application doesn't quit
==== Troubleshooting ====
+* No matching variant of com.android.tools.build:gradle:8.1.1 was found.
Use jdk 17 (Dunno why it is written use jdk8 bellow
+
+* Task with path 'externalNativeBuildDebug' not found in project ':app'
* use OpenJDK 8: execute sudo update-alternatives --config java
and select jdk-8 as default; or use JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 ./gradlew
+
* fixed in 2.0.9: in /android-project/build.gradle
change (in BOTH places in the file code appears) from
repositories {
@@ -65,16 +69,20 @@ to
google()
}
+
* javax/xml/bind/annotation/XmlSchema, Could not initialize class com.android.sdklib.repository.AndroidSdkHandler
: check the Android Gradle Plugin version in /android-project/build.gradle
, e.g.
classpath 'com.android.tools.build:gradle:3.1.0'
+
* You can customize the Gradle version in /android-project/gradle/wrapper/gradle-wrapper.properties
:
distributionUrl=https\://services.gradle.org/distributions/gradle-4.9-all.zip
+
* You can customize your SDK/NDK versions in android-project/app/build.gradle:
android {
buildToolsVersion "28.0.1"
compileSdkVersion 28
+
* You can customize your targets depending on the NDK version:
externalNativeBuild {
@@ -82,8 +90,11 @@ externalNativeBuild {
arguments "APP_PLATFORM=android-14"
abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
+
* ABIs [x86_64, arm64-v8a] are not supported for platform. Supported ABIs are [armeabi, armeabi-v7a, x86, mips]
: upgrade to NDK >= 10
+
* Using ant (SDL <= 2.0.7): edit build-scripts/androidbuild.sh
, find the $ANDROID update project
line, and add --target android-XX
to it (replace XX with your installed API number)
+
* TODO: check how we can use the distro's gradle instead of executing stuff from the Internet - apt install gradle libgradle-android-plugin-java
=== SDL wrapper + SDL_image NDK module ===