设置的许可验证库在Android工作室 [英] Setting Up the Licensing Verification Library on Android Studio

查看:204
本文介绍了设置的许可验证库在Android工作室的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

im'triyng实现了机器人工作室的谷歌授权验证制作应用程序。 按照此行:<一href="http://developer.android.com/google/play/licensing/setting-up.html">http://developer.android.com/google/play/licensing/setting-up.html似乎tath:

im'triyng to implement the Google Licensing Verification in a Android Studio made app. By following this lines: http://developer.android.com/google/play/licensing/setting-up.html seems tath:

作为一种替代添加LVL为库项目,可以将库源代码直接拷贝到你的应用程序。要做到这一点,副本(或进口)的拉特的库/ src目录/ com目录到你的应用的src /目录下。

As an alternative to adding the LVL as a library project, you can copy the library sources directly into your application. To do so, copy (or import) the LVL's library/src/com directory into your application's src/ directory.

我已经做到这一点,但进口:

I've do this but the import of:

import com.google.android.vending.licensing.LicenseChecker;
import com.google.android.vending.licensing.LicenseCheckerCallback;

失败.. 谷歌上搜索我已经注意到了,我需要修改我的项目build.grade文件,但我无法找到一个具体的解决方案。

fail.. Searching on google i've been noticed that i need to modify the build.grade file on my project, but i can't find a specific solution.

我如何引用拉特在我的Andr​​oid Studio项目? 有一些教程或例子?

How can I reference the LVL in my android studio project? There is some tutorial or example?

谢谢 洛伦佐

推荐答案

最后,我已经得到了解决! 你把库/ SRC / COM目录的在youroject / SCR /主/爪哇/ COM,然后点击同步项目摇篮文件按钮。

Finally i've got the solution! You've to put the library/src/com directory's in the youroject/scr/main/java/com and then click on the "Sync project with gradle files" button.

这篇关于设置的许可验证库在Android工作室的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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