Android Studio 3.1.4: Can't preview new Toolbar











up vote
0
down vote

favorite












I'm newbie in Android Studio and I'm trying to create a new Toolbar but i'm getting a "java.lang.ClassNotFoundException":
I found a possible solution below but I dont want to downgrade compileSdkVersion and targetSdkVersion from 28 to 27.



android.view.View$OnUnhandledKeyEventListener



I didn't even code anything in "MainActivity.java". I just created the toolbar_layout.xml and can't preview anything!



How can I fix this preview error?



styles.xml



<resources>

<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>

</resources>


build.gradle(Module:app)



apply plugin: 'com.android.application'

android {
compileSdkVersion 28
defaultConfig {
applicationId "com.example.rob.toolbar"
minSdkVersion 16
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.android.support:design:28.0.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}


MainActivity.java



package com.example.rob.toolbar;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

public class MainActivity extends AppCompatActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
}


activity_main.xml



<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">

<include
layout="@layout/toolbar_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>

</RelativeLayout>


toolbar_layout.xml



<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar_layout"
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@android:color/holo_red_dark">

</android.support.v7.widget.Toolbar>


Exception message:




java.lang.ClassNotFoundException: android.view.View$OnUnhandledKeyEventListener
at org.jetbrains.android.uipreview.ModuleClassLoader.load(ModuleClassLoader.java:180)
at com.android.tools.idea.rendering.RenderClassLoader.findClass(RenderClassLoader.java:61)
at org.jetbrains.android.uipreview.ModuleClassLoader.findClass(ModuleClassLoader.java:118)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at org.jetbrains.android.uipreview.ModuleClassLoader.loadClass(ModuleClassLoader.java:213)
at android.support.v7.widget.ViewUtils.isLayoutRtl(ViewUtils.java:58)
at android.support.v7.widget.Toolbar.onMeasure_Original(Toolbar.java:1578)
at android.support.v7.widget.Toolbar.onMeasure(Toolbar.java)
at android.view.View.measure_Original(View.java:22071)
at android.view.View_Delegate.measure(View_Delegate.java:80)
at android.view.View.measure(View.java:22035)
at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:715)
at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:461)
at android.view.View.measure_Original(View.java:22071)
at android.view.View_Delegate.measure(View_Delegate.java:80)
at android.view.View.measure(View.java:22035)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6602)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:185)
at android.view.View.measure_Original(View.java:22071)
at android.view.View_Delegate.measure(View_Delegate.java:80)
at android.view.View.measure(View.java:22035)
at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:715)
at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:461)
at android.view.View.measure_Original(View.java:22071)
at android.view.View_Delegate.measure(View_Delegate.java:80)
at android.view.View.measure(View.java:22035)
at com.android.layoutlib.bridge.impl.RenderSessionImpl.measureView(RenderSessionImpl.java:590)
at com.android.layoutlib.bridge.impl.RenderSessionImpl.inflate(RenderSessionImpl.java:343)
at com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:384)
at com.android.tools.idea.layoutlib.LayoutLibrary.createSession(LayoutLibrary.java:193)
at com.android.tools.idea.rendering.RenderTask.createRenderSession(RenderTask.java:544)
at com.android.tools.idea.rendering.RenderTask.lambda$inflate$3(RenderTask.java:678)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)











