Android的工作室进口Eclipse项目 [英] Android Studio import Eclipse project

查看:198
本文介绍了Android的工作室进口Eclipse项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Android的工作室0.4.0

Android Studio 0.4.0

我试图导入Eclipse项目直接(不出口Eclipse项目作为生成摇篮构建文件),并尝试这个的迁移soliution 。两种方式的结果是这样的:

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:

这是很好的项目结构?而如果它不是如何Eclipse项目移植到Android的工作室?

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

Andriod的工作室进口登录

Andriod Studio import log

安装谷歌库

P.S。在工具栏上的一些Android的相关按钮是项目导入后无效。

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

推荐答案

看你的日志文件,我看到这样的:

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

这意味着它无法找到播放服务存储库。在您的 SDK管理器(点击在Android Studio的工具栏中的按钮,这将确保你打开SDK管理器它的使用来构建项目的副本),安装在谷歌库。现在,你应该可以导入你的项目。

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.

这篇关于Android的工作室进口Eclipse项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