0

I have main project. This project uses two projects(facebook sdk and google play services). 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?

Viacheslav
  • 521
  • 10
  • 21

3 Answers3

1

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. I put all the libraries in the project and link the them. The file project.properties little changed and went like this:

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

Viacheslav
  • 521
  • 10
  • 21
0

Just begin to use Maven. When You would like add some new library to your project, just add dependency to artifact to pom.xml file. See this links(what is maven artifact ,maven quick start, maven-android tutorial), maybe it will explain the idea of maven.

Community
  • 1
  • 1
tostao
  • 2,803
  • 4
  • 38
  • 61
0

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.

  1. Open each project in your workspace
  2. Go to your project properties, then Android from the right list
  3. Add both google and facebook projects (the ones of the point 1) to the Library list
5agado
  • 2,444
  • 2
  • 21
  • 30
  • This method does not work, because each project requires importing knit prescribe ways of libraries in the project settings should be applied. – Viacheslav May 08 '13 at 21:33
  • Sorry, but I don't understand what you mean. Both the facebook and google projects don't require anything to do in order to use them. – 5agado May 09 '13 at 10:01
  • 1
    I need to in the repository was my project with two libraries, that the employer is able to import the project itself and not re-connect these two libraries (not to prescribe them in the project settings). I understand that Maven is the only right decision. – Viacheslav May 10 '13 at 05:40