I'm trying to get chromecast integration in my app but I'm having build issues when I add the android-support-v7-appcompat to my project. Basically it has an attrs.xml file that has the same values as the actionbarsherlock attrs.xml file. Is there anyway around this? This seems kind of ridiculous that different libraries can possibly conflict resource values.
相关问题
- Where is the RecyclerView in the support library?
- Chromecast Receiver App Error: The WebSocket disco
- Attribute “titleTextStyle” has already been define
- couldn't change actionbarsherlock SearchView i
- ActionBarSherlock: getSupportMenuInflator() is und
相关文章
- Dynamic ellipsis support for Android autosizing Te
- How to set visibility for an actionbar menu group?
- library resolve to a path with no project.properti
- Can't find Chromecast serial number to registe
- Didn't find class “androidx.core.content.FileP
- Flaky Android Espresso Test - Snackbar
- Android set transparent background for a fragment
- Cast connection timeout
I just encounter the same problem and had a hard time for several hours figuring this out. this is how I solved it.
You usually need support-v7-appcompat if your minimum sdk supported is below API14.
I removed support-v7-appcompat as my library. (This will show error regarding missing theme.)
For all the styles.xml in all folders (mine are) values, values-v11 and values-v14
style name="AppBaseTheme" parent="Theme.AppCompat.Light"
replace it with
style name="AppBaseTheme" parent="android:Theme.Light"
for some reason, in my menu xml file. it had error for android:showAsAction. I was able to solve it by deleting it then save and then copying the same thing from another file i have because I want that function. (Really weird it was just the same text.)
I did my sherlock code adjustments needed for my app
I am now able to run actionbar in 2.3.3