You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
Here is the error gotten
* What went wrong:
Execution failed for task ':app:mergeDebugJavaResource'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.MergeJavaResWorkAction
> Malformed input or input contains unmappable characters: /com/....java - ??.mine
This is the data passed to the org.gradle.jvmargs variable in the gradle.properties file
org.gradle.jvmargs=-Xmx3096m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
I am not sure what should be done as the Gradle task works fine on my local machine.
Hi @Favour Olije and welcome to the community!
I assume that you get this error during a Pipelines build in a Bitbucket repository?
Pipelines builds run in Docker containers using the Docker image specify in your bitbucket-pipeline.yml file. The environment on your local machine may not be the same as in the Docker container where your build is running.
I would suggest debugging this locally with Docker, you can use the following guide:
Please make sure you use the same Docker image that you have specified as a build container in your bitbucket-pipeline.yml file for the failed step and a clone of the repo at the same commit as your failed step. If your build doesn't use services, you can ignore the section "Testing with build services".
After you have the container up and running, you can execute the commands from your bitbucket-pipeline.yml file in order to see if the issue is reproducible, and also any additional commands to debug the issue.
Not sure I fully know what to do next but below is the script in the bitbucket-pipelines.yml file
name: Android Debug Application
- ./gradlew assembleDebug
Any suggestions, please?
The step on your bitbucket-pipelines.yml file runs in a Docker container that is using the following DockerHub image:
Since it has size: 2x, it can use up to 8 GB of memory.
Please see the details in the link of my previous reply on how to debug this locally with Docker:
In Step 2 of this guide, instead of python:3 you will want to use androidsdk/android-30.
In Step 3, please use 8g instead of 4g for the parameters --memory and --memory-swap.
Once you have the Docker container up and running, you can execute the command from your script (./gradlew assembleDebug) to see if the issue is reproducible. If it is, you can run additional commands in the Docker container to further debug this issue.