java - The Preview Doesn't Displayed At The Launching (Android Studio) -


i started learning android sdk , have problem. launched studio , android screen didn't show (yes, know preview tool bar , how switch). quote:

"rendering problems following classes not found: - android.support.v7.internal.widget.actionbaroverlaylayout (fix build path, edit xml, create class) tip: try build project."

*sometimes there rendering problem , showed : "rendering problems following classes not instantiated: - android.support.v7.internal.widget.actionbaroverlaylayout (open class, show exception, clear cache)"

i'm pretty sure "appcompat_v7", automatically generated in eclipse when setting android project. imports unnecessary features , causes bunch of build errors.

  1. delete "appcompat_v7" folder
    • go mainactivity
    • delete import "android.support.v7.app.actionbaractivity";
    • change "mainactivity extends actionbaractivity" "mainactivity extends activity"
    • add import android.app.activity;
    • add import android.os.bundle;
    • add import android.view.menu;
    • add import android.view.menuitem;
  2. go res folder , go values folder...delete styles.xml
  3. delete values-v11 folder
  4. delete values-v14 folder
  5. go menu folder, , click on main.xml...go "item" tag , delete app:showasaction="never"
  6. go androidmanifest.xml...go "application" tag...delete android:theme="@style/apptheme"
  7. go project @ top...clean , build...you should have no more errors.

Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -