使用来自云端点客户端库。罐子进口不工作 [英] Using client library from Cloud Endpoints. jar import not working

查看:129
本文介绍了使用来自云端点客户端库。罐子进口不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创造了我的应用程序引擎(Python)的应用程序中的jar文件。我已经按照从<一个导入我的图书馆(的.jar)文件的步骤href="https://developers.google.com/appengine/docs/python/endpoints/getstarted/clients/android/configure"相对=nofollow>这个例子的。看来Android的工作室正确导入的一切(没有错误),直到我尝试使用类在库中。我开始开拓中包含的jar文件,看看是否一切看起来是为了类。这是我发现:

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不包含任何错误。

UserMessage does not contain any errors.

任何人都可以帮助解释为什么类不能看到/使用对方?这是一个问题的罐子或Android工作室?

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

推荐答案

我有同样的问题与Android Studio和Eclipse。 我的解决方案可能不是最好的,最简单的,但它的作品。

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

我所做的是我提取的code从.jar文件并把它放在里面的src。

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:

这篇关于使用来自云端点客户端库。罐子进口不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