share|improve this question


























    up vote
    0
    down vote

    favorite












    I'm newbie in Android Studio and I'm trying to create a new Toolbar but i'm getting a "java.lang.ClassNotFoundException":
    I found a possible solution below but I dont want to downgrade compileSdkVersion and targetSdkVersion from 28 to 27.



    android.view.View$OnUnhandledKeyEventListener



    I didn't even code anything in "MainActivity.java". I just created the toolbar_layout.xml and can't preview anything!



    How can I fix this preview error?



    styles.xml



    <resources>

    <!-- Base application theme. -->
    <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
    <!-- Customize your theme here. -->
    <item name="colorPrimary">@color/colorPrimary</item>
    <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
    <item name="colorAccent">@color/colorAccent</item>
    </style>

    </resources>


    build.gradle(Module:app)



    apply plugin: 'com.android.application'

    android {
    compileSdkVersion 28
    defaultConfig {
    applicationId "com.example.rob.toolbar"
    minSdkVersion 16
    targetSdkVersion 28
    versionCode 1
    versionName "1.0"
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
    release {
    minifyEnabled false
    proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
    }
    }

    dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:appcompat-v7:28.0.0'
    implementation 'com.android.support.constraint:constraint-layout:1.1.3'
    implementation 'com.android.support:design:28.0.0'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
    }


    MainActivity.java



    package com.example.rob.toolbar;

    import android.support.v7.app.AppCompatActivity;
    import android.os.Bundle;

    public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    }
    }


    activity_main.xml



    <?xml version="1.0" encoding="utf-8"?>
    <RelativeLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".MainActivity">

    <include
    layout="@layout/toolbar_layout"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"/>

    </RelativeLayout>


    toolbar_layout.xml



    <?xml version="1.0" encoding="utf-8"?>
    <android.support.v7.widget.Toolbar
    android:id="@+id/toolbar_layout"
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="@android:color/holo_red_dark">

    </android.support.v7.widget.Toolbar>


    Exception message:




    java.lang.ClassNotFoundException: android.view.View$OnUnhandledKeyEventListener
    at org.jetbrains.android.uipreview.ModuleClassLoader.load(ModuleClassLoader.java:180)
    at com.android.tools.idea.rendering.RenderClassLoader.findClass(RenderClassLoader.java:61)
    at org.jetbrains.android.uipreview.ModuleClassLoader.findClass(ModuleClassLoader.java:118)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    at org.jetbrains.android.uipreview.ModuleClassLoader.loadClass(ModuleClassLoader.java:213)
    at android.support.v7.widget.ViewUtils.isLayoutRtl(ViewUtils.java:58)
    at android.support.v7.widget.Toolbar.onMeasure_Original(Toolbar.java:1578)
    at android.support.v7.widget.Toolbar.onMeasure(Toolbar.java)
    at android.view.View.measure_Original(View.java:22071)
    at android.view.View_Delegate.measure(View_Delegate.java:80)
    at android.view.View.measure(View.java:22035)
    at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:715)
    at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:461)
    at android.view.View.measure_Original(View.java:22071)
    at android.view.View_Delegate.measure(View_Delegate.java:80)
    at android.view.View.measure(View.java:22035)
    at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6602)
    at android.widget.FrameLayout.onMeasure(FrameLayout.java:185)
    at android.view.View.measure_Original(View.java:22071)
    at android.view.View_Delegate.measure(View_Delegate.java:80)
    at android.view.View.measure(View.java:22035)
    at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:715)
    at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:461)
    at android.view.View.measure_Original(View.java:22071)
    at android.view.View_Delegate.measure(View_Delegate.java:80)
    at android.view.View.measure(View.java:22035)
    at com.android.layoutlib.bridge.impl.RenderSessionImpl.measureView(RenderSessionImpl.java:590)
    at com.android.layoutlib.bridge.impl.RenderSessionImpl.inflate(RenderSessionImpl.java:343)
    at com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:384)
    at com.android.tools.idea.layoutlib.LayoutLibrary.createSession(LayoutLibrary.java:193)
    at com.android.tools.idea.rendering.RenderTask.createRenderSession(RenderTask.java:544)
    at com.android.tools.idea.rendering.RenderTask.lambda$inflate$3(RenderTask.java:678)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)











    share|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I'm newbie in Android Studio and I'm trying to create a new Toolbar but i'm getting a "java.lang.ClassNotFoundException":
      I found a possible solution below but I dont want to downgrade compileSdkVersion and targetSdkVersion from 28 to 27.



      android.view.View$OnUnhandledKeyEventListener



      I didn't even code anything in "MainActivity.java". I just created the toolbar_layout.xml and can't preview anything!



      How can I fix this preview error?



      styles.xml



      <resources>

      <!-- Base application theme. -->
      <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
      <!-- Customize your theme here. -->
      <item name="colorPrimary">@color/colorPrimary</item>
      <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
      <item name="colorAccent">@color/colorAccent</item>
      </style>

      </resources>


      build.gradle(Module:app)



      apply plugin: 'com.android.application'

      android {
      compileSdkVersion 28
      defaultConfig {
      applicationId "com.example.rob.toolbar"
      minSdkVersion 16
      targetSdkVersion 28
      versionCode 1
      versionName "1.0"
      testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
      }
      buildTypes {
      release {
      minifyEnabled false
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
      }
      }
      }

      dependencies {
      implementation fileTree(dir: 'libs', include: ['*.jar'])
      implementation 'com.android.support:appcompat-v7:28.0.0'
      implementation 'com.android.support.constraint:constraint-layout:1.1.3'
      implementation 'com.android.support:design:28.0.0'
      testImplementation 'junit:junit:4.12'
      androidTestImplementation 'com.android.support.test:runner:1.0.2'
      androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
      }


      MainActivity.java



      package com.example.rob.toolbar;

      import android.support.v7.app.AppCompatActivity;
      import android.os.Bundle;

      public class MainActivity extends AppCompatActivity {

      @Override
      protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
      }
      }


      activity_main.xml



      <?xml version="1.0" encoding="utf-8"?>
      <RelativeLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      tools:context=".MainActivity">

      <include
      layout="@layout/toolbar_layout"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"/>

      </RelativeLayout>


      toolbar_layout.xml



      <?xml version="1.0" encoding="utf-8"?>
      <android.support.v7.widget.Toolbar
      android:id="@+id/toolbar_layout"
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:background="@android:color/holo_red_dark">

      </android.support.v7.widget.Toolbar>


      Exception message:




      java.lang.ClassNotFoundException: android.view.View$OnUnhandledKeyEventListener
      at org.jetbrains.android.uipreview.ModuleClassLoader.load(ModuleClassLoader.java:180)
      at com.android.tools.idea.rendering.RenderClassLoader.findClass(RenderClassLoader.java:61)
      at org.jetbrains.android.uipreview.ModuleClassLoader.findClass(ModuleClassLoader.java:118)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      at org.jetbrains.android.uipreview.ModuleClassLoader.loadClass(ModuleClassLoader.java:213)
      at android.support.v7.widget.ViewUtils.isLayoutRtl(ViewUtils.java:58)
      at android.support.v7.widget.Toolbar.onMeasure_Original(Toolbar.java:1578)
      at android.support.v7.widget.Toolbar.onMeasure(Toolbar.java)
      at android.view.View.measure_Original(View.java:22071)
      at android.view.View_Delegate.measure(View_Delegate.java:80)
      at android.view.View.measure(View.java:22035)
      at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:715)
      at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:461)
      at android.view.View.measure_Original(View.java:22071)
      at android.view.View_Delegate.measure(View_Delegate.java:80)
      at android.view.View.measure(View.java:22035)
      at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6602)
      at android.widget.FrameLayout.onMeasure(FrameLayout.java:185)
      at android.view.View.measure_Original(View.java:22071)
      at android.view.View_Delegate.measure(View_Delegate.java:80)
      at android.view.View.measure(View.java:22035)
      at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:715)
      at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:461)
      at android.view.View.measure_Original(View.java:22071)
      at android.view.View_Delegate.measure(View_Delegate.java:80)
      at android.view.View.measure(View.java:22035)
      at com.android.layoutlib.bridge.impl.RenderSessionImpl.measureView(RenderSessionImpl.java:590)
      at com.android.layoutlib.bridge.impl.RenderSessionImpl.inflate(RenderSessionImpl.java:343)
      at com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:384)
      at com.android.tools.idea.layoutlib.LayoutLibrary.createSession(LayoutLibrary.java:193)
      at com.android.tools.idea.rendering.RenderTask.createRenderSession(RenderTask.java:544)
      at com.android.tools.idea.rendering.RenderTask.lambda$inflate$3(RenderTask.java:678)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at java.lang.Thread.run(Thread.java:745)











      share|improve this question













      I'm newbie in Android Studio and I'm trying to create a new Toolbar but i'm getting a "java.lang.ClassNotFoundException":
      I found a possible solution below but I dont want to downgrade compileSdkVersion and targetSdkVersion from 28 to 27.



      android.view.View$OnUnhandledKeyEventListener



      I didn't even code anything in "MainActivity.java". I just created the toolbar_layout.xml and can't preview anything!



      How can I fix this preview error?



      styles.xml



      <resources>

      <!-- Base application theme. -->
      <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
      <!-- Customize your theme here. -->
      <item name="colorPrimary">@color/colorPrimary</item>
      <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
      <item name="colorAccent">@color/colorAccent</item>
      </style>

      </resources>


      build.gradle(Module:app)



      apply plugin: 'com.android.application'

      android {
      compileSdkVersion 28
      defaultConfig {
      applicationId "com.example.rob.toolbar"
      minSdkVersion 16
      targetSdkVersion 28
      versionCode 1
      versionName "1.0"
      testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
      }
      buildTypes {
      release {
      minifyEnabled false
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
      }
      }
      }

      dependencies {
      implementation fileTree(dir: 'libs', include: ['*.jar'])
      implementation 'com.android.support:appcompat-v7:28.0.0'
      implementation 'com.android.support.constraint:constraint-layout:1.1.3'
      implementation 'com.android.support:design:28.0.0'
      testImplementation 'junit:junit:4.12'
      androidTestImplementation 'com.android.support.test:runner:1.0.2'
      androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
      }


      MainActivity.java



      package com.example.rob.toolbar;

      import android.support.v7.app.AppCompatActivity;
      import android.os.Bundle;

      public class MainActivity extends AppCompatActivity {

      @Override
      protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
      }
      }


      activity_main.xml



      <?xml version="1.0" encoding="utf-8"?>
      <RelativeLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      tools:context=".MainActivity">

      <include
      layout="@layout/toolbar_layout"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"/>

      </RelativeLayout>


      toolbar_layout.xml



      <?xml version="1.0" encoding="utf-8"?>
      <android.support.v7.widget.Toolbar
      android:id="@+id/toolbar_layout"
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:background="@android:color/holo_red_dark">

      </android.support.v7.widget.Toolbar>


      Exception message:




      java.lang.ClassNotFoundException: android.view.View$OnUnhandledKeyEventListener
      at org.jetbrains.android.uipreview.ModuleClassLoader.load(ModuleClassLoader.java:180)
      at com.android.tools.idea.rendering.RenderClassLoader.findClass(RenderClassLoader.java:61)
      at org.jetbrains.android.uipreview.ModuleClassLoader.findClass(ModuleClassLoader.java:118)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      at org.jetbrains.android.uipreview.ModuleClassLoader.loadClass(ModuleClassLoader.java:213)
      at android.support.v7.widget.ViewUtils.isLayoutRtl(ViewUtils.java:58)
      at android.support.v7.widget.Toolbar.onMeasure_Original(Toolbar.java:1578)
      at android.support.v7.widget.Toolbar.onMeasure(Toolbar.java)
      at android.view.View.measure_Original(View.java:22071)
      at android.view.View_Delegate.measure(View_Delegate.java:80)
      at android.view.View.measure(View.java:22035)
      at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:715)
      at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:461)
      at android.view.View.measure_Original(View.java:22071)
      at android.view.View_Delegate.measure(View_Delegate.java:80)
      at android.view.View.measure(View.java:22035)
      at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6602)
      at android.widget.FrameLayout.onMeasure(FrameLayout.java:185)
      at android.view.View.measure_Original(View.java:22071)
      at android.view.View_Delegate.measure(View_Delegate.java:80)
      at android.view.View.measure(View.java:22035)
      at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:715)
      at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:461)
      at android.view.View.measure_Original(View.java:22071)
      at android.view.View_Delegate.measure(View_Delegate.java:80)
      at android.view.View.measure(View.java:22035)
      at com.android.layoutlib.bridge.impl.RenderSessionImpl.measureView(RenderSessionImpl.java:590)
      at com.android.layoutlib.bridge.impl.RenderSessionImpl.inflate(RenderSessionImpl.java:343)
      at com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:384)
      at com.android.tools.idea.layoutlib.LayoutLibrary.createSession(LayoutLibrary.java:193)
      at com.android.tools.idea.rendering.RenderTask.createRenderSession(RenderTask.java:544)
      at com.android.tools.idea.rendering.RenderTask.lambda$inflate$3(RenderTask.java:678)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at java.lang.Thread.run(Thread.java:745)








      xml android-studio exception layout android-toolbar






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 7 at 21:37









      Roger_88

      378




      378





























          active

          oldest

          votes











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














           

          draft saved


          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53198205%2fandroid-studio-3-1-4-cant-preview-new-toolbar%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown






























          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















           

          draft saved


          draft discarded



















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53198205%2fandroid-studio-3-1-4-cant-preview-new-toolbar%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          這個網誌中的熱門文章

          Xamarin.form Move up view when keyboard appear

          Post-Redirect-Get with Spring WebFlux and Thymeleaf

          Anylogic : not able to use stopDelay()