[
https://issues.apache.org/jira/browse/CB-9999?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15020764#comment-15020764
]
Quentin POIRIER commented on CB-9999:
-------------------------------------
Hello,
I have the exact same problem:
{code:title=console}
/home/talanor/projects/epitech/eip/dev/Cyanionic/platforms/android/src/org/apache/cordova/filetransfer/FileTransfer.java:59:
error: cannot find symbol
import org.apache.cordova.file.FileUtils;
^
symbol: class FileUtils
location: package org.apache.cordova.file
/home/talanor/projects/epitech/eip/dev/Cyanionic/platforms/android/src/org/apache/cordova/filetransfer/FileTransfer.java:934:
error: cannot find symbol
FileUtils filePlugin = (FileUtils) pm.getPlugin("File");
^
symbol: class FileUtils
/home/talanor/projects/epitech/eip/dev/Cyanionic/platforms/android/src/org/apache/cordova/filetransfer/FileTransfer.java:934:
error: cannot find symbol
FileUtils filePlugin = (FileUtils) pm.getPlugin("File");
^
symbol: class FileUtils
Note:
/home/talanor/projects/epitech/eip/dev/Cyanionic/platforms/android/src/org/apache/cordova/filetransfer/FileTransfer.java
uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note:
/home/talanor/projects/epitech/eip/dev/Cyanionic/platforms/android/src/org/apache/cordova/filetransfer/FileTransfer.java
uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
3 errors
FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileDebugJava'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.
BUILD FAILED
Total time: 1.539 secs
/home/talanor/projects/epitech/eip/dev/Cyanionic/platforms/android/cordova/node_modules/q/q.js:126
throw e;
^
Error code 1 for command:
/home/talanor/projects/epitech/eip/dev/Cyanionic/platforms/android/gradlew with
args:
cdvBuildDebug,-b,/home/talanor/projects/epitech/eip/dev/Cyanionic/platforms/android/build.gradle,-Dorg.gradle.daemon=true
ERROR building one of the platforms: Error:
/home/talanor/projects/epitech/eip/dev/Cyanionic/platforms/android/cordova/build:
Command failed with exit code 1
You may not have the required environment or OS to build this project
Error:
/home/talanor/projects/epitech/eip/dev/Cyanionic/platforms/android/cordova/build:
Command failed with exit code 1
{code}
But I know I have all the modules installed:
{code:title=console}
talanor@HellBuntu:~/projects/epitech/eip/dev/Cyanionic$ cordova plugin ls
cordova-plugin-file 3.0.0 "File"
cordova-plugin-file-transfer 1.4.0 "File Transfer"
cordova-plugin-whitelist 1.0.0 "Whitelist"
cordova-plugin-zip 3.0.0 "cordova-plugin-zip"
ionic-plugin-keyboard 1.0.7 "Keyboard"
{code}
Additionnal informations:
{code:title=console}
talanor@HellBuntu:~/projects/epitech/eip/dev/Cyanionic$ cordova --version
5.4.0
talanor@HellBuntu:~/projects/epitech/eip/dev/Cyanionic$ cordova platforms
Installed platforms: android 4.1.1
Available platforms: amazon-fireos, blackberry10, browser, firefoxos, ubuntu,
webos
{code}
I am currently working on Ubuntu vivid.
Thank you
> Cordova file plugin: error: package org.apache.cordova.file does not exist
> --------------------------------------------------------------------------
>
> Key: CB-9999
> URL: https://issues.apache.org/jira/browse/CB-9999
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin File, Plugin File Transfer
> Environment: MacOS
> Reporter: romeo mihalcea
> Labels: Android
>
> 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: [email protected]
For additional commands, e-mail: [email protected]