Error: java.io.FileNotFoundException:


#1

C:\Users\santosh\iloveandaman>ionic build android
cp: no such file or directory: C:\Users\santosh\iloveandaman\resources\android\icon\drawable-ldpi-icon.png

cp: no such file or directory: C:\Users\santosh\iloveandaman\resources\android\icon\drawable-mdpi-icon.png

cp: no such file or directory: C:\Users\santosh\iloveandaman\resources\android\icon\drawable-hdpi-icon.png

cp: no such file or directory: C:\Users\santosh\iloveandaman\resources\android\icon\drawable-xhdpi-icon.png

cp: no such file or directory: C:\Users\santosh\iloveandaman\resources\android\icon\drawable-xxhdpi-icon.png

cp: no such file or directory: C:\Users\santosh\iloveandaman\resources\android\icon\drawable-xxxhdpi-icon.png

cp: no such file or directory: C:\Users\santosh\iloveandaman\resources\android\splash\drawable-land-ldpi-screen.png

cp: no such file or directory: C:\Users\santosh\iloveandaman\resources\android\splash\drawable-land-mdpi-screen.png

cp: no such file or directory: C:\Users\santosh\iloveandaman\resources\android\splash\drawable-land-hdpi-screen.png

cp: no such file or directory: C:\Users\santosh\iloveandaman\resources\android\splash\drawable-land-xhdpi-screen.png

cp: no such file or directory: C:\Users\santosh\iloveandaman\resources\android\splash\drawable-land-xxhdpi-screen.png

cp: no such file or directory: C:\Users\santosh\iloveandaman\resources\android\splash\drawable-land-xxxhdpi-screen.png

cp: no such file or directory: C:\Users\santosh\iloveandaman\resources\android\splash\drawable-port-ldpi-screen.png

cp: no such file or directory: C:\Users\santosh\iloveandaman\resources\android\splash\drawable-port-mdpi-screen.png

cp: no such file or directory: C:\Users\santosh\iloveandaman\resources\android\splash\drawable-port-hdpi-screen.png

cp: no such file or directory: C:\Users\santosh\iloveandaman\resources\android\splash\drawable-port-xhdpi-screen.png

cp: no such file or directory: C:\Users\santosh\iloveandaman\resources\android\splash\drawable-port-xxhdpi-screen.png

cp: no such file or directory: C:\Users\santosh\iloveandaman\resources\android\splash\drawable-port-xxxhdpi-screen.png

