Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Importing an app-compat v7 library eclipse project to android studio

I have an Android application created in Eclipse, now I want to import it to Android studio, when I import project I get the following error

Project FinalProject Integrate:/home/vishal/Android_Workspace/FinalProject Integrate/project.properties:
Library reference ../android-support-v7-appcompat could not be found
Path is /home/vishal/Android_Workspace/FinalProject Integrate/../android-support-v7-appcompat which resolves to /home/vishal/Android_Workspace/android-support-v7-appcompat

and it is an unrecoverable error.

like image 209
coderVishal Avatar asked Feb 28 '15 15:02

coderVishal


2 Answers

Here's what I did: In the the project.properties file I deleted all dependencies, and while importing project in Android studio I simply followed the instructions (making sure the check box are ticked, especially the one that says add any dependency). And it worked.

like image 70
coderVishal Avatar answered Nov 15 '22 08:11

coderVishal


  1. Edit your build.gradle, remove the dependency of project appcompat-v7
  2. In Android studio, Go to main menu, File -> Project structure -> Dependencies, click add icon on the right side, and add appcompat-v7 as a library dependency.
like image 31
alijandro Avatar answered Nov 15 '22 09:11

alijandro