mramonlopez / cordova-plugin-file-downloader

Phonegap plugin to download a list of files or a single file to the phone, check consistency and unzip if necessary (Android and ios)
MIT License
23 stars 19 forks source link

Fail on dependence Filtransfer #19

Open nobertomaciel opened 2 years ago

nobertomaciel commented 2 years ago

Fail on dependence Filetransfer:

Cordova: 11.0.0 Android-API: 30
Gradle: 7.3.3 Java-SDK: 11.0.13

Task :app:compileDebugJavaWithJavac FAILED /home/xxx/platforms/android/app/src/main/java/org/apache/cordova/filetransfer/FileTransfer.java:48: error: cannot find symbol import org.apache.cordova.Whitelist; ^ symbol: class Whitelist location: package org.apache.cordova /home/xxxx/platforms/android/app/src/main/java/org/apache/cordova/filetransfer/FileTransfer.java:691: error: cannot find symbol Whitelist whitelist = (Whitelist)gwl.invoke(webView); ^ symbol: class Whitelist location: class FileTransfer /home/xxx/platforms/android/app/src/main/java/org/apache/cordova/filetransfer/FileTransfer.java:691: error: cannot find symbol Whitelist whitelist = (Whitelist)gwl.invoke(webView); ^ symbol: class Whitelist location: class FileTransfer Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 3 errors

FAILURE: Build failed with an exception.

BodoMinea commented 2 years ago

I think this should be solved in my fork - https://github.com/BodoMinea/cordova-plugin-file-downloader I opened PR #20 regarding the fix inclusion back in the main repo.

mramonlopez commented 2 years ago

Merged!

Sorry, I haven't worked with Cordova for years...

nobertomaciel commented 2 years ago

Thank you @BodoMinea... @mramonlopez no problem... thanks, I'm glad for your plugin exists. It helped me very much.