junit.framework.AssertionFailedError: Please have your activity extend XWalkActivity for shared mode

JIRA | Roy Benjamin | 5 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    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}

    JIRA | 5 months ago | Roy Benjamin
    junit.framework.AssertionFailedError: Please have your activity extend XWalkActivity for shared mode
  2. 0

    GitHub comment 1068#154168856

    GitHub | 1 year ago | andybbtt11
    junit.framework.AssertionFailedError: Please have your activity extend XWalkActivity for shared mode
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    GitHub comment 1073#155807333

    GitHub | 1 year ago | ezramorse
    junit.framework.AssertionFailedError: Please have your activity extend XWalkActivity for shared mode
  5. 0

    GitHub comment 1068#160432822

    GitHub | 1 year ago | ezramorse
    junit.framework.AssertionFailedError: Please have your activity extend XWalkActivity for shared mode
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. junit.framework.AssertionFailedError

    Please have your activity extend XWalkActivity for shared mode

    at junit.framework.Assert.fail()
  2. JUnit
    Assert.fail
    1. junit.framework.Assert.fail(Assert.java:50)
    1 frame
  3. org.xwalk.core
    XWalkPreferences.setValue
    1. org.xwalk.core.XWalkCoreWrapper.initEmbeddedMode(XWalkCoreWrapper.java:220)
    2. org.xwalk.core.XWalkPreferences.reflectionInit(XWalkPreferences.java:268)
    3. org.xwalk.core.XWalkPreferences.setValue(XWalkPreferences.java:107)
    3 frames
  4. my.app.preferences
    WebViewPreferences.setup
    1. my.app.preferences.WebViewPreferences.setup(WebViewPreferences.java:61)
    1 frame
  5. my.app.application
    APPApplication.onCreate
    1. my.app.application.APPApplication.setupWebViewPreferences(APPApplication.java:78)
    2. my.app.application.APPApplication.onCreate(APPApplication.java:66)
    2 frames
  6. Android Platform
    ActivityThread.handleBindApplication
    1. android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1024)
    2. android.app.ActivityThread.handleBindApplication(ActivityThread.java:5361)
    2 frames