Running command: “C:\Program Files (x86)\nodejs\node.exe” C:\Users\santosh\iloveandaman\hooks\after_prepare\010_add_platform_class.js C:\Users\santosh\iloveandaman
add to body class: platform-android
ANDROID_HOME=C:\Program Files (x86)\Android\android-sdk
JAVA_HOME=C:\Program Files (x86)\java\jdk1.6.0
Default language level for compileSdkVersion ‘android-23’ is 1.7, but the JDK used is 1.6, so the JDK language level will be used.
Default language level for compileSdkVersion ‘android-23’ is 1.7, but the JDK used is 1.6, so the JDK language level will be used.
Default language level for compileSdkVersion ‘android-23’ is 1.7, but the JDK used is 1.6, so the JDK language level will be used.
Default language level for compileSdkVersion ‘android-23’ is 1.7, but the JDK used is 1.6, so the JDK language level will be used.
Default language level for compileSdkVersion ‘android-23’ is 1.7, but the JDK used is 1.6, so the JDK language level will be used.
Default language level for compileSdkVersion ‘android-23’ is 1.7, but the JDK used is 1.6, so the JDK language level will be used.
Default language level for compileSdkVersion ‘android-23’ is 1.7, but the JDK used is 1.6, so the JDK language level will be used.
Default language level for compileSdkVersion ‘android-23’ is 1.7, but the JDK used is 1.6, so the JDK language level will be used.
Default language level for compileSdkVersion ‘android-23’ is 1.7, but the JDK used is 1.6, so the JDK language level will be used.
Default language level for compileSdkVersion ‘android-23’ is 1.7, but the JDK used is 1.6, so the JDK language level will be used.
:preBuild UP-TO-DATE
:preDebugBuild UP-TO-DATE
:checkDebugManifest
:CordovaLib:preBuild UP-TO-DATE
:CordovaLib:preDebugBuild UP-TO-DATE
:CordovaLib:compileDebugNdk UP-TO-DATE
:CordovaLib:compileLint
:CordovaLib:copyDebugLint UP-TO-DATE
:CordovaLib:mergeDebugProguardFiles UP-TO-DATE
:CordovaLib:packageDebugRenderscript UP-TO-DATE
:CordovaLib:checkDebugManifest
:CordovaLib:prepareDebugDependencies
:CordovaLib:compileDebugRenderscript UP-TO-DATE
:CordovaLib:generateDebugResValues UP-TO-DATE
:CordovaLib:generateDebugResources UP-TO-DATE
:CordovaLib:packageDebugResources UP-TO-DATE
:CordovaLib:compileDebugAidl UP-TO-DATE
:CordovaLib:generateDebugBuildConfig UP-TO-DATE
:CordovaLib:generateDebugAssets UP-TO-DATE
:CordovaLib:mergeDebugAssets UP-TO-DATE
:CordovaLib:processDebugManifest UP-TO-DATE
:CordovaLib:processDebugResources UP-TO-DATE
:CordovaLib:generateDebugSources UP-TO-DATE
:CordovaLib:compileDebugJavaWithJavac UP-TO-DATE
:CordovaLib:processDebugJavaRes UP-TO-DATE
:CordovaLib:transformResourcesWithMergeJavaResForDebug UP-TO-DATE
:CordovaLib:transformClassesAndResourcesWithSyncLibJarsForDebug UP-TO-DATE
:CordovaLib:mergeDebugJniLibFolders UP-TO-DATE
:CordovaLib:transformNative_libsWithMergeJniLibsForDebug UP-TO-DATE
:CordovaLib:transformNative_libsWithSyncJniLibsForDebug UP-TO-DATE
:CordovaLib:bundleDebug UP-TO-DATE
:prepareAndroidCordovaLibUnspecifiedDebugLibrary UP-TO-DATE
:prepareDebugDependencies
:compileDebugAidl UP-TO-DATE
:compileDebugRenderscript UP-TO-DATE
:generateDebugBuildConfig UP-TO-DATE
:generateDebugAssets UP-TO-DATE
:mergeDebugAssets
Error: java.io.FileNotFoundException: C:\Users\santosh\iloveandaman\platforms\android\build\intermediates\assets\debug\www\lib\ngCordova\test\plugins\appAvailability.js (The system cannot find the path specified)
:mergeDebugAssets FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:mergeDebugAssets’.

Error: java.io.FileNotFoundException: C:\Users\santosh\iloveandaman\platforms\android\build\intermediates\assets\debug\www\lib\ngCordova\test\plugins\appAvailability.js (The system cannot find the path specified)

BUILD FAILED

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

Total time: 1 mins 20.889 secs
ERROR building one of the platforms: Error code 1 for command: cmd with args: /s,/c,"C:\Users\santosh\iloveandaman\platforms\android\gradlew cdvBuildDebug -b C:\Users\santosh\iloveandaman\platforms\android\build.gradle -Dorg.gradle.daemon=true -Pandroid.useDeprecatedNdk=true"
You may not have the required environment or OS to build this project
Error: Error code 1 for command: cmd with args: /s,/c,“C:\Users\santosh\iloveandaman\platforms\android\gradlew cdvBuildDebug -b C:\Users\santosh\iloveandaman\platforms\android\build.gradle -Dorg.gradle.daemon=true -Pandroid.useDeprecatedNdk=true”


#2

cordova platform rm android

cordova platform add android