Skip to content

Cant Upload File without catchError #82

Open
@conall1995

Description

i am trying to upload an image file
its work fine in some of devices but not all
some device like android v 4.4.4 and ...
Start uploading for up I/dalvikvm(20584): Rejecting re-init on previously-failed class Lokhttp3/internal/platform/Platform; v=0x0 E/WM-WorkerWrapper(20584): Work [ id=6bbb38d3-f97a-4f61-8170-d522d6ddca42, tags={ com.bluechilli.flutteruploader.UploadWorker, flutter_upload_task } ] failed because it threw an exception/error E/WM-WorkerWrapper(20584): java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: okhttp3/internal/platform/Platform E/WM-WorkerWrapper(20584): at androidx.work.impl.utils.futures.AbstractFuture.getDoneValue(AbstractFuture.java:516) E/WM-WorkerWrapper(20584): at androidx.work.impl.utils.futures.AbstractFuture.get(AbstractFuture.java:475) E/WM-WorkerWrapper(20584): at androidx.work.impl.WorkerWrapper$2.run(WorkerWrapper.java:284) E/WM-WorkerWrapper(20584): at androidx.work.impl.utils.SerialExecutor$Task.run(SerialExecutor.java:91) E/WM-WorkerWrapper(20584): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) E/WM-WorkerWrapper(20584): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) E/WM-WorkerWrapper(20584): at java.lang.Thread.run(Thread.java:841) E/WM-WorkerWrapper(20584): Caused by: java.lang.NoClassDefFoundError: okhttp3/internal/platform/Platform E/WM-WorkerWrapper(20584): at okhttp3.OkHttpClient.<init>(OkHttpClient.kt:219) E/WM-WorkerWrapper(20584): at okhttp3.OkHttpClient$Builder.build(OkHttpClient.kt:955) E/WM-WorkerWrapper(20584): at com.bluechilli.flutteruploader.UploadWorker.doWork(UploadWorker.java:226) E/WM-WorkerWrapper(20584): at androidx.work.Worker$1.run(Worker.java:85) E/WM-WorkerWrapper(20584): ... 3 more I/WM-WorkerWrapper(20584): Worker result FAILURE for Work [ id=6bbb38d3-f97a-4f61-8170-d522d6ddca42, tags={ com.bluechilli.flutteruploader.UploadWorker, flutter_upload_task } ] I/flutter (20584): 1

Metadata

Assignees

No one assigned

    Labels

    androidAndroid-only issuesbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions