APK扩展文件:在Android Studio中指定库路径(Windows)

Sle*_*ing 3 android android-library android-studio apk-expansion-files android-gradle-plugin

我在Android Studio(Windows 10)上.我一直在尝试按照https://developer.android.com/google/play/expansion-files.html中的步骤进行操作,但我仍然停留在"准备使用下载程序库"部分.我已下载并安装了Google Play许可证库和Google Play下载程序库.我已经创建了相应的模块.但是,当我转到模块设置并指定库存储库的路径时,我收到错误,当我再次打开模块设置时,库存储库字段保持空白.我得到的错误是:

10:23:57 PM IncorrectOperationException: Error while applying changes: cannot create file from text: C:\Users\n56\AppData\Local\Android\sdk\extras\google\market_apk_expansion\downloader_library\
10:36:23 PM IncorrectOperationException: Error while applying changes: cannot create file from text: C:\Users\n56\AppData\Local\Android\sdk\extras\google\market_licensing\library\
Run Code Online (Sandbox Code Playgroud)

我指定的库存储库路径是:

C:\Users\n56\AppData\Local\Android\sdk\extras\google\market_apk_expansion\downloader_library
C:\Users\n56\AppData\Local\Android\sdk\extras\google\market_licensing\library\
Run Code Online (Sandbox Code Playgroud)

我已经尝试过各种各样的事情,例如转义反斜杠,导入模块而不是单击New Modules但没有可用.

将不胜感激任何帮助.TIA.

Mar*_*iel 8

教程的文档错过了每个路径上的Android Manifes.xml文件的参考.

每个库的正确路径是:

Google Play许可证库 <sdk>/extras/google/play_licensing/library/AndroidManifest.xml

Google Play下载程序库 <sdk>/extras/google/play_apk_expansion/downloader_library/AndroidManifest.xml

我注意到在Google的其他教程中,使用相同的库来设置许可验证库

LVL教程

Android库存储库

答案更新: 这些以前的方法只引用整个库的一个文件.实际上,我将所有这些步骤恢复为使用 whit中的库,我们需要使用Google Play许可证库Google Play下载程序库,其中包含存储库的链接