Configure SDL2 on Windows Android

I followed this tutorial on setting up SDL2 on Windows Android, and I have to deal with some problems:

  • The SDK toolkit does not contain the SDK Manager.exe . And the SDK Manager.exe is mentioned throughout the tutorial (steps 5, 7, 8, and 12).

    • Regarding step 8, I downloaded the entire Android studio to use the SDK Manager from my interface and download Android 4.0.3 (API 15).

    • Regarding step 12, since the SDK Manager.exe no longer exists, I tried to set the folder for ANDROID_HOME in C: \ androiddevdir \ android-sdk \ tools when I read it.

  • In step 19, when I try to run ant debug , the build is not working properly and I got the following error

    Cannot find C: \ androiddevdir \ android-sdk \ tools \ tools \ ant \ build.xml imported from C: \ androiddevdir \ SDL2-2.0.5 \ SDL2-2.0.5 \ android-project \ build. XML

    And no, there is no C: \ androiddevdir \ android-sdk \ tools \ tools \ ant \ build.xml file, nor in C: \ androiddevdir \ android-sdk \ tools \ ant \ build. xml without additional subfolder of tools. Actually there is only one build.xml in C: \ androiddevdir ... one that is trying to import another.

Any help?

+5
source share

Source: https://habr.com/ru/post/1270643/


All Articles