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

"ERROR: asset directory" when Ionic Build Android

$
0
0

Hello there,
When I use ionic build android it shows:


Running command: "C:\Program Files\nodejs\node.exe" C:\Windows\System32\todo\hooks\after_prepare\010_add_platform_class.js C:\Windows\System32\todo
add to body class: platform-android
Running command: cmd "/s /c "C:\Windows\System32\todo\platforms\android\cordova\build.bat""
ANDROID_HOME=C:\Users\gabri\AppData\Local\Android\android-sdk
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_66
Running: C:\Windows\System32\todo\platforms\android\gradlew cdvBuildDebug -b C:\Windows\System32\todo\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\todo\platforms\android\CordovaLib\build\intermediates\bundles\debug\assets' does not exist FAILED

BUILD FAILED

Total time: 15.138 secs
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\gabri\AppData\Local\Android\android-sdk\build-tools\23.0.2\aapt.exe package -f --no-crunch -I C:\Users\gabri\AppData\Local\Android\android-sdk\platforms\android-22\android.jar -M C:\Windows\System32\todo\platforms\android\CordovaLib\build\intermediates\bundles\debug\AndroidManifest.xml -S C:\Windows\System32\todo\platforms\android\CordovaLib\build\intermediates\bundles\debug\res -A C:\Windows\System32\todo\platforms\android\CordovaLib\build\intermediates\bundles\debug\assets -m -J C:\Windows\System32\todo\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\todo\platforms\android\CordovaLib\build\intermediates\bundles\debug
    Error Code:
    1
    Output:
    ERROR: asset directory 'C:\Windows\System32\todo\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.

C:\Windows\System32\todo\platforms\android\cordova\node_modules\q\q.js:126
throw e;
^
Error code 1 for command: cmd with args: /s /c "C:\Windows\System32\todo\platforms\android\gradlew cdvBuildDebug -b C:\Windows\System32\todo\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


And here is my $ionic info
Cordova CLI: 5.4.1
Ionic Version: 1.2.1
Ionic CLI Version: 1.7.12
Ionic App Lib Version: 0.6.5
OS:
Node Version: v5.3.0


The OS is doesn't appears, but its Win10.

What should I do? I have searched for topics but there were no solutions to me.


Viewing all articles
Browse latest Browse all 228595

Trending Articles



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