Setting up the Google Play extension file library in Android Studio

I am trying to use apk extension files in my Android project, I read this http://developer.android.com/google/play/expansion-files.html I tried to follow these steps, but cannot figure out how to configure / includein my extension library Project / google play apk. I searched the clock, did not find the correct answer. Any help?

+4
source share
4 answers

I just tried setting up the modules listed at http://developer.android.com/google/play/expansion-files.html today, but play_apk_expansion/downloader_librarycould not be imported as indicated.

play_apk_expansion/downloader_library/project.properties

:

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

android.library.reference.1=../../play_licensing/library

.. /

File -> New -> Import Module... play_apk_expansion/downloader_library, . play_licensing/library library, .

+4
  • sdk/extras/google/play_licening/library Eclipse

  • sdk/extras/google/play_apk_expansion/downloader_library Eclipse

  • Eclipse: β†’ Android . play_licening downloader_library.

  • Android Studio: β†’ play_licening, downloader_library.

+1

I did not find a better way than importing via eclipse, so I installed the github repository where this has already been done:

https://github.com/coltsoftware/ExpansionAPKsAndroidStudio

+1
source

To use Andrew answer with Android Studio 2.1, I needed to update:

market_apk_expansion/downloader_library/project.properties

to

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

before I can import the module as described.

+1
source

All Articles