Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

setting up google play expansion file library in android studio

I am trying to use apk expansion files in my android project, I've read this http://developer.android.com/google/play/expansion-files.html I tried to follow those steps, but I cannot figure out how to set up / include in my project / google play apk expansion library. I've been searching for hours, didn't find right answer. Any help?

like image 400
x.iva Avatar asked Jan 09 '23 19:01

x.iva


2 Answers

I just tried to set up the modules listed in http://developer.android.com/google/play/expansion-files.html today, but the play_apk_expansion/downloader_library cannot be imported as supplied.

The issue is a stale library reference in play_apk_expansion/downloader_library/project.properties

Update the last line from:

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

to:

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

Note the extra ../

Then use File -> New -> Import Module... to import the play_apk_expansion/downloader_library as usual. It will also import the play_licensing/library as library but that can be renamed to something more useful afterwards.

like image 53
Andrew Avatar answered Jan 25 '23 04:01

Andrew


I have not found a better way than importing via eclipse, so I have set up a github repo where this has already been done:

https://github.com/coltsoftware/ExpansionAPKsAndroidStudio

like image 31
weston Avatar answered Jan 25 '23 06:01

weston