Closed dirkam closed 6 years ago
Thanks for all the reports. It looks like the library is not compatible with Android P, because we can no longer access some private fields and methods in the framework. I'll get to work on the essentials.
On P Emulator it works fine. I'll update my Pixel to P during the weekend and I'll test this myself as well.
There were two issues on Android P: 1) ringtone picker would show no ringtones 2) XpAppCompatSpinner would crash
Both of these issues are now fixed. Try this commit:
implementation 'com.github.consp1racy:android-support-preference:e590280557'
It also includes changes mentioned here: https://github.com/consp1racy/android-support-preference/issues/81#issuecomment-388210163 You can check the changelog here: CHANGELOG.md
How did you reproduce these issues on P? Tried it but it works for me. How can I use this commit? It says "Unable to resolve".
You'll also need to define the jitpack repo. Put this at the end of your app module build.gradle
repositories {
maven { url 'https://jitpack.io' }
}
It's been defined there, probably I tried to use it too soon.
Now it gives Error:cannot access ParametersAreNonnullByDefault
when trying to build the app.
That's just weird. Ok, make sure you have the google() and jcenter() repos as well.
If that doesn't work declare a dependency on https://mvnrepository.com/artifact/com.google.code.findbugs/jsr305/3.0.2 The instructions for Gradle are on the page.
Do you extend and implement your own preferences?
I do have a custom preference extending net.xpece.android.support.preference.DialogPreference
and one net.xpece.android.support.preference.SeekBarDialogPreference
As for the first fatal report, I've made it a non-fatal and put some more logging around it. RingtoneManager created a Ringtone object with a null Uri. That can happen in 3 places. Logging should help me pinpoint where exactly did it happen.
I've also hopefully fixed your problems with consuming a snapshot version of library from jitpack. It turns out all annotations need to be in build classpath so Proguard can access them. All annotations are now implementation
dependency of this library.
That makes all issues mentioned in this thread resolved. I'll close this for now and we can monitor the Ringtones with null Uri in a new issue later.
Hi,
Using 2.2.0 with 27.1.1 (preference-v7 27.0.2) support lib. Got a few ringtones related fatal/non-fatal crash reports. Not sure if they are related, but didn't want to open separate issues just yet, let me know. Seemingly very rare issues and can't reproduce them.
HTC, Android 6
Motorola Android 8
Pixel Android P (most probably Beta)
Pixel Android P (most probably Beta)