SonarQube Android crashes during analysis

Please provide

  • Operating system: Android
  • SonarQube for IntelliJ plugin version: 6.0.0.5145 for Android
  • IntelliJ version: Android Studio
  • Programming language you’re coding in: Kotlin
  • Is connected mode used:
    • SonarQube Cloud, SonarQube Server, or SonarQube Community Build? (if one of the latter two, which version?): SonarQube Server

And a thorough description of the problem / question:

Hello everyone! I’m integrating SonarQube in my Android Project and I’m getting an error during the analysis regarding permissions. This the error:

You’re not authorized to analyze this project or the project doesn’t exist on SonarQube and you’re not authorized to create it. Please contact an administrator.

I have “analyse project“ as rol in my SonarQube Dashboard. I would need any extra permission or privilege to solve this issue? And if I need any extra permission, which permission/s I would need?

Thanks in advance!

Hey there.

This looks much more like a SonarScanner for Gradle version that SonarQube for IDE.

Does this project already exist in SonarQube? If not, the user for whom you’ve generated a token will also need Create Projects permissions.

Hi Colin,

Thanks for your response. Yes, the SonarQube project I’m trying to connect to was created in our SonarQube Dashboard. I’ve taken all the configuration details from our project dashboard, and it seems the Android project is connecting to the SonarQube project. However, when we execute the scan, the error I posted in the issue appears. The project admin has set up the permissions, and it looks like I have the “Analyze Project” permission, but I’m not sure whether the problem is related to permissions or to the internal configuration of the project.

Thanks

Hi,

Please post your analysis log.

The analysis / scanner log is what’s output from the analysis command. Hopefully, the log you provide - redacted as necessary - will include that command as well.

This guide will help you find them.

 
Thx,
Ann