I am having problem.
I use Sonar scan for my Android project, and it keeps failing when trying to index .xml files under res directory.
error message: File xxx/src/main/java/com/xxx/xx/xxxxxx/home/main/res/layout/xxxxxx_fragment.xml can’t be indexed twice. Please check that inclusion/exclusion patterns produce disjoint sets for main and test files
Because the security team required us to scan all resource files, I cannot simply exclude the res folders.
(Problem disappears when I do sonar.excludes="**/res/**" )
I cannot find any duplicate .xml file under main & test folders.
I have tried sonar.sources=“all my source file dir paths” sonar.tests=“all my test file paths” explicitly, and it does not help.
I am quite lost. Any help?
Hi,
I tried upgrading to version 5.1.0 and it worked, but this version requires java11 or above, and our project compilation needs to rely on java8. For us, we may need to make a choice.
Thx for your help.