I can build the cocos2d-js successfully for android in debug mode with following command :
cocos compile -p android -m debug
but when build in release mode I got following error :
cocos compile -p android -m release
C:\Program Files (x86)\Android\android-sdk\tools\ant\build.xml:1135: The following error occurred while executing this line:
C:\Program Files (x86)\Android\android-sdk\tools\ant\build.xml:1147: Signing key test not found
Total time: 29 seconds
Error running command, return code: 1.
I have created the Signing key by following this command line :
keytool -genkey -v -keystore my-release-key.jks -keyalg RSA -keysize 2048 -validity 10000 -alias my-alias
And also, It does not ask for the signing key when i run the build command again so that i can not replace the old keystore with the new generated keystore. I tried to clean the build but i could not find out the command to do that (the is no option such as cocos - clean) .
Could you please advice ?
Thanks in advance !