Google play service when building an Android build environment

Asked 2 years ago, Updated 2 years ago, 116 views

Up until now, I have been using eclipse from coding to building, but
We are currently building a Jenkins build environment in CentOS.
I am using Google play service in the application I am creating, so
I did Referencing a Library Project.

/usr/lib/android-sdk-linux/extras/Google/Google_play_services/libproject/Google-play-services_lib/resolve to a path with no project.properties file for project     

appears and becomes BUILD FAILED. Please tell me the solution. Thank you for your cooperation.

android build google-play-service

2022-09-30 20:24

1 Answers

Note for Referencing a Library Project.

android update project --target<target_ID> --path path/to/your/project --library path/to/library_projectA    

-- The path part of library path/to/library_projectA must be a relative path, not an absolute path.
Build error.

The same goes for writing in project.properties.

android.library.reference.1 = path/to/library_projectA    

If the path part is not an absolute path but a relative path, it will result in a build error.

user2904, thank you.


2022-09-30 20:24

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.