在 android studio 中设置 google play 扩展文件库

人气:584 发布:2022-10-16 标签: android-studio apk-expansion-files

问题描述

我正在尝试在我的 android 项目中使用 apk 扩展文件,我已经阅读了这个http://developer.android.com/google/play/expansion-files.html我试图按照这些步骤操作,但我不知道如何在我的项目/google play apk 扩展库中设置 /include.我一直在寻找几个小时,没有找到正确的答案.有什么帮助吗?

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?

推荐答案

我只是尝试设置 http://developer.android.com/google/play/expansion-files.html 今天,但 play_apk_expansion/downloader_library 无法按提供的方式导入.

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.

问题是 play_apk_expansion/downloader_library/project.properties

更新最后一行:

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

到:

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

注意额外的 ../

然后使用 File ->新 ->导入模块... 像往常一样导入 play_apk_expansion/downloader_library.它还会将 play_licensing/library 导入为 library,但之后可以将其重命名为更有用的东西.

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.

840