-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Execution failed for task ':app:mergeDebugResources'. #1250
Comments
Same/similar issue here. In my case, I've found the problem is all edit-config and config-file tags can only be run once when building. After building it once and the edit configs and config files are applied (in this case to the AndroidManifest.xml), commenting/removing them from the config.xml seems to fix the compiling issue. |
I had the same issue and finally found a solution in a comment to a blog post here : https://www.damirscorner.com/blog/posts/20171117-CustomizingAndroidManifestInCordova.html#comment-4550864745 Adding the attribute |
After several, several hours mix-and-matching all sorts of Java and Android tools and versions, I found on an unrelated issue how to run the Android project from the Studio. THERE the build output had more details and I could see that Gradle was simply unable to write to its cache in my home dir (no clue why). Solved that and it runs......... From Studio. CLI causes another issue related to AndroidDebugKey length, but that's another topic :) |
This is an error coming from Gradle, so the bug report should be made against gradle. To get more information for a gradle bug report, from For this reason I'm closing this issue. However if there is a specific cordova configuration that doesn't work, a new issue can be reported with a minimal reproduction and we can take a look. |
this works guys! |
I had the same issue and finally found a solution in a comment to a blog post here : https://www.damirscorner.com/blog/posts/20171117-CustomizingAndroidManifestInCordova.html#comment-4550864745 Adding the attribute xmlns:android="http://schemas.android.com/apk/res/android" to the element in config.xml fixed it. Thanks it is working. |
Bug Report
Problem
What is expected to happen?
FAILURE: Build failed with an exception.
Execution failed for task ':app:mergeDebugResources'.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 21m 15s
20 actionable tasks: 20 executed
/root/hello/platforms/android/gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.
Execution failed for task ':app:mergeDebugResources'.
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
What does actually happen?
Information
Command or Code
Environment, Platform, Device
I using ubuntu in termux
My device redmi Y2
Version information
Cordova: Cordova CLI
Operating System: Ubuntu arch x86
Checklist
The text was updated successfully, but these errors were encountered: