Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Malformed input or input contains unmappable characters: [Android]

Edited
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.

1 answer

1 accepted

1 vote
Answer accepted
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Mar 17, 2023

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.

Kind regards,
Theodora

Thanks, Theodora!

Not sure I fully know what to do next but below is the script in the bitbucket-pipelines.yml file 


 

image: androidsdk/android-30

pipelines:
default:
- step:
size: 2x
name: Android Debug Application
script:
- ./gradlew assembleDebug

 

Any suggestions, please?

Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Mar 20, 2023

Hi,

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.

Kind regards,
Theodora

Hi Theodora

Thanks for the detailed explanation, I will give it a try.

Like Theodora Boudale likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events