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 be corrected first"
Library reference ../../../../workspace/android-support-v7-appcompat could not be found
I tried copying appcompat folder to the root directory of project, still same error. How can I resolve it?
Please refer the screenshot for more details
Finally, I found a way..I opened the
project.properties
file in a text editor and removed the line which was related toappcompat
. Then I managed to import the project without errors. After successful import, I addedappcompat
as a dependency as answered by Gabriele Mariotti. Thanks Gabriele Mariotti.Dont' copy the appcompat library as a module in Android Studio.
Just add this dependency in your app/build.gradle file:
Where the structure of your project is: