Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

styles.xml error in eclipse library project for google downloader when app is preApi9

Tags:

android

I am playing with the new google expansion pack stuff, and the google library project for the downloader has a special values-v9/styles.xml file for the notification text properties. This causes an error when the app that is using the library is preAPI9... at least for me. It is referring to some style stuff that only appeared in api9. I've tried setting

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

in the AndroidManifest.xml of the main app, but this didn't help. I would (naively) hope eclipse would just ignore the error if I'm building for api8, and then when deployed on the market the system would use the values-9 stuff if the phone were at or above that level, but it doesn't seem to work that way. So, I'm hoping I'm missing something trivial here.

btw - here are the specific errors

Description Resource Path Location Type error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.StatusBar.EventContent.Title'. styles.xml /Google Play Downloader Library/res/values-v9 line 4 Android AAPT Problem

Description Resource Path Location Type error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.StatusBar.EventContent.Title'. styles.xml /Google Play Downloader Library/res/values-v9 line 4 Android AAPT Problem

like image 920
user655489 Avatar asked Mar 08 '12 02:03

user655489


2 Answers

Yes, I'm getting this also. I posted a related question here: Android apk expansion file libs problems

I'm stumped to know what to do.

Update: This worked for me. I deleted the values-v9 folder and rebuilt everything. The DownloadManager is now working. How, I don't know.

like image 146
elprl Avatar answered Nov 15 '22 01:11

elprl


Try changing build target via Project->Properties->Android AND/OR Clean your project via Project->clean...

This worked for me after having to manually create the styles.xml file inside the styles-v9 folder through windows explorer.

like image 39
TonyCruze Avatar answered Nov 14 '22 23:11

TonyCruze