Open ytheekshana opened 5 years ago
ResourcesNotFoundException
, that's strange. Haven't been able to reproduce this either. Did cleaning, and rebuilding not help?
ResourcesNotFoundException
, that's strange. Haven't been able to reproduce this either. Did cleaning, and rebuilding not help?
nope
In checking. poor network speed at these days. i can't reply to gitter but i'm here.
Thanks. Here's a list of device that had this crash
the first, it seems the R.drawable.ic_folder
missed. ic_folder is in afc
library, it should be there if the gradle import is right. could you check that and show us your import line.
let's suppose the import is wrong, it will cause resource not found exception on any devices.
You mean this ?
dependencies { implementation fileTree(include: ['.jar', '.aar'], dir: 'libs') implementation 'androidx.constraintlayout:constraintlayout:2.0.0-alpha5' androidTestImplementation('androidx.test.espresso:espresso-core:3.2.0-alpha05', { exclude group: 'com.android.support', module: 'support-annotations' }) testImplementation 'junit:junit:4.13-beta-2' implementation 'com.google.firebase:firebase-crash:16.2.1' implementation 'com.google.firebase:firebase-core:16.0.8' implementation 'com.google.firebase:firebase-messaging:17.6.0' implementation 'com.crashlytics.sdk.android:crashlytics:2.9.9' implementation 'androidx.appcompat:appcompat:1.1.0-alpha04' implementation 'com.google.android.material:material:1.1.0-alpha05' implementation 'androidx.legacy:legacy-support-v4:1.0.0' implementation 'androidx.cardview:cardview:1.0.0' implementation 'androidx.recyclerview:recyclerview:1.1.0-alpha04' implementation 'androidx.biometric:biometric:1.0.0-alpha04' implementation 'com.android.billingclient:billing:1.2' implementation 'com.github.kizitonwose.colorpreference:core:1.1.0' implementation 'com.github.kizitonwose.colorpreference:support:1.1.0' implementation 'com.jaredrummler:android-device-names:1.1.8' implementation 'com.github.nisrulz:lantern:2.0.0' implementation 'com.ogaclejapan.smarttablayout:library:2.0.0' implementation 'com.github.lzyzsd:circleprogress:1.2.1' implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0-alpha' implementation 'com.nabinbhandari.android:permissions:3.8' implementation 'com.obsez.android.lib.filechooser:filechooser:1.1.19' implementation 'com.nex3z:toggle-button-group-x:0.1.0' }
Yes it is. But it looks good. I just created an demo-app, it works. would you like give it a shot? afc-demo.zip
Yes it is. But it looks good. I just created an demo-app, it works. would you like give it a shot? afc-demo.zip
I don't have those devices. They just poped up on Firebase crashlytics. This doesn't happen on my device.
They dislike me. It's a bad news. I'll link to Firebase console to trace this issue. Thanks.
test lab say ok with afc-demo
(added crushlytics, robo test just click button to display afc dialog).
@hedzr I could add you to my Firebase console so that you'll get more info about the crash. Is it ok? If yes send me your Gmail.
hedzrz@gmail.com i'll in after two hours
Added the email. You'll find the crash in the crashlytics crash list. It will be the second one. Thanks
Perhaps the Proguard/R8 messes with the resources. do you by chance shrinkResources true
?
Edit:
Google launches Android Studio 3.4 with Android Q Beta emulator, and
R8 replaces Proguard
Even though it should be R8 by default now, I did explicitly enable it (android.enableR8=true
), and added it to the dependencies (classpath 'com.android.tools:r8:1.3.52'
). Might be worth looking into that?
Perhaps the Proguard/R8 messes with the resources. do you by chance
shrinkResources true
? Edit:
Google launches Android Studio 3.4 with Android Q Beta emulator, and
R8 replaces Proguard
Even though it should be R8 by default now, I did explicitly enable it (
android.enableR8=true
), and added it to the dependencies (classpath 'com.android.tools:r8:1.3.52'
). Might be worth looking into that?
By the time of the exception, shrinkResourse is false....
@ytheekshana we released the library with standard mode, no shrinkResource, and android.enableR8 is true. You could make choice of the final strategy in your app, which will take affect to both of app and lib.
I'm also getting this error, on devices with Android 6.0.1 and older:
Unfortunately there's no API 21 system image for AVD anymore, so i can't test it myself.
I do have
shrinkResources true
, would this maybe help? https://developer.android.com/studio/build/shrink-code#keep-resources
I have a crash on many devices. Firebase Crashlytics show this.
I am Building the FileChooser like this.