nikita36078 / J2ME-Loader

A J2ME emulator for Android.
Apache License 2.0
1.72k stars 195 forks source link

Errors while building app in Android studio #963

Closed Hidte09 closed 1 year ago

Hidte09 commented 1 year ago

[CXX1405] error when building with ndkBuild using D:\J2ME LOADER\app\src\main\cpp\Android.mk: Build command failed. Error while executing process C:\Users\hidte\AppData\Local\Android\Sdk\ndk\22.1.7171670\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=D:\J2ME LOADER\app\src\main\cpp\Android.mk APP_ABI=armeabi-v7a NDK_ALL_ABIS=armeabi-v7a NDK_DEBUG=0 APP_PLATFORM=android-16 NDK_OUT=D:\J2ME LOADER\app\build\intermediates\cxx\Release\3f5y4c5l/obj NDK_LIBS_OUT=D:\J2ME LOADER\app\build\intermediates\cxx\Release\3f5y4c5l/lib APP_SHORT_COMMANDS=false LOCAL_SHORT_COMMANDS=false -B -n} Android NDK: Your APP_BUILD_SCRIPT points to an unknown file: D:\J2ME LOADER\app\src\main\cpp\Android.mk

fcntl(): Bad file descriptor C:/Users/hidte/AppData/Local/Android/Sdk/ndk/22.1.7171670/build//../build/core/add-application.mk:88: *** Android NDK: Aborting... . Stop.

woesss commented 1 year ago

Most likely because of the space in the folder name

Hidte09 commented 1 year ago

Then how to fix it to not get errors again.

nikita36078 commented 1 year ago

Remove white spaces from the project path, by renaming "J2ME LOADER" folder to something different, like "J2ME-Loader". It's how NDK build works, any names with space won't work.