android.view.ViewRootImpl$CalledFromWrongThreadException

Only the original thread that created a view hierarchy can touch its views.

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web393

  • via Unknown by lvyunxiao,
  • via Unknown by lvyunxiao,
  • via Stack Overflow by floflo41
    ,
  • Stack trace

    • android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views. at android.view.ViewRootImpl.checkThread(ViewRootImpl.java:6024) at android.view.ViewRootImpl.clearChildFocus(ViewRootImpl.java:2785) at android.view.ViewGroup.clearChildFocus(ViewGroup.java:790) at android.view.ViewGroup.clearChildFocus(ViewGroup.java:790) at android.view.ViewGroup.clearChildFocus(ViewGroup.java:790) at android.view.ViewGroup.clearChildFocus(ViewGroup.java:790) at android.view.ViewGroup.clearChildFocus(ViewGroup.java:790) at android.view.ViewGroup.clearChildFocus(ViewGroup.java:790) at android.view.View.clearFocusInternal(View.java:4725) at android.view.View.clearFocus(View.java:4708) at android.view.ViewGroup.clearFocus(ViewGroup.java:803) at android.view.ViewGroup.clearFocus(ViewGroup.java:807) at android.view.ViewGroup.clearFocus(ViewGroup.java:807) at android.view.ViewGroup.clearFocus(ViewGroup.java:807) at android.view.View.setFlags(View.java:8939) at android.view.View.setVisibility(View.java:6036) at org.apache.cordova.splashscreen.SplashScreen.pluginInitialize(SplashScreen.java:64) at org.apache.cordova.CordovaPlugin.privateInitialize(CordovaPlugin.java:49) at org.apache.cordova.PluginManager.getPlugin(PluginManager.java:161) at org.apache.cordova.PluginManager.startupPlugins(PluginManager.java:87) at org.apache.cordova.PluginManager.init(PluginManager.java:76) at org.apache.cordova.CordovaWebViewImpl.loadUrlIntoView(CordovaWebViewImpl.java:138) at org.apache.cordova.CordovaWebViewImpl.showWebPage(CordovaWebViewImpl.java:216) at org.apache.cordova.CoreAndroid.loadUrl(CoreAndroid.java:199) at org.apache.cordova.CoreAndroid.execute(CoreAndroid.java:94) at org.apache.cordova.CordovaPlugin.execute(CordovaPlugin.java:82) at org.apache.cordova.PluginManager.exec(PluginManager.java:122) at org.apache.cordova.CordovaBridge.jsExec(CordovaBridge.java:59) at org.crosswalk.engine.XWalkExposedJsApi.exec(XWalkExposedJsApi.java:40) at org.chromium.base.SystemMessageHandler.nativeDoRunLoopOnce(Native Method) at org.chromium.base.SystemMessageHandler.handleMessage(SystemMessageHandler.java:53) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:136) at android.os.HandlerThread.run(HandlerThread.java:61)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    filpgamefilpgame
    6 times, last one
    jkjk
    2 times, last one
    lribeirolribeiro
    Once,
    thilothilo
    2 times, last one
    ReichReich
    Once,
    28 more bugmates