FilePickerBuilder.getInstance() is not working system says can't find symbol getInstance()
I tried the the below simple example as given in the documentation but the project is unable to find getInstance() method. Why?
FilePickerBuilder.getInstance().setMaxCount(5) .setSelectedFiles(filePaths) .setActivityTheme(R.style.LibAppTheme) .pickPhoto(this);
Add Companion object to get its instance.
eg
FilePickerBuilder.Companion.getInstance().setMaxCount(5) .setSelectedFiles(filePaths) .setActivityTheme(R.style.LibAppTheme) .pickPhoto(this)
Add
Companionobject to get its instance.eg
FilePickerBuilder.Companion.getInstance().setMaxCount(5) .setSelectedFiles(filePaths) .setActivityTheme(R.style.LibAppTheme) .pickPhoto(this)
Hi! I'm newbie looking knowledge. By adding Companion, I got this error
java.lang.NoClassDefFoundError: Failed resolution of: Lkotlin/jvm/internal/Intrinsics; at droidninja.filepicker.FilePickerBuilder.setSelectedFiles(FilePickerBuilder.kt). How to fix this?
Which Android-FilePicker version are you using?
If you are using the latest version i.e filepicker: 2.2.0 then you need to migrate your project to AndroidX.
or use old version filepicker:2.1.5
Which Android-FilePicker version are you using? If you are using the latest version i.e
filepicker: 2.2.0then you need to migrate your project to AndroidX.or use old version
filepicker:2.1.5
Thank you, I already tried filepicker:2.1.5 and it's works! Thanks a lot bro.