/fix-duplicates

Xamarin Android Binding Fix duplicates r-class and R.txt files

Primary LanguageC#MIT LicenseMIT

Xamarin Android Binding Fix duplicates r-class and R.txt files

  • In the some of the native android libraries, there exist multiple .aar files which have a libs/r-classes.jar file. In Xamarin.Android, there is a Task "CheckDuplicateJavaLibraries" which inspects jar files being pulled in from .aar files in assemblies to see if there exist any files with the same name but different content, and will throw an error if it finds any. However, for us, it is perfectly valid to have this scenario and we should not see an error.

     r-libraryName
    
  • In the some of the native libraries, there exist multiple .aar libraries which have a R.txt files. Rename them to

    R-libraryName.txt
    

Available on Nuget