I have an old project in cocos2dx 3.16 javascript version, I needed to upgrade the targetSdkVersion to 31. So I created a new project with cocos2dx 3.17.2 in Javascript, I tried to run the blank project on an android device but it’s showing black screen. I got these logs:
cocos2d: fullPathForFilename: No file found at main.js. Possible missing file.
cocos2d: fullPathForFilename: No file found at main.jsc. Possible missing file.
cocos2d: fullPathForFilename: No file found at main.js. Possible missing file.
ScriptingCore:: compileScript fail:main.js
win=Window{b5916f2 u0 Splash Screen com.xx.xxx EXITING} destroySurfaces: appStopped=false cleanupOnResume=false win.mWindowRemovalAllowed=true win.mRemoveOnExit=true win.mViewVisibility=8 caller=com.android.server.wm.WindowState.onExitAnimationDone:5920 com.android.server.wm.ActivityRecord$$ExternalSyntheticLambda11.accept:2 java.util.ArrayList.forEach:1262 com.android.server.wm.ActivityRecord.onAnimationFinished:8436 com.android.server.wm.WindowContainer.doAnimationFinished:3446 com.android.server.wm.WindowContainer.onAnimationFinished:3458 com.android.server.wm.Task.onAnimationFinished:8390