The pre-dex folder also seemed like the perfect candidate for me. Unfortunately, if you look at the banks in this folder, you will see that they do not contain compiled classes, but dex files. The dex file is the dalvik executable, its Android and Sonar stuff can do nothing.
I managed to map some of my dependencies by declaring build/intermediates/exploded-aar/**/*.jar in the sonar.libraries property.
With this line, you will see all the “android librairies” (aar) that your project depends on. I have not been able to track all the other simple java libraires (jar) yet
source share