-
theschoolofgamesLikes 0Problem Description
I am trying to run the default app on an android device.
When I run the following command:
cocos run -p android
everything looks right in the console,
but the device says "unfortunately , app has stopped" .
logcat has the following error:
W/PackageManager( 453): Not granting permission android.permission.MOUNT_UNMOUNT_FILESYSTEMS to package org.cocos2dx.game (protectionLevel=18 flags=0x88be46)
W/PackageManager( 453): Not granting permission android.permission.MOUNT_UNMOUNT_FILESYSTEMS to package org.cocos2dx.tsogcocos (protectionLevel=18 flags=0x88be46)
I/ActivityManager( 453): Force stopping org.cocos2dx.game appid=10081 user=-1: uninstall pkgAny clues ?
-
Sonar Systems adminLikes 0
have you compiled/built the project?
-
theschoolofgamesLikes 1
Yes I have compiled using
cocos compile -p android
-
Sonar Systems adminLikes 0
Did it compile successfully?
-
TinyMineLikes 0
Dear gentlemen of sonar systems,
first of all – you guys are great and such a help for creating apps faster and more efficient when it is coming to cocos foreign sdks.
Sadly i also encounter the “App has stopped” problem. I tried to use your bridge for google play services in this case.So what have I done so far?Following your Tutorials https://www.youtube.com/watch?v=nb3246WCq-s and then https://www.youtube.com/watch?t=883&v=ZUy6strEHwA step by stepcompiling it (due to the error “App has stopped” with both options) – export signed apk with eclipse and doing it by cocos another time by “cocos compile -p android -m relase” to make sure that the creation was succesful.→ No errors at allInstalling it on my testphone (galaxy s3 neo android 4.2) – tried both apks created by cocos compile and eclipse exportStarting itApp has stopped → immediatly. There was no sign of loading a scene or something. The crash was there as soon as the landscape tried to change (from portrait to landscape in this case).
Some more sidefacts:- google play games services updated to latest version (25)- cocos2dx version is 3.6 (newest atm)- android ndk is r9d (probably test r10 tomorrow) but… no errors during compiling so… probably not the root of the problem- ant is 194Error found – maybe next time i will have a smarter look at things.
Solution in my case → one of the frameworks in sonar settings was set to true by default. I did not have a look at those (just had true in google play services without checking the others)
Stupid mistake and I am quite embarassed *smile*
However: Keep up that great work guys – love ya! Cheers
This reply has been verified.
-
Sonar Systems adminLikes 1
No question is stupid.
Login to reply