@fabiobalsamo wrote:
Hi i've this problem
C:\Users\aryon-fabio\Eni_Dema_Git\Eni_Dema>cordova platform add android
Adding android project...
Running command: cmd "/s /c "C:\Users\aryon-fabio.cordova\lib\npm_cache\cordova
-android\4.1.1\package\bin\create.bat C:\Users\aryon-fabio\Eni_Dema_Git\Eni_Dema
\platforms\android com.ionicframework.multiprovalogin483422 "Dema Test" --cli""
Creating Cordova project for the Android platform:
Path: platforms\android
Package: com.ionicframework.multiprovalogin483422
Name: Dema Test
Activity: MainActivity
Android target: android-22
Copying template files...
Android project created with cordova-android@4.1.1
Running command: "C:\Program Files\nodejs\node.exe" C:\Users\aryon-fabio\Eni_Dem
a_Git\Eni_Dema\hooks\after_prepare\010_add_platform_class.js C:\Users\aryon-fabi
o\Eni_Dema_Git\Eni_Dema
add to body class: platform-android
Installing "cordova-plugin-console" for android
Installing "cordova-plugin-device" for android
Installing "cordova-plugin-file" for android
Plugin doesn't support this project's cordova-android version. cordova-android:
4.1.1, failed version requirement: >=5.0.0-dev
Skipping 'cordova-plugin-file' for android
Installing "cordova-plugin-file-transfer" for android
Installing "cordova-plugin-file" for android
Plugin doesn't support this project's cordova-android version. cordova-android:
4.1.1, failed version requirement: >=5.0.0-dev
Skipping 'cordova-plugin-file' for android
Installing "cordova-plugin-network-information" for android
Installing "cordova-plugin-screen-orientation" for android
Installing "cordova-plugin-splashscreen" for android
Installing "cordova-plugin-statusbar" for android
Installing "cordova-plugin-whitelist" for androidThis plugin is only applicable for versions of cordova-android greater than 4.0.
If you have a previous platform version, you do not need this plugin since th
e whitelist will be built in.Installing "cordova-sqlite-storage" for android
Installing "ionic-plugin-keyboard" for android
Installing "me.rahul.plugins.sqlDB" for androidC:\Users\aryon-fabio\Eni_Dema_Git\Eni_Dema>ionic build android
Running command: "C:\Program Files\nodejs\node.exe" C:\Users\aryon-fabio\Eni_Dem
a_Git\Eni_Dema\hooks\after_prepare\010_add_platform_class.js C:\Users\aryon-fabi
o\Eni_Dema_Git\Eni_Dema
add to body class: platform-android
Running command: cmd "/s /c "C:\Users\aryon-fabio\Eni_Dema_Git\Eni_Dema\platform
s\android\cordova\build.bat""
ANDROID_HOME=C:\Program Files\Android\android-sdk
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_60
Running: C:\Users\aryon-fabio\Eni_Dema_Git\Eni_Dema\platforms\android\gradlew cd
vBuildDebug -b C:\Users\aryon-fabio\Eni_Dema_Git\Eni_Dema\platforms\android\buil
d.gradle -Dorg.gradle.daemon=true
:preBuild
:compileDebugNdk
:preDebugBuild
:checkDebugManifest
:CordovaLib:compileLint
:CordovaLib:copyDebugLint UP-TO-DATE
:CordovaLib:mergeDebugProguardFiles
:CordovaLib:preBuild
:CordovaLib:preDebugBuild
:CordovaLib:checkDebugManifest
:CordovaLib:prepareDebugDependencies
:CordovaLib:compileDebugAidl
:CordovaLib:compileDebugRenderscript
:CordovaLib:generateDebugBuildConfig
:CordovaLib:generateDebugAssets UP-TO-DATE
:CordovaLib:mergeDebugAssets
:CordovaLib:generateDebugResValues
:CordovaLib:generateDebugResources
:CordovaLib:packageDebugResources
:CordovaLib:processDebugManifest
:CordovaLib:processDebugResources
:CordovaLib:generateDebugSources
:CordovaLib:compileDebugJavaNote: Some input files use or override a deprecated
API.
Note: Recompile with -Xlint:deprecation for details.:CordovaLib:processDebugJavaRes UP-TO-DATE
:CordovaLib:packageDebugJar
:CordovaLib:compileDebugNdk
:CordovaLib:packageDebugJniLibs UP-TO-DATE
:CordovaLib:packageDebugLocalJar UP-TO-DATE
:CordovaLib:packageDebugRenderscript UP-TO-DATE
:CordovaLib:bundleDebug
:prepareAndroidCordovaLibUnspecifiedDebugLibrary
:prepareDebugDependencies
:compileDebugAidl
:compileDebugRenderscript
:generateDebugBuildConfig
:generateDebugAssets UP-TO-DATE
:mergeDebugAssets
:generateDebugResValues
:generateDebugResources
:mergeDebugResources
:processDebugManifest
:processDebugResources
:generateDebugSources
:compileDebugJavaC:\Users\aryon-fabio\Eni_Dema_Git\Eni_Dema\platforms\android\sr
c\org\apache\cordova\filetransfer\FileTransfer.java:59: error: package org.apach
e.cordova.file does not exist
import org.apache.cordova.file.FileUtils;
^
C:\Users\aryon-fabio\Eni_Dema_Git\Eni_Dema\platforms\android\src\org\apache\cord
ova\filetransfer\FileTransfer.java:934: error: cannot find symbol
FileUtils filePlugin = (FileUtils) pm.getPlugin("File");^
symbol: class FileUtils
C:\Users\aryon-fabio\Eni_Dema_Git\Eni_Dema\platforms\android\src\org\apache\cord
ova\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: C:\Users\aryon-fabio\Eni_Dema_Git\Eni_Dema\platforms\android\src\org\apach
e\cordova\filetransfer\FileTransfer.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
3 errors
FAILEDFAILURE: 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: 15.318 secs
C:\Users\aryon-fabio\Eni_Dema_Git\Eni_Dema\platforms\android\cordova\node_module
s\q\q.js:126
throw e;
^
Error code 1 for command: cmd with args: /s /c "C:\Users\aryon-fabio\Eni_Dema_Gi
t\Eni_Dema\platforms\android\gradlew cdvBuildDebug -b C:\Users\aryon-fabio\Eni_D
ema_Git\Eni_Dema\platforms\android\build.gradle -Dorg.gradle.daemon=true"
ERROR building one of the platforms: Error: cmd: Command failed with exit code 1You may not have the required environment or OS to build this project
Error: cmd: Command failed with exit code 1What can i do?Please help
Posts: 3
Participants: 2