How to Integrate Sonarcloud with Bitrise for Anroid and iOS

We are able to see the sonar scanner but when ever we are publishing to sonar cloud it is expecting java minimum version 11 is required. Please help us here how to integrate with sonar cloud to publish reports from bitrise.

Hello @SatishDevOps-azure ,

Welcome to the community!

There is a documentation page on bitrise that mentions how to switch to Java 11: Virtual machines | Bitrise DevCenter .

Hi Bednorz

We followed the same approach earlier , but no luck which is why we approached you is there any alternate solution to fix the issue. We are mainly looking for to integrate sonar cloud.


Unfortunately there is nothing we can do on our side here. You need to run the SonarCloud scanner with at least Java version 11. What is the problem when trying the steps that are outlined in the bitrise documentation?

Hi Bednorz,

I have added the below steps in Script workflow

set -ex
add-apt-repository -y ppa:openjdk-r/ppa
apt-get update -qq
apt-get install -y openjdk-14-jdk
update-java-alternatives -s /usr/lib/jvm/java-1.14.0-openjdk-amd64
echo “done”

Issue details.
ERROR: Error during SonarScanner execution
The version of Java (1.8.0_282) you have used to run this analysis is deprecated and we stopped accepting it.
Please update to at least Java 11. You can find more information here:

Could you check if the java version was set correctly? (java -version, javac -version, and the contents of JAVA_HOME)?

Hi Bednorz,

Thanks for your support , Issue got resolved by updating java11 version in bitrise.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.