Import Google Play libraries into android project

Hi aegroto. Integrate google libraries into jmonkey is always a bit nightmare. Did you check this link??

https://hub.jmonkeyengine.org/t/android-project-cheat-sheet/

Following that steps I’ve integrated google libraries into my project (using the jMonkey SDK). There some steps that failed to me, first one:

Compile the jar file for use with your project:

  1. In the directory you copied, there is an android project file.
  2. In JME’s IDE, open this project
  3. In the General section of the project properties, there is a list of potential Android target platforms. Select the one you are using for your project (:rage:this is what it fails, compile it to at least 5.0 or higher) by clicking on the list (this is not intuitive at all, as the list looks like nothing more than info… not selectable items)
  4. Under the Library section, click the checkbox that is labeled: Is Library
  5. Click Ok and then Clean & Build this project.

Second one:
After following all steps related to the jar library, modify the manifest.xml, adding the integers.xml and clean and build, you will have an error saying expected integer xxxx, found 4323000. Modify your integers.xml and replace the 4323000 for the expected integer xxxx.

You will have (I supposse) and ok clean and run and you will be able to use google libraries into your android project.

1 Like