为什么 Eclipse 无法自动完成我添加的 Android 库?
我正在尝试添加 Android 许可库,并且我遵循了三个本质上相同的“教程”。当我尝试编写引用库中的类的集成类和代码时,Eclipse 不会自动导入、自动完成或编译代码。
显然,我要么没有正确地将库导入为项目,要么没有正确配置我的环境,或者没有正确配置我的托管应用程序项目。
任何线索我做错了什么?
哪些信息可以分享以寻求帮助?
I am trying to add the Android Licensing Library and I have followed three "tutorials" that are essentially the same. When I try to write the integrated classes and codes that reference classes from the library, Eclipse does not auto-import, auto-complete or compile the code.
Obviously, I am either not importing the library as a project correctly or not configuring my environment correctly or not configuring my hosting app project correctly.
Any clues what I am doing wrong?
What info would be useful to share to elicit some help?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是图书馆项目。我尝试制作一个通用项目,然后转换为 Android
相反,需要从现有源制作一个 Android 项目并浏览到 Market Licensing SDK 的副本;进入文件夹“library”,您将在其中看到 Android.xml。
然后打开项目的属性,在“过滤器”面板中点击Android;那么您应该在右侧面板的下半部分看到复选框“(x) is Library”;选中该框。
注意:如果您没有看到该复选框(就像我之前没有看到的那样),那么您没有正确设置项目。删除项目并重新开始。
然后,您可以转到应用程序项目并访问同一面板以包含现在在工作区中定义的库。
It was the library project. I tried to make a general project then convert to Android
Instead what is needed is to make an Android project from existing source and browse to the copy of the Market Licensing SDK; down to the folder "library" where you will see the Android.xml.
Then open the Properties for the project, click on Android in the "filter" panel; then you should see the check box in the bottom half of the right-hand panel "(x) is Library"; check the box.
NOTE: If you don't see the check-box (as I did not previously), then you did not setup the project correctly. Delete the project and start over.
Then you can go to your Application Project and visit the same panel to include the library that is now defined in your workspace.