cordova-plugin-file-downloader icon indicating copy to clipboard operation
cordova-plugin-file-downloader copied to clipboard

Fail on dependence Filtransfer

Open nobertomaciel opened this issue 3 years ago • 3 comments

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.

nobertomaciel avatar Jan 04 '22 20:01 nobertomaciel

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.

BodoMinea avatar Apr 15 '22 10:04 BodoMinea

Merged!

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

mramonlopez avatar Apr 20 '22 11:04 mramonlopez

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

nobertomaciel avatar Apr 20 '22 17:04 nobertomaciel