openfl / lime

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

Android NDK path issue in bin/app/build.gradle on 8.1.0 #1722

Closed KarimAkra closed 8 months ago

KarimAkra commented 8 months ago

for some reason lime 8.1.0 messes up the ndk path in bin/app/build.gradle

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\Users\User\Project\export\release\android\bin\app\build.gradle' line: 18

* What went wrong:
Could not compile build file 'C:\Users\User\Project\export\release\android\bin\app\build.gradle'.
> startup failed:
  build file 'C:\Users\User\Project\export\release\android\bin\app\build.gradle': 18: Unexpected character: '\'' @ line 18, column 10.
        ndkPath 'c \ : \ \android-ndk-r11c'
  1 error
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.       

See https://docs.gradle.org/7.4.2/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 2s

bin\app\build.gradle has the NDK path as c\ : \ \android-ndk-r11c(with no spaces ofc) whenever i run lime build android

if i change the path to c:\android-ndk-r11c in build.gradle while it's compiling it goes just fine with no errors

I'm compiling on windows 11 so idk if other platforms have this issue

player-03 commented 8 months ago

Thanks for reporting and sorry for the trouble, but this was already fixed in #1721.