Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
295 views
in Technique[技术] by (71.8m points)

Black sceen in android Cocos2d-js but working fine in browser/web

It always shows a black screen in my android phone. But it is working fine in my web browser. I do not know what is the problem. Here is the output that I am getting when running the cocos run -p android command.

BUILD SUCCESSFUL in 6s 55 actionable tasks: 2 executed, 53 up-to-date VCS Checkout Cache (D:FPGFirstGameframeworks untime-srcproj.android.gradlevcsWorkingDirs) has not been cleaned up in 1 days <-------------> 0% WAITING IDLE Move apk to D:FPGFirstGamesimulatorandroid Build succeed. Deploying mode: debug Installing on device /system/bin/sh: pm list packages: inaccessible or not found running: '"C:UsersNameAppDataLocalAndroidsdkplatform-toolsadb" install -r "D:FPGFirstGamesimulatorandroidFirstGame-debug.apk"'

Performing Streamed Install Success Starting application. running: '"C:UsersNameAppDataLocalAndroidsdkplatform-toolsadb" shell am start -n "name.windows/org.cocos2dx.javascript.AppActivity"'

Starting: Intent { cmp=name.windows/org.cocos2dx.javascript.AppActivity }

After showing this in the command prompt, the android shows only black screen, Please help.

question from:https://stackoverflow.com/questions/65868801/black-sceen-in-android-cocos2d-js-but-working-fine-in-browser-web

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...