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.
- 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;
- go res folder , go values folder...delete styles.xml
- delete values-v11 folder
- delete values-v14 folder
- go menu folder, , click on main.xml...go "item" tag , delete app:showasaction="never"
- go androidmanifest.xml...go "application" tag...delete android:theme="@style/apptheme"
- go project @ top...clean , build...you should have no more errors.
Comments
Post a Comment