如何导入工作室的android eclipse项目,库和依赖关系 [英] How to import eclipse project ,libs and dependancy in studio android

查看:258
本文介绍了如何导入工作室的android eclipse项目,库和依赖关系的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我就采用了android工作室很新。我有实有SDK,谷歌播放服务,以及其他一些库作为我的项目依赖性的解决Eclipse项目。我想问问如何导入该项目的工作室?我做了我的项目文件的gradle但是当我在工作室的Facebook的gradle导入文件,并出现GCM服务错误。可以请一些身体告诉我的步骤,这样我就可以导入和运行工作室项目?


解决方案

从迁移到Eclipse中的Andr​​oid Studio要求您更改开发项目的结构,移动到一个新的构建系统,并使用新的用户界面。以下是一些关键的改变,你应该知道,你prepare迁移到Android的工作室:


  1. 项目文件

  2. 清单设置

  3. 依赖

  4. 测试code

  5. 用户界面

  6. 基于摇篮的构建

  7. systemDeveloper

  8. 工具版本

起初,请阅读这篇文章迁移到Android工作室演示

现在你需要在添加此你的


  

的build.gradle


  {相关性
  编译文件树(导演:'库',包括:['的* .jar'])
  编译com.facebook.android:facebook-android-sdk:4.1.0
  编译com.google.android.gms:播放服务:7.5 +。
}

I am very new on using android studio. I am having one eclipse project having Facebook SDK, Google play service, and some other libs as dependencies of my project. I want to ask how to import that project in studio? I have made gradle file of my project but when i import gradle file in studio Facebook and GCM service error occurs. Please can some body tell me the steps so i can import and run project in studio?

解决方案

Migrating from Eclipse to Android Studio requires that you change the structure of your development projects, move to a new build system, and use a new user interface. Here are some of the key changes you should be aware of as you prepare to migrate to Android Studio:

  1. Project files
  2. Manifest settings
  3. Dependencies
  4. Test code
  5. User interface
  6. Gradle-based build
  7. systemDeveloper
  8. tools versioning

At first please read this article Migrating to Android Studio And Demo

Now for your requirement add this in your

build.gradle

  dependencies {
  compile fileTree(dir: 'libs', include: ['*.jar'])
  compile 'com.facebook.android:facebook-android-sdk:4.1.0'
  compile "com.google.android.gms:play-services:7.5.+"
}

这篇关于如何导入工作室的android eclipse项目,库和依赖关系的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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