junit.framework.AssertionFailedError

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Impacted Cases ============== I've a device on arm64-v8a, with another library (Trusteer). If I use the arm64-v8a file from Trusteer, CrossWalk crashes. The device is a Nexus 5X. Here's the stack trace : {noformat} I/APP_APPApplication: attachBaseContext I/MultiDex: VM with version 2.1.0 has multidex support I/MultiDex: install I/MultiDex: VM has multidex support, MultiDex support library is disabled. I/APP_APPApplication: onCreate I/APP_APPApplication: setupCrashlytics I/CrashlyticsCore: Initializing Crashlytics 2.3.8.97 I/APP_APPApplication: startCloudCardService I/APP_APPApplication: setupXitiManager I/APP_APPApplication: setupWebServicesManager I/APP_APPApplication: setupWebViewPreferences I/APP_WebViewPreferences: use animatable xwalk view D/XWalkLib: Init embedded mode D/XWalkLib: [App Version] build:18.48.477.13, api:5, min_api:5 D/XWalkLib: [Lib Version] build:18.48.477.13, api:5, min_api:5 D/XWalkLib: XWalk core version matched D/XWalkLib: Supported ABIs: arm64-v8a, armeabi-v7a, armeabi *D/XWalkLib: Device ABI: arm64-v8a D/XWalkLib: java.lang.UnsatisfiedLinkError*: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/my.app-1/base.apk"],nativeLibraryDirectories=[/data/app/my.app-1/lib/arm64, /system/fake-libs64, /data/app/my.app-1/base.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64]]] couldn't find "libxwalkcore.so" D/XWalkLib: Mismatch of CPU architecture D/AndroidRuntime: Shutting down VM E/CrashlyticsCore: Failed to execute task. java.util.concurrent.TimeoutException at java.util.concurrent.FutureTask.get(FutureTask.java:177) at com.crashlytics.android.core.CrashlyticsExecutorServiceWrapper.executeSyncLoggingException(CrashlyticsExecutorServiceWrapper.java:44) at com.crashlytics.android.core.CrashlyticsUncaughtExceptionHandler.uncaughtException(CrashlyticsUncaughtExceptionHandler.java:235) at com.atinternet.tracker.CrashDetectionHandler.uncaughtException(CrashDetectionHandler.java:107) at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1068) at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1063) E/AndroidRuntime: FATAL EXCEPTION: main Process: my.app, PID: 25921 junit.framework.AssertionFailedError: Please have your activity extend XWalkActivity for shared mode at junit.framework.Assert.fail(Assert.java:50) at org.xwalk.core.XWalkCoreWrapper.initEmbeddedMode(XWalkCoreWrapper.java:220) at org.xwalk.core.XWalkPreferences.reflectionInit(XWalkPreferences.java:268) at org.xwalk.core.XWalkPreferences.setValue(XWalkPreferences.java:107) at my.app.preferences.WebViewPreferences.setup(WebViewPreferences.java:61) at my.app.application.APPApplication.setupWebViewPreferences(APPApplication.java:78) at my.app.application.APPApplication.onCreate(APPApplication.java:66) at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1024) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5361) at android.app.ActivityThread.-wrap2(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1528) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6077) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755) W/ActivityManager: Force finishing activity my.app/.ui.activities.AuthenticationActivity {noformat}
    via by Roy Benjamin,
  • GitHub comment 1068#154168856
    via GitHub by andybbtt11
    ,
  • GitHub comment 1073#155807333
    via GitHub by ezramorse
    ,
  • GitHub comment 1068#160432822
    via GitHub by ezramorse
    ,
  • GitHub comment 18#196248688
    via GitHub by penguintsui
    ,
  • Error when using module
    via GitHub by dmordave
    ,
  • I got some Play Store crashes report. Not a lot, but a few since i upgrade to cordova 5.1.1 and cordova-android 4.1.0 using cordova-plugin-crosswalk-webview 1.3.0. Here is the detailed report: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.tennistemple/com.tennistemple.MainActivity}: java.lang.RuntimeException: Failed to create webview. at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2306) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2358) at android.app.ActivityThread.access$600(ActivityThread.java:156) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1340) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:153) at android.app.ActivityThread.main(ActivityThread.java:5299) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.RuntimeException: Failed to create webview. at org.apache.cordova.CordovaWebViewImpl.createEngine(CordovaWebViewImpl.java:82) at org.apache.cordova.CordovaActivity.makeWebViewEngine(CordovaActivity.java:202) at org.apache.cordova.CordovaActivity.makeWebView(CordovaActivity.java:198) at org.apache.cordova.CordovaActivity.init(CordovaActivity.java:147) at org.apache.cordova.CordovaActivity.loadUrl(CordovaActivity.java:220) at com.tennistemple.MainActivity.onCreate(MainActivity.java:32) at android.app.Activity.performCreate(Activity.java:5122) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1081) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2270) ... 11 more Caused by: java.lang.reflect.InvocationTargetException at java.lang.reflect.Constructor.constructNative(Native Method) at java.lang.reflect.Constructor.newInstance(Constructor.java:417) at org.apache.cordova.CordovaWebViewImpl.createEngine(CordovaWebViewImpl.java:80) ... 19 more Caused by: junit.framework.AssertionFailedError: Please have your activity extend XWalkActivity for shared mode at junit.framework.Assert.fail(Assert.java:50) at org.xwalk.core.XWalkCoreWrapper.initEmbeddedMode(XWalkCoreWrapper.java:180) at org.xwalk.core.XWalkPreferences.setValue(XWalkPreferences.java:105) at org.crosswalk.engine.XWalkCordovaView.setGlobalPrefs(XWalkCordovaView.java:37) at org.crosswalk.engine.XWalkCordovaView.<init>(XWalkCordovaView.java:48) at org.crosswalk.engine.XWalkWebViewEngine.<init>(XWalkWebViewEngine.java:56) ... 22 more I hope that is enough to track the issue. Thanks by advance
    via by Tom Nonk,
  • App crashed in android
    via GitHub by abada
    ,
    • junit.framework.AssertionFailedError: Please have your activity extend XWalkActivity for shared mode at junit.framework.Assert.fail(Assert.java:50) at org.xwalk.core.XWalkCoreWrapper.initEmbeddedMode(XWalkCoreWrapper.java:220) at org.xwalk.core.XWalkPreferences.reflectionInit(XWalkPreferences.java:268) at org.xwalk.core.XWalkPreferences.setValue(XWalkPreferences.java:107) at my.app.preferences.WebViewPreferences.setup(WebViewPreferences.java:61) at my.app.application.APPApplication.setupWebViewPreferences(APPApplication.java:78) at my.app.application.APPApplication.onCreate(APPApplication.java:66) at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1024) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5361)

    Users with the same issue

    Unknown visitor1 times, last one,
    Adrien
    9 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Casper
    2 times, last one,
    27 more bugmates