Using client library from Cloud Endpoints. jar imp

2019-03-30 21:27发布

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:

enter image description here

UserMessage does not contain any errors.

enter image description here

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

1条回答
趁早两清
2楼-- · 2019-03-30 21:48

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:

sample project tree

查看更多
登录 后发表回答