I can't figure out how to add Downloader Library and Licensing Library to Android Studio

前端 未结 4 1040
庸人自扰
庸人自扰 2021-02-05 13:56

I\'m trying to use Google\'s Downloader Library and Application Licensing Service since my app is going to use APK Expansion. But the problem is I don\'t know how to add those 2

4条回答
  •  青春惊慌失措
    2021-02-05 14:28

    For anyone else coming along with similar problem.

    I solved it by importing module (File->New->Import Module) and selecting the licensing and the downloader library folders each time.

    Note however that the .project file for downloader has a line that throws Android off (correctly):

    android.library.reference.1=../market_licensing
    

    Remove this line and the module imports fine.

    Thank you Google once again for your clear instructions and clean environment!!!

    BTW: What the heck are they writing in their guide http://developer.android.com/google/play/expansion-files.html#AboutLibraries

    "Select the Properties tab and in Library Repository, enter the library from the /extras/google/ directory (play_licensing/ for the License Verification Library or play_apk_expansion/downloader_library/ for the Downloader Library)."

    Does that even make any sense to anyone?!

提交回复
热议问题