NOT_LICENSED 无法解析或不是字段 [英] NOT_LICENSED cannot be resolved or is not a field

查看:24
本文介绍了NOT_LICENSED 无法解析或不是字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试遵循此处提供的文档:

I have been trying to follow the documentation available here:

http://developer.android.com/google/play/expansion-files.html#Preparing

我试着按照它说的去做......

I have tried to follow what it says to do ...

如果您使用 Eclipse,请为每个库创建一个项目并将其添加到您的应用中:

If you're using Eclipse, create a project for each library and add it to your app:

为许可证验证库和下载器库创建一个新的库项目.对于每个库:

Create a new Library Project for the License Verification Library and Downloader Library. For each library:

  • 开始一个新的 Android 项目.

  • Begin a new Android project.

选择从现有源创建项目并从/extras/google/目录中选择库(market_licensing/用于许可验证库或 market_apk_expansion/downloader_library/用于下载器库).

Select Create project from existing source and choose the library from the /extras/google/ directory (market_licensing/ for the License Verification Library or market_apk_expansion/downloader_library/ for the Downloader Library).

当然没有 market_licensingmarket_apk_expansion/downloader_library/ 目录,所以我想我应该使用 play_licensingmarket_apk_expansion/downloader_library 目录.:/

Of course there was no market_licensing or market_apk_expansion/downloader_library/ directories so I guess that I am suppose to use the play_licensing and market_apk_expansion/downloader_library directories. :/

  • 指定项目名称,例如Google Play License Library"和Google Play Downloader Library"点击完成.

  • Specify a Project Name such as "Google Play License Library" and "Google Play Downloader Library" Click Finish.

将许可证验证库添加到下载程序库的项目属性(与下面的第 2 步和第 3 步相同).

Add the License Verification Library to the Downloader Library's project properties (same process as steps 2 and 3 below).

右键单击要在其中使用 APK 扩展文件的 Android 项目,然后选择属性".在库"面板中,单击添加"以选择每个库并将其添加到您的应用程序中.

Right-click the Android project in which you want to use APK expansion files and select Properties. In the Library panel, click Add to select and add each of the libraries to your application.

所以是的,我已经阅读了文档并尽力遵循它们,但现在我收到此错误...

So yes I have read the docs and did my best to follow them, but now I get this error ...

我开始认为最新的 Android SDK 中存在一个错误,这是下载程序库的属性在安装并添加到 ecliplse 后的样子...

I am starting to think there is a bug in the latest Android SDK here is what the properties of the Downloader Lib look like right after installing and add to ecliplse ...

...所以我更新了它...

... so I updated it like so ...

推荐答案

为了解决这个问题,我必须删除我导入的下载器库,然后使用 Android SDK 管理器卸载Google Play APK 扩展库",然后重新安装.然后在 eclispe 中重新导入下载器库,然后右键单击"下载器项目并删除错误的库market_licensing"并添加正确的库play_licensing"

To correct the problem I had to remove the downloader library I had imported and then use the Android SDK manager to uninstall the "Google Play APK Expansion Library" then re-install it. Then in eclispe re-import downloader lib and then 'right click' the downloader project and remove the bad library 'market_licensing' and add the correct library 'play_licensing'

这篇关于NOT_LICENSED 无法解析或不是字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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