elprl
elprl

Reputation: 1960

Android apk expansion file libs problems

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?

Upvotes: 5

Views: 4782

Answers (2)

dagalpin
dagalpin

Reputation: 1307

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

Upvotes: 1

elprl
elprl

Reputation: 1960

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.

Upvotes: 2

Related Questions