You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Gourav (JIRA)" <ji...@apache.org> on 2016/10/04 02:31:20 UTC

[jira] [Issue Comment Deleted] (CB-11943) :CordovaLib:processDebugResources FAILED

     [ https://issues.apache.org/jira/browse/CB-11943?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gourav updated CB-11943:
------------------------
    Comment: was deleted

(was: Hi Joe,

Thanks for reply.

I am trying to create HELLO WORLD by following the steps given at Cordova website for android-- 
Website URL- https://cordova.apache.org/docs/en/latest/guide/cli/index.html.
Version Details
Cordova - 6.3.1
Node - V6.6.0
OS - Window 10
Gradle - 2.10

Steps I followed with/without clean the project 
1. npm install -g cordova
2. cordova create hello com.example.hello HelloWorld
3. cd hello
4. cordova platform add android --save
5. cordova platform ls
Result for 5 - 
Installed platforms:
  android 5.2.2
Available platforms:
  amazon-fireos ~3.6.3 (deprecated)
  blackberry10 ~3.8.0
  browser ~4.1.0
  firefoxos ~3.6.3
  webos ~3.7.0
  windows ~4.4.0
  wp8 ~3.8.2 (deprecated)

6. cordova requirements
Result 
Requirements check results for android:
Java JDK: installed 1.8.0
Android SDK: installed
Android target: installed android-23,android-24
Gradle: installed

7. Clean - 
D:\MyWork\cordova\hello\platforms\android\cordova>clean
ANDROID_HOME=C:\Users\niitadmin\AppData\Local\Android\sdk\
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_101
Incremental java compilation is an incubating feature.
:clean UP-TO-DATE
:CordovaLib:clean

BUILD SUCCESSFUL

Total time: 2.347 secs

D:\MyWork\cordova\hello\platforms\android\cordova>

8. cordova build android.
I also tried with D:\MyWork\cordova\hello\platforms\android\cordova>build

On build I am getting below error always and it got failed. Please help to resolve the same.

:CordovaLib:processDebugResources FAILED

FAILURE: Build failed with an exception.


BUILD FAILED

Total time: 2.457 secs
* What went wrong:
Execution failed for task ':CordovaLib:processDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\niitadmin\AppData\Local\Android\sdk\build-tools\24.0.3\aapt.exe'' finished with non-zero exit value -1073741819

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Error: cmd: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':CordovaLib:processDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\niitadmin\AppData\Local\Android\sdk\build-tools\24.0.3\aapt.exe'' finished with non-zero exit value -1073741819

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
    at ChildProcess.whenDone (D:\MyWork\cordova\hello\platforms\android\cordova\node_modules\cordova-common\src\superspawn.js:169:23)
    at emitTwo (events.js:106:13)
    at ChildProcess.emit (events.js:191:7)
    at maybeClose (internal/child_process.js:877:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)

9. Log 
D:\MyWork\cordova\hello\platforms\android\cordova>log
ANDROID_HOME=C:\Users\niitadmin\AppData\Local\Android\sdk\
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_101

D:\MyWork\cordova\hello\platforms\android\cordova\node_modules\q\q.js:155
                throw e;
                ^
Failed to run logcat command.

D:\MyWork\cordova\hello\platforms\android\cordova>
10. With Android Stuido I am using Genymotion

Please let me know if any other information is required.

)

> :CordovaLib:processDebugResources FAILED
> ----------------------------------------
>
>                 Key: CB-11943
>                 URL: https://issues.apache.org/jira/browse/CB-11943
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, App Hello World, CordovaLib
>    Affects Versions: 6.3.1
>         Environment: Window 10 +ionic
>            Reporter: Gourav
>
> :CordovaLib:processDebugResources FAILED
> 15:56:32.082 [INFO] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] :CordovaLib:processDebugResources (Thread[main,5,main]) completed. Took 2.964 secs.
> 15:56:32.082 [DEBUG] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] Task worker [Thread[main,5,main]] finished, busy: 3.314 secs, idle: 0.505 secs
> 15:56:32.092 [ERROR] [org.gradle.BuildExceptionReporter]
> 15:56:32.092 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.
> 15:56:32.092 [ERROR] [org.gradle.BuildExceptionReporter]
> 15:56:32.092 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
> 15:56:32.092 [ERROR] [org.gradle.BuildExceptionReporter] Execution failed for task ':CordovaLib:processDebugResources'.
> 15:56:32.092 [ERROR] [org.gradle.BuildExceptionReporter] > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\niitadmin\AppData\Local\Android\sdk\build-tools\24.0.3\aapt.exe'' finished with non-zero exit value -1073741819
> 15:56:32.092 [ERROR] [org.gradle.BuildExceptionReporter]
> 15:56:32.092 [ERROR] [org.gradle.BuildExceptionReporter] * Try:
> 15:56:32.092 [ERROR] [org.gradle.BuildExceptionReporter] Run with --stacktrace option to get the stack trace.
> 15:56:32.093 [LIFECYCLE] [org.gradle.BuildResultLogger]
> 15:56:32.093 [LIFECYCLE] [org.gradle.BuildResAultLogger] BUILD FAILED



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org