I am following this answer in order to setup Google Play Licensing: Google Play Licencing for an Android app in Android Studio
Everything perfect until .10 However when I finish importing the module I don't have any module/folder in my project. I tried to check in the path of my android studio project and there is a folder with the module name I've chosen but it's empty. What am I doing wrong?
I don't know why but when you download this library using the SDK manager then the
build.gradleof the library is missing. And so you can't import it.Please download the code from the git repository directly. Also note that this is the official way to download the library as described under https://developer.android.com/google/play/licensing/setting-up.
You can use the
gitcommand or download it using the browser. You can find the repo under https://github.com/google/play-licensing. Download/extract it to an folder which is not inside your Android project.If you don't have git select the green button and then select
Download ZIP. Extract the ZIP to a folder which is not in your Android project folder.Now open your Android Studio project and click
File > New > Import Module.... Select thelvl_libraryfolder of the library.If it asks you select that you want to trust the library.
You are done.
Please note when there are updates for this library you have to do it manually. Close Android Studio. Delete
lvl_libraryfrom your project. Copy the newlvl_libraryto your project. Done.