How to remove support library (appcompat_v7) [Eclipse]

前端 未结 2 1544
温柔的废话
温柔的废话 2021-01-30 18:52

I\'ve updated my eclipse and ADT Plugin to the latest version recently and recognised some big changes. Whenever I create a new Android Application Project there appears a new a

2条回答
  •  借酒劲吻你
    2021-01-30 19:31

    Best ways to solve these:

    1. Firstly in project,Right click->properties->Android.There you can see the red marked appcompat placed in Reference. Click that and Remove it.

    2. Delete fragment_main.xml and Appcompat file created in your Eclipse.

    3. Edit and change your activity_main.xml like these:

      
      
      
      
          
      
      
      
    4. In res/values/styles.xml:

      
      
          
      
          
          
      
      
      
    5. In res/values-v11/styles.xml you have to change like these:

      
      
          
      
      
      
    6. In res/values-v14/styles.xml you have to change like these:

        
      
          
      
          
      
      
      
    7. Change your menu/main.xml like these:

      
      
          
      
      
      
    8. Finally change your MainActivity.java like these:

      import android.app.Activity;
      import android.os.Bundle;
      
      
      public class MainActivity extends Activity {
      
      
          @Override
          protected void onCreate(Bundle savedInstanceState) {
              super.onCreate(savedInstanceState);
              setContentView(R.layout.activity_main);
      
      }
      
      }
      

    LikeWise you have to do it for creating a new project

提交回复
热议问题