Suppose you are working on a project on eclipse, which have external libraries and jars files inside your project. And you have to switch on Android Studio than it’s not like to eclipse that import all project and libraries than add them directly into project. Android studio use gradle for dependency of libraries and jar file.
Here you can see there is three project is present in which RoundShapeActivity is your main project and other two is library project.
Step1: Right Click on your main project , select “export” than select “Generate Gradle Build Files”.
Step4: Open your Android Studio and select “import project” . import your root folder of project, where gradle build file are generated.
Step5: If your version of the Android Gradle plug-in () is not match than fix it or download by clicking on below link on android studio.
Step6: Now run your project.
Note: some time gradle give error for supported libraries
In this case open build.gradle of your project and add this line.
compile fileTree(dir: ‘libs’, include: ‘*.jar’, exclude: ‘android-support-*.jar’)
Now run your project.