Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

Ionic android build error (worked previously)

$
0
0

Hi,

I am facing the same issue. I am not able get ahead with any of the solutions mentioned. Please help me with this. Thank you.

ionic info:

Your system information:

Cordova CLI: 5.3.3
Ionic Version: 1.1.0
Ionic CLI Version: 1.6.5
Ionic App Lib Version: 0.3.9
OS: null
Node Version: v4.1.1

C:\Windows\System32\myapp>ionic build android
Running command: "C:\Program Files\nodejs\node.exe" C:\Windows\System32\myapp\hooks\after_prepare\010_add_platform_class.js C:\Windows\System32\myapp
add to body class: platform-android
Running command: cmd "/s /c "C:\Windows\System32\myapp\platforms\android\cordova\build.bat""
ANDROID_HOME=C:\Users\Keerthi\AppData\Local\Android\sdk
JAVA_HOME=C:\Program Files\java\jdk1.7.0_79
Running: C:\Windows\System32\myapp\platforms\android\gradlew cdvBuildDebug -b C:\Windows\System32\myapp\platforms\android\build.gradle -Dorg.gradle.daemon=true
:preBuild
:compileDebugNdk UP-TO-DATE
:preDebugBuild
:checkDebugManifest
:CordovaLib:compileLint
:CordovaLib:copyDebugLint UP-TO-DATE
:CordovaLib:mergeDebugProguardFiles UP-TO-DATE
:CordovaLib:preBuild
:CordovaLib:preDebugBuild
:CordovaLib:checkDebugManifest
:CordovaLib:prepareDebugDependencies
:CordovaLib:compileDebugAidl UP-TO-DATE
:CordovaLib:compileDebugRenderscript UP-TO-DATE
:CordovaLib:generateDebugBuildConfig UP-TO-DATE
:CordovaLib:generateDebugAssets UP-TO-DATE
:CordovaLib:mergeDebugAssets UP-TO-DATE
:CordovaLib:generateDebugResValues UP-TO-DATE
:CordovaLib:generateDebugResources UP-TO-DATE
:CordovaLib:packageDebugResources UP-TO-DATE
:CordovaLib:processDebugManifest UP-TO-DATE
:CordovaLib:processDebugResourcesERROR: asset directory 'C:\Windows\System32\myapp\platforms\android\CordovaLib\build\intermediates\bundles\debug\assets' does not exist FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':CordovaLib:processDebugResources'.

    com.android.ide.common.internal.LoggedErrorException: Failed to run command:
    C:\Users\Keerthi\AppData\Local\Android\sdk\build-tools\23.0.1\aapt.exe package -f --no-crunch -I C:\Users\Keerthi\AppData\Local\Android\sdk\platforms\android-23\android.jar -M C:\Windows\System32\myapp\platforms\android\CordovaLib\build\intermediates\bundles\debug\AndroidManifest.xml -S C:\Windows\System32\myapp\platforms\android\CordovaLib\build\intermediates\bundles\debug\res -A C:\Windows\System32\myapp\platforms\android\CordovaLib\build\intermediates\bundles\debug\assets -m -J C:\Windows\System32\myapp\platforms\android\CordovaLib\build\generated\source\r\debug --debug-mode --custom-package org.apache.cordova --non-constant-id -0 apk --output-text-symbols C:\Windows\System32\myapp\platforms\android\CordovaLib\build\intermediates\bundles\debug
    Error Code:
    1
    Output:
    ERROR: asset directory 'C:\Windows\System32\myapp\platforms\android\CordovaLib\build\intermediates\bundles\debug\assets' does not exist

  • 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: 2.784 secs

C:\Windows\System32\myapp\platforms\android\cordova\node_modules\q\q.js:126
throw e;
^
Error code 1 for command: cmd with args: /s /c "C:\Windows\System32\myapp\platforms\android\gradlew cdvBuildDebug -b C:\Windows\System32\myapp\platforms\android\build.gradle -Dorg.gradle.daemon=true"
ERROR building one of the platforms: Error: cmd: Command failed with exit code 1
You may not have the required environment or OS to build this project
Error: cmd: Command failed with exit code 1
at ChildProcess.whenDone (C:\Users\Keerthi\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:139:23)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:817:16)
at Process.ChildProcess.handle.onexit (internal/childprocess.js:211:5)


Viewing all articles
Browse latest Browse all 228595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>