Android apk expansion file libs problems

依然范特西╮ 提交于 2019-12-22 05:59:39

问题


I'm following the steps in the dev guide to implement the Google Marketplace (Play) Expansion files setup:

http://developer.android.com/guide/market/expansion-files.html

I'm at the section "Preparing to use the Downloader Library" where I've added the License Lib, Downloader lib and zip lib projects to eclipse and then as libs to my main project. My question is about compatibility. My main project is set to minimum API 8 (Android 2.2), yet the Market Downloader Library (found here: android-sdk-mac_x86/extras/google/market_apk_expansion) is set to Android 4 and definitely uses methods from API 11. So how will this work?

The link says:

Note: By default, the Downloader Library requires API level 4, but the APK Expansion Zip Library requires API level 5.

Should I be looking for an older library?


回答1:


I managed to fix the problem by removing a values-v9 folder in android-sdk/extras/google/market_apk_expansion/downloader_library project.

Although this Library Project is built using Android 4.0, it seems to work fine in my Android 2.2 project as a reference library.




回答2:


The APK Expansion File Library expects to be compiled against the most recent SDK versions, but supports a target SDK version of 4/5.



来源:https://stackoverflow.com/questions/9607066/android-apk-expansion-file-libs-problems

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!