Android Studio import Eclipse project

12,799

Looking at your log file, I see this:

com.intellij.openapi.externalSystem.model.ExternalSystemException: Could not find any version that matches com.google.android.gms:play-services:+.
Required by:
    kmvts-rb-1.1.0:app:unspecified

which means that it can't find the Play Services repository. In your SDK Manager (click on the button in the Android Studio toolbar; that will ensure you open the SDK Manager for the copy it's using to build your project), install the Google Repository. Now you should be able to import your project.

We're working on having much better handling of this situation in the future, but for now you have to know to install it yourself.

Share:
12,799

Related videos on Youtube

Robertas Setkus
Author by

Robertas Setkus

"Insanity: doing the same thing over and over again and expecting different results."-Albert Einstein

Updated on September 15, 2022

Comments

  • Robertas Setkus
    Robertas Setkus over 1 year

    Android Studio 0.4.0

    I tried to import eclipse project directly (not exported eclipse project as "generate gradle build files") and tried this migrating soliution. The result of both ways is like this: enter image description here

    Is this good project structure? And if it is not how to migrate Eclipse project to Android Studio?

    Andriod Studio import log

    Google repository is installed

    enter image description here

    P.S. Some Android associated buttons in toolbar are inactive after project import.

    enter image description here

  • Robertas Setkus
    Robertas Setkus over 10 years
    It would be great if would be any options like create project from existing sources. Maybe you'r using different Studio version than mine.
  • JamoBox
    JamoBox over 10 years
    Ah, my bad then. I use Intellij IDEA Community Edition, I figured it would be the same for Android Studio as the studio was built on top of Intellij IDEA to extend functionality.
  • Piyush Agarwal
    Piyush Agarwal over 10 years
    @JamoBox ya you are correct but AS is totally Android Focused IDE and AFAIK one can't create and import simple java project in Android Studio. Things are different from Intellij IDEA Community Edition .
  • Robertas Setkus
    Robertas Setkus over 10 years
    Goole play services and repository is installed. I'm not familiar with gradle and I can't find out why studio cant't find google services repo. So I think that I just have to wait for new realeses where these bugs will be solved. For now I feel good at eclipse based IDE.