Is this a bug with the latest version? I just upgraded from cocos2djs v3 alpha2 to the current version 3.7.1 and when trying to run my game on the android emulator as well as trying it on my android tablet, I seem to get the error below. I got this from logcat.
W/dalvikvm( 658): dvmFindClassByName rejecting 'org/cocos2dx/lib/Cocos2dxLocalStorage'
D/cocos2d-x debug info( 658): cocos2d: fullPathForFilename: No file found at script/jsb_boot.jsc. Possible missing file.
D/cocos2d ( 658): android build version:16
My menu screen shows up but when clicking on the ‘start game’ button, nothing happens.
I downloaded the latest cocos version using this site’s download link.
Then I installed it using setup.py.
Then I created a new project using the proper command.
After that I replaced the following:
with the ones from my old project that was using cocos2d-js v3 alpha2.
So after all that, I ran it on the browser(using command ‘cocos run -p web’) just to verify that everything is still working, and it is, in the browser at least. But when I try to compile it for android and try to run it, I get that error. I had to use logcat to find out about that error.
Has this been solved? I’m using 3.8.1 to target Android API 10 and get the same errors (No file found at script/jsb_boot.jsc, rejecting Cocos2dxLocalStorage) and another one (no file found at script/jsb_prepare.jsc) when running a clean ‘helloworld’ project. This didn’t seem to actually impact the game until I tried saving/loading local data using cc.sys.localStorage. When I do, only the debug numbers in the bottom left corner show up.
I’m working on Windows 7 and the project’s language is JS like the original poster.
Here’s the relevant log bit:
998 cocos2d-x debuginfo [D] cocos2d: fullPathForFilename: No file found at script/jsb_prepare.jsc. Possible missing file.
998 dalvikm [W] dvmFindClassByName rejecting ‘org/cocos2dx/lib/Cocos2dxLocalStorage’
998 cocos2d-x debuginfo [D] cocos2d: fullPathForFilename: No file found at script/jsb_boot.jsc. Possible missing file.
998 cocos2d android build version: 10