简体   繁体   中英

Cloud Endpoint API Client Library doesn't contain JAR file

I've just followed exactly what was said in this tutorial and ran the command

/usr/local/google_appengine/endpointscfg.py get_client_lib java -bs gradle helloworld_api.NewsApi

I know my NewsApi service works, I've tested it on the Google APIs explorer.

I get a success message: API client library written to ./getNews-v1.zip

I extracted the zip and found the following files inside the folder ( getNews ):

在此处输入图片说明

No JAR file exists!! What do I use to set up the library in my Android client?

Any ideas? Thanks!

If you want a sources JAR and included dependencies to include in your project use '-bs default' or simply omit that option. Using '-bs gradle' or '-bs maven' assumes you are going to use one of those build tools to build a classes JAR yourself. The 'endpointscfg.py' of course won't compile sources to class files for you as it doesn't have knowledge of any Java environment.

More info in the docs:
https://cloud.google.com/appengine/docs/python/endpoints/endpoints_tool

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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