Setting Up the Licensing Verification Library on Android Studio

后端 未结 4 1039
抹茶落季
抹茶落季 2021-01-31 16:45

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

相关标签:
4条回答
  • 2021-01-31 17:31

    Finally I've got the solution! You have to put the library/src/com directories in the youroject/scr/main/java/com and then click on the "Sync project with Gradle files" button.

    0 讨论(0)
  • 2021-01-31 17:37

    Copying the LVL sources to your application. 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. Visit:http://developer.android.com/google/play/licensing/setting-up.html

    0 讨论(0)
  • 2021-01-31 17:45

    step 6 is placed in inside the project(":android"){dependencies { section.

    0 讨论(0)
  • 2021-01-31 17:46
    1. In Android Studio, Tools-Android-SDK Manager
    2. In SDK Manager, in the extras section choose Google Play Licensing Library
    3. Go back to Android Studio, and choose File-New-Import Module
    4. ADK Manager will have put the downloaded files under your SDK directory, in my case Desktop/android-sdk-macosx/extras/google/play_licensing/library
    5. Choose to import this directory as a module, and give it a name. I used 'lvl'
    6. Optionally change targetSdkVersion in the lvl module's build.gradle to match your project targetSdkVersion.
    7. Then in your projects build.gradle, add the line compile project(':lvl') inside the {dependencies{ section.
    8. Re-sync Gradle and everything should compile correctly.
    0 讨论(0)
提交回复
热议问题