[SOLVED] Android build failed

Guzzz

  • *
  • Posts: 403
I can't make a build for Android.
It seems it doesn't like NDK version, but I used API 15-4.0 (Ice Cream Sandwich)
Quote
[haxelib] sh: arm-linux-androideabi-g++: command not found
so what should I do?

« Last Edit: September 12, 2018, 05:36:26 am by Guzzz »
Watch my new game http://www.hitandcrash.com based on my comic strip https://www.instagram.com/hitandcrash

Paid job for a programmer http://community.stencyl.com/index.php/topic,57304.0.html

HeadlessD is my hand-painted dungeon crawler on iOs. Made in Stencyl. https://itunes.apple.com/app/id1153392110

rob1221

  • *
  • Posts: 9237
The minimum target versions are API 19 (to test/publish at all) and API 26 (to publish to Google Play).

Guzzz

  • *
  • Posts: 403
I figured out that the path for NDK was wrong. I fixed that and Stencyl compiled but eventually failed again... regardless of Android's version.

Quote
[haxelib] FAILURE: Build failed with an exception.
[haxelib] * What went wrong:
[haxelib] A problem occurred configuring root project 'bin'.
[haxelib] > Could not resolve all dependencies for configuration ':classpath'.
[haxelib]    > Could not resolve com.android.tools.build:gradle:2.1.0.
[haxelib]      Required by:
[haxelib]          :bin:unspecified
[haxelib]       > Could not resolve com.android.tools.build:gradle:2.1.0.
[haxelib]          > Could not get resource 'http://jcenter.bintray.com/com/android/tools/build/gradle/2.1.0/gradle-2.1.0.pom'.
[haxelib]             > Failure initializing default system SSL context

« Last Edit: September 11, 2018, 06:09:00 am by Guzzz »
Watch my new game http://www.hitandcrash.com based on my comic strip https://www.instagram.com/hitandcrash

Paid job for a programmer http://community.stencyl.com/index.php/topic,57304.0.html

HeadlessD is my hand-painted dungeon crawler on iOs. Made in Stencyl. https://itunes.apple.com/app/id1153392110

rob1221

  • *
  • Posts: 9237
Did you update Android tools in the preferences?

Guzzz

  • *
  • Posts: 403
If you mean "Download Android tools" I did this twice.
Watch my new game http://www.hitandcrash.com based on my comic strip https://www.instagram.com/hitandcrash

Paid job for a programmer http://community.stencyl.com/index.php/topic,57304.0.html

HeadlessD is my hand-painted dungeon crawler on iOs. Made in Stencyl. https://itunes.apple.com/app/id1153392110

Guzzz

  • *
  • Posts: 403
Here are my preferences
Watch my new game http://www.hitandcrash.com based on my comic strip https://www.instagram.com/hitandcrash

Paid job for a programmer http://community.stencyl.com/index.php/topic,57304.0.html

HeadlessD is my hand-painted dungeon crawler on iOs. Made in Stencyl. https://itunes.apple.com/app/id1153392110

rob1221

  • *
  • Posts: 9237
Maybe you need to update your JDK.  I was using 1.6 and had to update to 1.8, although I don't remember the reason why.

Guzzz

  • *
  • Posts: 403
I tried JDK 1.8 and now it says
Quote
[haxelib] > failed to find target with hash string 'android-26' in: /Users/guzboroda/stencylworks/android-sdk/android-sdk-macosx
Watch my new game http://www.hitandcrash.com based on my comic strip https://www.instagram.com/hitandcrash

Paid job for a programmer http://community.stencyl.com/index.php/topic,57304.0.html

HeadlessD is my hand-painted dungeon crawler on iOs. Made in Stencyl. https://itunes.apple.com/app/id1153392110

Guzzz

  • *
  • Posts: 403
Watch my new game http://www.hitandcrash.com based on my comic strip https://www.instagram.com/hitandcrash

Paid job for a programmer http://community.stencyl.com/index.php/topic,57304.0.html

HeadlessD is my hand-painted dungeon crawler on iOs. Made in Stencyl. https://itunes.apple.com/app/id1153392110

rob1221

  • *
  • Posts: 9237
Did you install API 26?

Guzzz

  • *
  • Posts: 403
As I can see I have SDK 28. How to install 26?
Watch my new game http://www.hitandcrash.com based on my comic strip https://www.instagram.com/hitandcrash

Paid job for a programmer http://community.stencyl.com/index.php/topic,57304.0.html

HeadlessD is my hand-painted dungeon crawler on iOs. Made in Stencyl. https://itunes.apple.com/app/id1153392110

rob1221

  • *
  • Posts: 9237
It's an option under Android Tools.  Just uncheck the other stuff you don't need.

Guzzz

  • *
  • Posts: 403
So I had to download SDK 26 via Android SDK Manager and then everything went well.
Watch my new game http://www.hitandcrash.com based on my comic strip https://www.instagram.com/hitandcrash

Paid job for a programmer http://community.stencyl.com/index.php/topic,57304.0.html

HeadlessD is my hand-painted dungeon crawler on iOs. Made in Stencyl. https://itunes.apple.com/app/id1153392110