*** HOW TO FIX THIS ISSUE****
It was found that this is not a Construct 2 related issue. But problem due to incompatible APK for for device using x86 processor. (default APK uses ARM version)
To fix the issue and ensure compatibility across maximum devices (especially Tablets) make sure you are releasing both version on Google Play (ARM and x86).
How to do that?
After you finish building your game on Intel XDK, you can download the Build zip file. This file contains two type of APK files, x86 and ARM. Sign these APKs with the same Storekeys (if unsigned) .
- Then goto Google Play APK Section
- Click on "Switch to Advanced Mode"
- Upload both signed APKs, one after the other (order doesnt matter)
- Once uploaded, DEACTIVATE any previously uploaded versions
- You will see that the files are still in "Draft" mode
- Scroll up and click "Publish now"
- Now the status will change to "In Prod"
- And thats it! Google play will automatically decide which device should get what version (x86 or ARM)
- Now more crashes due to incompatible APKs! <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">
Problem Description
I recently released my game "Last of the Survivors" on Google Play.
Google Play Link : https://play.google.com/store/apps/deta ... esurvivors
Even though the game runs on majority of the devices, few users are reporting that the game crashes on their phones/tab. These are the guys giving bad rating for my game <img src="{SMILIES_PATH}/icon_e_sad.gif" alt=":(" title="Sad">
Fonepad 7 (K012)
MeMO Pad 8 (K011_1)
hudl 2 (HTF8A4)
Galaxy S5 (kltespr)
Please let me know if I can provide you any more data. Appreciate if you can look into the issue
Here is the log from the Google Dev Console's "Crash & ANRs" section.
java.lang.ExceptionInInitializerError
at org.apache.cordova.CordovaActivity.makeWebView(CordovaActivity.java:325)
at org.apache.cordova.CordovaActivity.init(CordovaActivity.java:361)
at org.apache.cordova.CordovaActivity.init(CordovaActivity.java:353)
at com.gamessolidrock.lastofthesurvivors.LastoftesurvivorsV4.onCreate(LastoftesurvivorsV4.java:31)
at android.app.Activity.performCreate(Activity.java:5303)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2296)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2417)
at android.app.ActivityThread.access$600(ActivityThread.java:148)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1355)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:150)
at android.app.ActivityThread.main(ActivityThread.java:5406)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.RuntimeException: java.lang.RuntimeException: Use SharedXWalkView if you want to support shared mode
at org.xwalk.core.ReflectionHelper.handleException(ReflectionHelper.java:233)
at org.xwalk.core.ReflectionHelper.handleException(ReflectionHelper.java:237)
at org.xwalk.core.ReflectionHelper.init(ReflectionHelper.java:132)
at org.xwalk.core.ReflectionHelper.loadClass(ReflectionHelper.java:199)
at org.xwalk.core.XWalkPreferences.setValue(XWalkPreferences.java:112)
at org.apache.cordova.CordovaWebView.<clinit>(CordovaWebView.java:890)
... 18 more
Caused by: java.lang.RuntimeException: Use SharedXWalkView if you want to support shared mode
... 23 more[/code:26ecl1xm]
[b]Attach a Capx[/b]
Google Store
[b]Description of Capx[/b]
Game crashes on certain Android devices. I have posted the log from Google above.
[b]Steps to Reproduce Bug[/b]
[ul]
[li] Use one of the above mentioned devices
[/li][li] Install my game
[/li][li] Try running it to trigger the crash[/li][/ul]
[b]Observed Result[/b]
Game Crashes
[b]Expected Result[/b]
No Crashes?
[b]Affected Browsers[/b]
[ul]
[li] Chrome: (NA)
[/li][li] FireFox: (NA)
[/li][li] Internet Explorer: (NA)[/li][/ul]
[b]Operating System and Service Pack[/b]
Windows 8.1 SP1
[b]Construct 2 Version ID[/b]
r197.2