code: 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 );
          }
      }
docs: Generate correct R.java for aar dependencies of a current project
  
  @throws MojoExecutionException if it could not generate the R java for one of the libraries.