[
https://issues.apache.org/jira/browse/CB-?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
romeo mihalcea updated CB-:
---
Description:
After installing the `cordova-plugin-file` and trying to run the project I get
this error in the console:
{code:borderStyle=solid}
.../local/cordova-build/platforms/android/src/org/apache/cordova/filetransfer/FileTransfer.java:59:
error: package org.apache.cordova.file does not exist
import org.apache.cordova.file.FileUtils;
^
.../local/cordova-build/platforms/android/src/org/apache/cordova/filetransfer/FileTransfer.java:934:
error: cannot find symbol
FileUtils filePlugin = (FileUtils) pm.getPlugin("File");
^
symbol: class FileUtils
.../local/cordova-build/platforms/android/src/org/apache/cordova/filetransfer/FileTransfer.java:934:
error: cannot find symbol
FileUtils filePlugin = (FileUtils) pm.getPlugin("File");
^
symbol: class FileUtils
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
:compileDebugJava FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileDebugJava'.
> Compilation failed; see the compiler error output for details.
{code}
was:
After installing the `cordova-plugin-file` and trying to run the project I get
this error in the console:
```
.../local/cordova-build/platforms/android/src/org/apache/cordova/filetransfer/FileTransfer.java:59:
error: package org.apache.cordova.file does not exist
import org.apache.cordova.file.FileUtils;
^
.../local/cordova-build/platforms/android/src/org/apache/cordova/filetransfer/FileTransfer.java:934:
error: cannot find symbol
FileUtils filePlugin = (FileUtils) pm.getPlugin("File");
^
symbol: class FileUtils
.../local/cordova-build/platforms/android/src/org/apache/cordova/filetransfer/FileTransfer.java:934:
error: cannot find symbol
FileUtils filePlugin = (FileUtils) pm.getPlugin("File");
^
symbol: class FileUtils
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
:compileDebugJava FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileDebugJava'.
> Compilation failed; see the compiler error output for details.
```
> Cordova file plugin: error: package org.apache.cordova.file does not exist
> --
>
> Key: CB-
> URL: https://issues.apache.org/jira/browse/CB-
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin File, Plugin File Transfer
> Environment: MacOS
>Reporter: romeo mihalcea
>
> After installing the `cordova-plugin-file` and trying to run the project I
> get this error in the console:
> {code:borderStyle=solid}
> .../local/cordova-build/platforms/android/src/org/apache/cordova/filetransfer/FileTransfer.java:59:
> error: package org.apache.cordova.file does not exist
> import org.apache.cordova.file.FileUtils;
> ^
> .../local/cordova-build/platforms/android/src/org/apache/cordova/filetransfer/FileTransfer.java:934:
> error: cannot find symbol
> FileUtils filePlugin = (FileUtils)
> pm.getPlugin("File");
> ^
> symbol: class FileUtils
> .../local/cordova-build/platforms/android/src/org/apache/cordova/filetransfer/FileTransfer.java:934:
> error: cannot find symbol
> FileUtils filePlugin = (FileUtils)
> pm.getPlugin("File");
> ^
> symbol: class FileUtils
> 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
> :compileDebugJava FAILED
> FAILURE: Build failed with an exception.
> * What went wrong:
> Execution failed for task ':compileDebugJava'.
> > Compilation failed; see the compiler error output for details.
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org