Cordova android run problem in IntelliJ
Hi there.
I have a weird problem with IntelliJ Idea.
I had created Cordova basic project HelloCordova.
I had finished configuration and now its works. But i cant run it from IntelliJ. It seams like some specific IntelliJ bug.
When i trying to run it form IntelliJ terminal I get next log:
cordova run android
=========================================================
E:\WorkSpase\my.project>cordova run android
ANDROID_HOME=C:\Program Files\tools_r25.2.3-windows
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_92
Subproject Path: CordovaLib
Incremental java compilation is an incubating feature.
:preBuild UP-TO-DATE
:preDebugBuild UP-TO-DATE
:checkDebugManifest
:CordovaLib:preBuild UP-TO-DATE
:CordovaLib:preDebugBuild UP-TO-DATE
:CordovaLib:checkDebugManifest
:CordovaLib:prepareDebugDependencies
:CordovaLib:compileDebugAidl UP-TO-DATE
:CordovaLib:compileDebugNdk UP-TO-DATE
:CordovaLib:compileLint UP-TO-DATE
:CordovaLib:copyDebugLint UP-TO-DATE
:CordovaLib:mergeDebugShaders UP-TO-DATE
:CordovaLib:compileDebugShaders UP-TO-DATE
:CordovaLib:generateDebugAssets UP-TO-DATE
:CordovaLib:mergeDebugAssets UP-TO-DATE
:CordovaLib:mergeDebugProguardFiles UP-TO-DATE
:CordovaLib:packageDebugRenderscript UP-TO-DATE
:CordovaLib:compileDebugRenderscript UP-TO-DATE
:CordovaLib:generateDebugResValues UP-TO-DATE
:CordovaLib:generateDebugResources UP-TO-DATE
:CordovaLib:packageDebugResources UP-TO-DATE
:CordovaLib:processDebugManifest UP-TO-DATE
:CordovaLib:generateDebugBuildConfig UP-TO-DATE
:CordovaLib:processDebugResources FAILED
BUILD FAILED
Total time: 1.616 secs
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':CordovaLib:processDebugResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt
* 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: Failed to execute aapt
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
E:\WorkSpase\my.project>
=========================================================
Now the weird things are that:
- With regular windows command line tool it works fine. Emulator is launching successfully.
- With WebStorm terminal it works fine. Emulator is launching successfully.
!!! --stacktrace or -debug don't give me some additional log about the problem.
Thanks!
Please sign in to leave a comment.
Please file a bug at https://youtrack.jetbrains.com/issues/WEB with the sample project to reproduce attached.