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:
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 done this but the import of:
import com.google.android.vending.licensing.LicenseChecker; import com.google.android.vending.licensing.LicenseCheckerCallback;
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.
How can I reference the LVL in my android studio project? There is some tutorial or example?
Thanks Lorenzo
Right click on your app that you are adding licensing to, and click properties, then hit Android . Go to the bottom and click library and add it to the build path. This should import the library to the Android Dependencies folder.
How does the license verification library work? It manages a connection between your app and the Android Market (now Google Play), and performs a license check with the server to see if the user has a valid license for your app (i.e. it was purchased legitimately through the market).
Google Play offers a licensing service that lets you enforce licensing policies for the apps that you publish on Google Play. With the licensing service, your apps can query Google Play at runtime to obtain their licensing status for the current user, then allow or disallow further use as appropriate.
The License Verification Library (LVL) is a library you can add to your application that handles all of the licensing-related communication with the Google Play licensing service.
Desktop/android-sdk-macosx/extras/google/play_licensing/library
lvl
module's build.gradle
to match your project targetSdkVersion.compile project(':lvl')
inside the {dependencies{
section.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With