Error on importing an Eclipse project into Android Studio

前端 未结 2 873
野趣味
野趣味 2021-02-10 02:26

I\'m trying to import a project done in Eclipse to Android Studio. While importing, I\'m getting the following error:

\"There are unrecoverable errors which must         


        
2条回答
  •  广开言路
    2021-02-10 02:34

    Dont' copy the appcompat library as a module in Android Studio.

    Just add this dependency in your app/build.gradle file:

    dependencies {
        compile "com.android.support:appcompat-v7:21.0.3"
    }
    

    Where the structure of your project is:

    root
      app
         build.gradle  <-- here
      build.gradle  //top level
    

提交回复
热议问题