I have posted a while ago in a thread little tutorial on how I was struggling to compile otcv8 for android. I saw recently such posts that few people are struggling to compile too. So, I am copy-paste my insights here for easier search and in hope in the tutorial thread the knowledge won't get lost.
For further generations I am leaving some tips on how to compile this because its way more fun to develop game than walk through this dependency hell.
So, firstly download android sdk and make sure you have in android/sdk/platform/android-25 folder downloaded. When downloading through ADGE the SDK and stuff the newest releases does not have apache ant tools so you simply download it from here and paste in Android\Sdk\Tools instead of previously downloaded tools folder. "Cannot find build.xml" error building Android SDK sample (https://stackoverflow.com/questions/43648201/cannot-find-build-xml-error-building-android-sdk-sample)
When you will get error about EXEC : [javac] error : Target option 5 is no longer supported. Use 7 or later. then open Android\Sdk\tools\ant\build.xml file and change version 1.5 to 1.7
<property name="java.target" value="1.7" />
<property name="java.source" value="1.7" />
Lastly, the newest java sdks won't work as well and you will need old java sdk- for me worked this version jdk1.8.0_361. Also the newest apache ant version didn't worked for me too So I used apache-ant-1.9.7.
Also, you will need specific platform-tools version because latest doesn't work. For me Android\Sdk\build-tools\30.0.3 version worked while 33 didn't
GG & HF
For further generations I am leaving some tips on how to compile this because its way more fun to develop game than walk through this dependency hell.
So, firstly download android sdk and make sure you have in android/sdk/platform/android-25 folder downloaded. When downloading through ADGE the SDK and stuff the newest releases does not have apache ant tools so you simply download it from here and paste in Android\Sdk\Tools instead of previously downloaded tools folder. "Cannot find build.xml" error building Android SDK sample (https://stackoverflow.com/questions/43648201/cannot-find-build-xml-error-building-android-sdk-sample)
When you will get error about EXEC : [javac] error : Target option 5 is no longer supported. Use 7 or later. then open Android\Sdk\tools\ant\build.xml file and change version 1.5 to 1.7
<property name="java.target" value="1.7" />
<property name="java.source" value="1.7" />
Lastly, the newest java sdks won't work as well and you will need old java sdk- for me worked this version jdk1.8.0_361. Also the newest apache ant version didn't worked for me too So I used apache-ant-1.9.7.
Also, you will need specific platform-tools version because latest doesn't work. For me Android\Sdk\build-tools\30.0.3 version worked while 33 didn't
GG & HF