如何打开现有的Andr​​oid项目(build.gradle)到机器人工作室 [英] How to open existing android project(build.gradle) into android studio

查看:337
本文介绍了如何打开现有的Andr​​oid项目(build.gradle)到机器人工作室的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新来的 Android的工作室。我有这是构建机器人工作室现有的Andr​​oid项目。现在我需要打开从build.grade项目(该项目的文件)file.I遵循这个步骤 文件 - >打开 - > build.gradle(从现有的项目)
但它显示了处理窗口下面的图像了这么长时间不反应良好。

I am new to Android Studio.I have an existing android project which was build from android studio. now I need to open that project from build.grade(that project's file)file.I followed this step File-->Open-->build.gradle(from that existing project)
But it shows the processing window as below image for so Long time doesn't responding well.

所以,任何一个有想法关于这个,请帮助我。

So any one have idea about this please help me.

推荐答案

首先,我们需要您的build.gradle

First, we need your build.gradle

二,我可以从你所发布到现在猜测。

Second, i can make a guess from what you have posted till now.

  • 检查build.gradle在你的项目目录未使用或缺少项目通过检查依赖性面积

我可以理解的错误列出com.android.support:support-v4使用类org.gradle.api.internal.artifacts.repositories.resolver.MavenVersionLister $ 1的版本。将尝试的另一种方法名单的版本。这种行为已经去pcated $ P $,并计划在摇篮2.0 被删除 this.It可能与仓库。

as i can understand from "error listing versions of com.android.support:support-v4 using class org.gradle.api.internal.artifacts.repositories.resolver.MavenVersionLister$1. will attempt an alternate way to list versions. This behaviour has been deprecated and is scheduled to be removed in gradle 2.0" this.It may be related to repositories.

检查是否有这样或不依赖地区。如果别的东西是写有,将其删除,并添加正确的,我下面写的。

Check whether you have this or not in dependencies area. If something else is written there, remove it and add the correct one that i wrote below.

dependencies {
    ...
    repositories {
        mavenCentral()
        mavenLocal()
    }
...
}

  • 和我的另一种猜测是,有什么不对您的支持-V4磁带库实施
  • 检查是否有

        dependencies {
    ...
            compile 'com.android.support:support-v4:22.2.0'
    ...
        }
    

    这与否。如果没有,添加行开始编译,我上面写的。 和 如果你碰到这样的,

    this or not. If not , add the line starts with compile that i wrote above. And If you have something like,

    编制项目(:支持-V4

    删除了这一行。

    这篇关于如何打开现有的Andr​​oid项目(build.gradle)到机器人工作室的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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