Using client library from Cloud Endpoints. jar import not working

╄→尐↘猪︶ㄣ 提交于 2019-12-09 13:27:59

问题


I'm created a jar file for my appengine (python) application. I've followed the steps to import my library (.jar) files from this example. It seems Android Studio imported everything correctly (no error) until I try to use the classes in the library. I started to open up the classes that are contained in the jar files to see if everything looked to be in order. This is what I found:

UserMessage does not contain any errors.

Can anyone help explain why the classes can't see/use each other? Is this an issue with the jar or Android studio?


回答1:


I had the same problem with Android Studio and Eclipse. My solution is probably not the best and the easiest, but it works.

What I did is I extracted the code from the .jar file and placed it inside src.

Now I have something similar to the following structure:



来源:https://stackoverflow.com/questions/22597097/using-client-library-from-cloud-endpoints-jar-import-not-working

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!