1

enter image description here

Hi ,This is my first android application , by creating the package , I had a lot of build path errors. and I do not know how to solve,please help me

Bryan Herbst
  • 66,602
  • 10
  • 133
  • 120
  • this is caused because you didn't add appcompat to your project , follow the instructions described [here](http://stackoverflow.com/questions/17903521/android-actionbar-how-to-add-supporting-library-v7-appcompat-for-eclipse#answer-17903778) – Muhannad Fakhouri May 11 '15 at 19:03

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.