Reputation: 1134
We have a game released in google play with many users playing it. We keep getting crash reports (not so many) in google play that say that cococs2dcpp could not be loaded. Any idea what might cause it for some of the users? (We have read online that it can be something related to simulators but it seems these crash reports are coming from real users on mobile devices that say in the crash report comment that the game does not open anymore)
java.lang.UnsatisfiedLinkError: Couldn't load cocos2dcpp from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.myproduct-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.myproduct-1, /vendor/lib, /system/lib]]]: findLibrary returned null
at java.lang.Runtime.loadLibrary(Runtime.java:355)
at java.lang.System.loadLibrary(System.java:525)
Caused by: java.lang.UnsatisfiedLinkError: Couldn't load cocos2dcpp: findLibrary returned null
at java.lang.Runtime.loadLibrary(Runtime.java:429)
at java.lang.System.loadLibrary(System.java:554)
So far it is reported from these devices
Upvotes: 3
Views: 8487
Reputation: 111
You need to run the command line script from the proj.android
folder - python build_native.py
. This generates the library you're missing.
Upvotes: 6