Styles.xml error in eclipse library project for google downloader when application is preApi9

I play with the new stuff from the google extension package, and the google library project for the loader has a special values ​​file -v9 / styles.xml for notification text properties. This causes an error when the application using the library is preAPI9 ... at least for me. This refers to some style that only appeared in api9. I tried setting

<uses-sdk android: minSdkVersion = "8" android: targetSdkVersion = "9" / ">

in AndroidManifest.xml of the main application, but this did not help. I would (naively) hope that the eclipse will simply ignore the error if I build for api8, and then when it is deployed in the market, the system will use -9 if the phone was at a level higher or higher, it seems to work in this way. So, I hope that I am missing something trivial.

btw - these are the specific errors

Description Type of resource path location Error: Error getting the parent element for the element: The resource was not found that matches the specified name "android: TextAppearance.StatusBar.EventContent.Title". styles.xml / Google Play Downloader Library / res / values-v9 line 4 Android AAPT problem

Description Type of resource path location Error: Error getting the parent element for the element: The resource was not found that matches the specified name "android: TextAppearance.StatusBar.EventContent.Title". styles.xml / Google Play Downloader Library / res / values-v9 line 4 Android AAPT problem

+5
source share
4 answers

, . : Linux apk-

, , .

: . values-v9 . DownloadManager . , .

+5

Project- > Properties- > Android AND/OR. Project- > clean...

, styles.xml styles-v9 Windows.

+1

, :

android update project -p . -t 3 --target android-10
ant release

Android 2.3.3 . , : minSdkVersion = "8" AndroidManifest.xml.

-v9/folder. .

+1

api, .

During operation, Android will cancel any code that does not work with the api on the device (you will see various log messages about this) and ignore any res folders with a version number that is too high. However, watch out for the notification code v11: it only works on v14 and higher, so you will have to change the code that determines which notification to use.

0
source

All Articles