如何导入工作室的android eclipse项目,库和依赖关系 [英] How to import eclipse project ,libs and dependancy in studio android
问题描述
我就采用了android工作室很新。我有实有SDK,谷歌播放服务,以及其他一些库作为我的项目依赖性的解决Eclipse项目。我想问问如何导入该项目的工作室?我做了我的项目文件的gradle但是当我在工作室的Facebook的gradle导入文件,并出现GCM服务错误。可以请一些身体告诉我的步骤,这样我就可以导入和运行工作室项目?
从迁移到Eclipse中的Android Studio要求您更改开发项目的结构,移动到一个新的构建系统,并使用新的用户界面。以下是一些关键的改变,你应该知道,你prepare迁移到Android的工作室:
- 项目文件
- 清单设置
- 依赖
- 测试code
- 用户界面
- 基于摇篮的构建
- systemDeveloper
- 工具版本
起初,请阅读这篇文章迁移到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:
- Project files
- Manifest settings
- Dependencies
- Test code
- User interface
- Gradle-based build
- systemDeveloper
- 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屋!