private void generateCorrectRJavaForAarDependencies ( ResourceClassGenerator resourceGenerator ) throws MojoExecutionException { // Generate corrected R.java for AAR dependencies. final Set < Artifact > aarLibraries = getTransitiveDependencyArtifacts ( AAR ) ; if ( ! aarLibraries . isEmpty ( ) ) { // Generate R.java for each AAR based on R.txt getLog ( ) . debug ( "Generating R file for AAR dependencies" ) ; resourceGenerator . generateLibraryRs ( aarLibraries ) ; } }
Generate correct R . java for aar dependencies of a current project