openfl / lime

A foundational Haxe framework for cross-platform development
https://lime.openfl.org/
MIT License
749 stars 361 forks source link

Android build failed, unexpected character: '\'' #1719

Closed DinoMah closed 9 months ago

DinoMah commented 9 months ago

I'm using Lime 8.1.0, NDK 20.0.5594570

FAILURE: Build failed with an exception.

player-03 commented 9 months ago

Try either NDK r15c or r21e.

DinoMah commented 9 months ago

Don't know whats happening with lime that adds C\: to the ndk path (like escaping :) or is missing one \, I just update lime to 8.1.0

player-03 commented 9 months ago

Are you on Windows? If so, is "C:\Users\Carlos\Documents\Haxe\Flixel\4Blind" correct?

Also, be sure to try NDK r15c or r21e.

DinoMah commented 9 months ago

Yes, I was planning to update from something newer than r15c and tried r21e, it compiled with r21e but gave me error at launch image

player-03 commented 9 months ago

Honestly, that's what I'd expect from r21e. It was never compatible with Lime 8.1.0 and below, but some people reported using it anyway. So I figured, maybe it worked as long as you don't rebuild the ndlls?

If you've run lime rebuild android at any point, maybe all you need to do is redownload the ndlls from Haxelib. Otherwise, I think your only options are to downgrade to NDK r15c or upgrade to Lime 8.2.0-Dev.

DinoMah commented 9 months ago

I found this comment in openfl release page and did what this user said and it worked perfectly https://community.openfl.org/t/openfl-9-3-0-and-lime-8-1-0-release/13807/8 I can close this C:

player-03 commented 9 months ago

Glad you got it working! As I mentioned in that thread, < is technically incorrect and you'd be better off commenting the line, but it likely won't matter as long as you never need to use an old Gradle plugin.

joshtynjala commented 9 months ago

Honestly, that's what I'd expect from r21e. It was never compatible with Lime 8.1.0 and below, but some people reported using it anyway. So I figured, maybe it worked as long as you don't rebuild the ndlls?

If I remember correctly, r21e may have worked with the previous Haxe and hxcpp 4.2 releases, but stopped working after the Haxe and hxcpp 4.3 updates.