I can't figure out how to add the Downloader library and licensing library in Android Studio

I am trying to use the Google Downloader Library and the application licensing service , since my application is going to use the APK extension. But the problem is that I do not know how to add these 2 libraries in Android Studio. I always import libraries into Android Studio by File -> Import Module, and then select it.

But when I do this this time, he says:

Select modules to import

Even after I have already selected the Downloader library or the licensing library.

I also tried importing them by copying the directories to the directory of my application and then including them depending on gradle, but this also does not work.

Can someone guide me through adding these two libraries to my Android studio because I can't figure it out.

+7
android android-studio
source share
2 answers

I solved the problem in a very strange way.

I noticed that I can not import these 2 libraries directly into Android Studio, because they lack a large number of project files, so Android Studio does not recognize them as libraries.

Then I imported both libraries into Eclipse so that everything would be created and then exported directly to Android Studio.

It worked like a charm.

Maybe a weird way to import a library, but at least it worked.

+2
source share

For someone else looking like a similar problem.

I solved this by importing a module (File-> New-> Import Module) and choosing folders for the licensing libraries and bootloader each time.

Note that the .project file for the bootloader has a line that disables Android (correctly):

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

Delete this line and the module imports the penalty.

Thanks again to Google for clear instructions and a clean environment !!!

By the way: What the hell do they write in their guide http://developer.android.com/google/play/expansion-files.html#AboutLibraries

"Select the" Properties "tab and in the library repository, enter the libraries from the / extras / google / directory (play_licensing / for the license verification library or play_apk_expansion / downloader_library / for the Downloader library).

Does it even make sense to someone ?!

+15
source share

All Articles