Giter Club home page Giter Club logo

Comments (15)

jaiselrahman avatar jaiselrahman commented on June 2, 2024 1

You can use the older version 1.1.1, but if you have to use newer version you have to migrate to androidx.

from filepicker.

j796160836 avatar j796160836 commented on June 2, 2024 1

I found another way to solve the problem by using fork project. 😘
I fork the project and revert the commit 21c0bb9

then apply the new gradle dependencies with new jitpack path

dependencies {
    implementation 'com.github.j796160836:FilePicker:master_without_androidx-SNAPSHOT'
}

Details is in here.
https://github.com/j796160836/FilePicker/tree/master_without_androidx

It works like a charm.

from filepicker.

jaiselrahman avatar jaiselrahman commented on June 2, 2024 1

Great!

from filepicker.

j796160836 avatar j796160836 commented on June 2, 2024

I found it maybe this commit 21c0bb9 cause the problem.

from filepicker.

j796160836 avatar j796160836 commented on June 2, 2024

Yeah, I tried the older version 1.1.1 I got another exceptions

java.lang.NoSuchMethodError: No virtual method optionalCenterCrop()Lcom/bumptech/glide/request/RequestOptions; in class Lcom/bumptech/glide/request/RequestOptions; or its super classes (declaration of 'com.bumptech.glide.request.RequestOptions' appears in /data/app/................/split_lib_dependencies_apk.apk)
        at com.jaiselrahman.filepicker.adapter.FileGalleryAdapter.<init>(FileGalleryAdapter.java:75)
        at com.jaiselrahman.filepicker.activity.FilePickerActivity.onCreate(FilePickerActivity.java:100)
        at android.app.Activity.performCreate(Activity.java:7009)
        at android.app.Activity.performCreate(Activity.java:7000)
        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1214)
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2731)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2856)
        at android.app.ActivityThread.-wrap11(Unknown Source:0)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1589)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loop(Looper.java:164)
        at android.app.ActivityThread.main(ActivityThread.java:6494)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)

It seems glide version not match for the project (version too old).

from filepicker.

anta40 avatar anta40 commented on June 2, 2024

I found another way to solve the problem by using fork project. 😘
I fork the project and revert the commit 21c0bb9

then apply the new gradle dependencies with new jitpack path

dependencies {
    implementation 'com.github.j796160836:FilePicker:master_without_androidx-SNAPSHOT'
}

Details is in here.
https://github.com/j796160836/FilePicker/tree/master_without_androidx

It works like a charm.

Please pardon my ingorance.
I used that, and still got the same "Manifest merger failed with multiple errors, see logs".
It's a pretty simple project, doesn't use AndroidX, and the min SDK version is 15.
The only 3rd party lib used is https://github.com/SUPERCILEX/poi-android (for dealing with XLSX files).
Here is my source code: http://157.230.131.4/tmp/v1/StockChecker.zip

from filepicker.

jaiselrahman avatar jaiselrahman commented on June 2, 2024

@anta40 You just have to remove the line tools:replace="android:appComponentFactory" from manifest file.

from filepicker.

ShwetaPatil1234 avatar ShwetaPatil1234 commented on June 2, 2024

@jaiselrahman
I am also getting the same error

java.lang.NoSuchMethodError: No virtual method optionalCenterCrop()Lcom/bumptech/glide/request/RequestOptions; in class Lcom/bumptech/glide/request/RequestOptions; or its super classes

Version used :implementation 'com.github.jaiselrahman:FilePicker:1.1.1'

Please help to resolve the issue without migrating to androidX

from filepicker.

jaiselrahman avatar jaiselrahman commented on June 2, 2024

Which glide version are you using?
Make sure you are using glide version 4.9.0 or greater. See #19.

from filepicker.

ShwetaPatil1234 avatar ShwetaPatil1234 commented on June 2, 2024

I am not using Glide.
But I am using another picker for single image selection.
implementation 'gun0912.ted:tedbottompicker:2.0.1'
Which also uses Glide may be because of it the issue is occurring.

from filepicker.

jaiselrahman avatar jaiselrahman commented on June 2, 2024

Which version of the library are you using?

from filepicker.

ShwetaPatil1234 avatar ShwetaPatil1234 commented on June 2, 2024

implementation 'gun0912.ted:tedbottompicker:2.0.1'
implementation 'com.github.jaiselrahman:FilePicker:1.1.1'

from filepicker.

jaiselrahman avatar jaiselrahman commented on June 2, 2024

Try using the latest version along with
tools:replace="android:appComponentFactory" in the manifest file <application .../> tag.

from filepicker.

jaiselrahman avatar jaiselrahman commented on June 2, 2024

Or you can use the following version

implementation 'com.github.j796160836:FilePicker:master_without_androidx-SNAPSHOT'

from filepicker.

ShwetaPatil1234 avatar ShwetaPatil1234 commented on June 2, 2024

Okay. I will check once

from filepicker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.