Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android studio Import Module: Specify location of the Gradle or Android Eclipse Project

I was trying to import ViewPagerIndicator Library however they show this.

How to solve this problem ?

enter image description here]2

like image 409
beginnerK Avatar asked Oct 29 '15 02:10

beginnerK


People also ask

What is importing gradle project in Android Studio?

Import a Gradle-based IntelliJ project If you are already using Gradle with your IntelliJ project, you can open it in Android Studio using the following steps: Click File > New > Import Project. Select your IntelliJ project directory, and click OK. Your project will open in Android Studio.

How do I import a project from one project to another in Android Studio?

Go to File->New->Import Module then browse you project. After importing module go to project structure and add module dependency to your project. Save this answer.

How do I sync gradle with Android Studio?

Open your gradle. properties file in Android Studio. Restart Android Studio for your changes to take effect. Click Sync Project with Gradle Files to sync your project.


1 Answers

You can import a viewpageindicator. that project created in eclipse so can not find gradle file when you import module that only on same platform.

like in my case i was import facebook sdk 4.7.0 but give same error "Specify location of the Gradle or Android Eclipse Project" so i download new sdk 4.1.0 which completely for android studio related and i import easily.

if your project was in eclipse platform so you need to import as a eclipse project
see this image

i hope you understand

like image 197
Prashant Gosai Avatar answered Oct 18 '22 05:10

Prashant Gosai