简体   繁体   English

带有其他库的Eclipse Android SVN项目

[英]Eclipse Android SVN Project with other library

I have main project. 我有主要项目。 This project uses two projects(facebook sdk and google play services). 该项目使用两个项目(facebook sdk和google play服务)。 This two projects is library. 这两个项目是图书馆。 How can I do that when you import the project all the libraries imported with it regardless of the operating system? 不管使用什么操作系统,导入项目时,随项目一起导入的所有库该如何处理?

The answer is simple. 答案很简单。 The problem is how to libraries. 问题是如何图书馆。 The fact that the relative paths in Windows and Mac OS (Unix) a little bit different from each other. Windows和Mac OS(Unix)中的相对路径彼此之间有点不同的事实。 I put all the libraries in the project and link the them. 我将所有库放入项目中并链接它们。 The file project.properties little changed and went like this: 文件project.properties几乎没有变化,如下所示:

android.library.reference.3=/holoeverywhere android.library.reference.1=/facebook android.library.reference.2=/google-play-services_lib android.library.reference.3 = / holoeverywhere android.library.reference.1 = / facebook android.library.reference.2 = / google-play-services_lib

Just begin to use Maven . 刚开始使用Maven即可 When You would like add some new library to your project, just add dependency to artifact to pom.xml file. 当您想向项目中添加一些新库时,只需将对工件的依赖项添加到pom.xml文件中。 See this links( what is maven artifact , maven quick start , maven-android tutorial ), maybe it will explain the idea of maven. 查看此链接( 什么是maven工件maven快速入门maven-android教程 ),也许它将解释maven的想法。

Regardless the Facebook SDK and the google-play-service-lib the best way to use them in your project is do as said on the corresponding official pages. 无论使用Facebook SDKgoogle-play-service-lib ,在相应项目中使用它们的最佳方法都是按照相应官方页面上的说明进行操作。

  1. Open each project in your workspace 打开工作区中的每个项目
  2. Go to your project properties , then Android from the right list 转到您的项目属性 ,然后从右侧列表中选择Android
  3. Add both google and facebook projects (the ones of the point 1) to the Library list 将Google和Facebook项目(第1点中的项目)添加到“ 库”列表中

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM