Getting Please provide compiled classes of your project with sonar.java.binaries property

Getting below error when I am running android kotlin project, we have 3 environments code (qa,satging,prod) and main code which is related to all environments. if I run individual environment than its getting success. but if i run main code than its failing like below.

Please provide compiled classes of your project with sonar.java.binaries property

log:

INFO: Project root configuration file: NONE
INFO: SonarQube Scanner 3.3.0.1492
INFO: Java 1.8.0_181 Oracle Corporation (64-bit)
INFO: Mac OS X 10.14.6 x86_64
INFO: User cache: /Users/ypo019021/.sonar/cache
INFO: SonarQube server 7.7.0
INFO: Default locale: "en_US", source code encoding: "UTF-8" (analysis is platform dependent)
INFO: Load global settings
INFO: Load global settings (done) | time=223ms
INFO: Server id: BF41A1F2-AWtKeySTYjQ3ashiecYa
INFO: User cache: /Users/ypo019021/.sonar/cache
INFO: Load/download plugins
INFO: Load plugins index
INFO: Load plugins index (done) | time=101ms
INFO: Load/download plugins (done) | time=899ms
INFO: Process project properties
INFO: Execute project builders
INFO: Execute project builders (done) | time=4ms
INFO: Project key: Ypod-Android
INFO: Base dir: /Users/ypo019021/myagent/_work/2/s
INFO: Working dir: /Users/ypo019021/myagent/_work/2/s/.scannerwork
INFO: Load project settings for component key: 'Ypod-Android'
INFO: Load project settings for component key: 'Ypod-Android' (done) | time=33ms
INFO: Load project branches
INFO: Load project branches (done) | time=1008ms
INFO: Load project pull requests
INFO: Load project pull requests (done) | time=24ms
INFO: Load branch configuration
INFO: Load branch configuration (done) | time=2ms
INFO: Load project repositories
INFO: Load project repositories (done) | time=935ms
INFO: Load quality profiles
INFO: Load quality profiles (done) | time=411ms
INFO: Load active rules
INFO: Load active rules (done) | time=1897ms
INFO: Branch name: develop, type: short living
INFO: SCM collecting changed files in the branch
INFO: SCM collecting changed files in the branch (done) | time=9449ms
INFO: Indexing files...
INFO: Project configuration:
INFO: 650 files indexed
INFO: 0 files ignored because of scm ignore settings
INFO: Quality profile for java: Sonar way
INFO: Quality profile for kotlin: Sonar way
INFO: ------------- Run sensors on module Android-Ypod
INFO: Load metrics repository
INFO: Load metrics repository (done) | time=54ms
INFO: Sensor JavaSquidSensor [java]
INFO: Configured Java source version (sonar.java.source): none
INFO: JavaClasspath initialization
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 22.585s
INFO: Final Memory: 18M/214M
INFO: ------------------------------------------------------------------------
##[error]ERROR: Error during SonarQube Scanner execution
ERROR: Please provide compiled classes of your project with sonar.java.binaries property
ERROR:
ERROR: Re-run SonarQube Scanner using the -X switch to enable full debug logging.
ERROR: Error during SonarQube Scanner execution
ERROR: Please provide compiled classes of your project with sonar.java.binaries property
ERROR:
ERROR: Re-run SonarQube Scanner using the -X switch to enable full debug logging.
##[error]/Users/ypo019021/myagent/_work/_tasks/SonarQubeAnalyze_6d01813a-9589-4b15-8491-8164aeb38055/4.6.3/sonar-scanner/bin/sonar-scanner failed with return code: 1
##[section]Finishing: Run Code Analysis

Hi,
sorry for the late reply.
It looks like the analysis is not correctly configured and it’s missing the location of the compile java code.
Is there anything preventing you from using the Scanner for Maven or Scanner for Gradle instead of the Scanner CLI? That would automatically configure the analysis.