0

I started learning the Android SDK and I have a problem. I launched the studio and the android screen didn't show up (YES, I know where the preview tool bar and how to switch). Quote:

"Rendering Problems The following classes could not be found: - android.support.v7.internal.widget.ActionBarOverlayLayout (Fix Build Path, Edit XML, Create Class) Tip: Try to build the project."

*Sometimes there is another rendering problem and this is showed : "Rendering Problems The following classes could not be instantiated: - android.support.v7.internal.widget.ActionBarOverlayLayout (Open Class, Show Exception, Clear Cache)"

Ofek Biton
  • 11
  • 2

1 Answers1

0

I'm pretty sure its the "appcompat_v7", which is automatically generated in eclipse when setting up an android project. It imports unnecessary features and causes a bunch of build errors.

  1. Delete "appcompat_v7" folder
    • go to your MainActivity
    • Delete the import "android.support.v7.app.ActionBarActivity";
    • change "MainActivity extends ActionBarActivity" to "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 to res folder and then go to your values folder...delete styles.xml
  3. delete values-v11 folder
  4. delete values-v14 folder
  5. go to menu folder, and click on main.xml...go to "item" tag and delete app:showAsAction="never"
  6. go to AndroidManifest.xml...go to "application" tag...delete android:theme="@style/AppTheme"
  7. go to project at the top...clean and build...you should have no more errors.