Google Endpoints Android with Python Backend

OK Therefore, Ive researched this for several days and cannot find an answer that solves my problem. I have a Python project for the Google App Engine that I have been working on for a couple of months for school, and now I want to add an Android application to go along with it. I created an API server in Python that runs in Javascript and in the API console. I ran the command "endpointscfg.py get_client_lib java -o. [My_module.MyApi]" and it generated a .zip file with [projectName] - [Api] -v1-20131104131234-java-1.17.0-rc-sources. jar. I added this to my new libs / Android projects directory and added a link to it in the build path. I also see a package named [Api] upon import. However, when I try to instantiate an object from my API, it does not find anything from my API. How to create objects,which I wrote in the Python API in an Android project if this sources.jar file does not contain it? Thanks!

+4
source share
1 answer

This * -sources.jar currently has the source code of your client library, and you need to create it yourself in one Java project. One way to do this is to follow the instructions on this page https://developers.google.com/appengine/docs/java/endpoints/consume_android

, Google Java Client 1.17.0-rc 1.12.0. : 1) , 2) java; 3) libs classpath; 4) , , Android.

. , - Maven/ Gradle endpointscfg.py. , "-bs = maven" "-bs = gradle" ( "bs" , App Engine SDK 1.8.6: https://developers.google.com/appengine/docs/python/endpoints/endpoints_tool). "" Maven/ Gradle. readme.html , , API Android. , "mvn install" Maven/Gradle Android, Maven Gradle Android, .

+3

All Articles