Error Compiling APK

Hey guys. I’m here with another issue.

I’m using cocos2d-x 3.3 and I’m using CMD to try and compile my project into an apk. I’ve set my variables, and I use ‘cocos compile -p android’ from the root of the project folder.

It gets to a point where it says it’s building apk, but ends with the error:

The filename, directory name, or volume label syntax is incorrect.
Error running command, return code: 1

I’ve made sure I don’t have any non alphanumeric characters in the path. Don’t know what else could be the problem.

All help is appreciated! :slight_smile:

You should post a more detailed log of the error.

…
[armeabi] Gdbserver : [arm-linux-androideabi-4.9] libs/armeabi/gdbserver
[armeabi] Gdbsetup : libs/armeabi/gdb.setup
[armeabi] SharedLibrary : libcocos2dcpp.so
[armeabi] Install : libcocos2dcpp.so => libs/armeabi/libcocos2dcpp.so

make.exe: Leaving directory `C:/User/Test/proj.android’
building apk
running: ‘“C:\Software\Programming\apache-ant-194-bin\apache-ant-194\bin\ant” clean debug -f C:\User\Test\proj.android\build.xml -Dsdk.dir=“C:\Software\Programming\adt-bundle-windows-x86-20140321\adt-bundle-windows-x86-20140321\sdk”’

The filename, directory name, or volume label syntax is incorrect.
Error running command, return code: 1

Managed to find a way to compile the apk. By running the code right before the error:

‘“C:\Software\Programming\apache-ant-194-bin\apache-ant-194\bin\ant” clean debug -f C:\User\Test\proj.android\build.xml -Dsdk.dir=“C:\Software\Programming\adt-bundle-windows-x86-20140321\adt-bundle-windows-x86-20140321\sdk”’

All I had to do was remove the quotes.