question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to use the new Color Preference

See original GitHub issue

Hi, I couldn’t get the new Color preference working.

After including in my gradle file the compile 'net.xpece.android:support-preference-color:0.6.0' line, I get

Error:Failed to resolve: xpece-android-support-preference:support-preference:unspecified

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
consp1racycommented, Apr 19, 2016

The issue is I currently have to manually fix the dependency from

xpece-android-support-preference:support-preference:unspecified

to

net.xpece.android:support-preference:[0.7.0,0.8.0)

when releasing the library.

The first time (0.6.0) i didn’t know at all. The second time (0.7.0) I fixed only the version and didn’t notice the groupId being wrong.

I uploaded fixed .pom file (maven metadata) but there’s a million caches on the way to your Android Studio so you probably won’t pick it up. For now you’re stuck with @aar suffix and manually importing net.xpece.android:support-preference as well.

Thank you for letting me know and let’s pray I get it right in next release.

0reactions
JoseGDcommented, Apr 19, 2016

Still fails for me. Error message:

Error:Failed to resolve: xpece-android-support-preference:support-preference:[0.7.0,0.8.0)

Adding the @aar sufix solves the issue.

I don’t know if this have something to do, but I have upgraded to Android Studio 2 yesterday, and to make sure I have the latest support library (I’ve seen the comment // depends on preference-v7 r23.3.0 in readme) I kept “Android Support Repository, rev 30” and removed “Android Support Library 23.2.1” in SDK Manager.

I’ve done this after asking asking in G+ (https://plus.google.com/+AndroidDevelopers/posts/iTDmFiGrVne) why I couldn’t see the 23.3.0 release in SDK Manager. The docs say “Note: If you’re developing with Android Studio, select and install the Android Support Repository item instead”.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Highlight Color preference problem detect… - Apple Community
For some reason, my can not change highlight color to blue. In the System Preference, General. Even though highlight color is blue, its...
Read more >
Unable to change between black/white and colour printing ...
Right-click on Envy 5544 and select “Printing Preferences”. Navigate to print quality / layout tab and make sure that the color printing option...
Read more >
F24: Failure of Success Criterion 1.4.3, 1.4.6 and 1.4.8 due to ...
If the author forces the background to be white, then the white background specified by the author could be similar in color to...
Read more >
Color Management preferences | Maya 2022
Choose the color space to convert images into. Use View Transform applies the View and Display transforms specified for the scene in the...
Read more >
change background color of Preference - android
I am unable to set the background of my settings screen, this screen is displayed with help of xml file shown below. Please...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found