NOT_LICENSED不能得到解决或不是字段 [英] NOT_LICENSED cannot be resolved or is not a field

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

问题描述

我一直在试图按照提供的文档在这里:

I have been trying to follow the documentation available here:

http://developer.android.com/google /play/expansion-files.html#$p$pparing

我曾试图按照它说什么做的......

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:


  • 开始一个新的Andr​​oid项目。

  • Begin a new Android project.

选择从现有的开源项目,并从/演员/​​谷歌/目录(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_​​licensing market_​​apk_expansion / downloader_library / 目录中,所以我猜,我猜使用在 play_licensing market_​​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. :/


  • 指定,如谷歌播放许可证库和谷歌播放下载档案库项目名称
    点击完成。

  • 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扩展文件,并选择属性的Andr​​oid项目。
在库面板中,点击添加,选择和每个库添加到应用程序。

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 ...

我开始认为这是在这里最新的Andr​​oid 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管理器卸载谷歌播放APK扩展库,然后重新安装。然后在Eclispe的重新导入下载lib目录,然后右键点击下载器项目,并去除不良库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天全站免登陆