forked from dotnet/android
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Xamarin.Android.Build.Tasks] allow multiple r-classes.jar files (dot…
…net#5691) Fixes: dotnet#5627 In some cases, Android Studio projects can produce `.aar` files that contain: libs/r-classes.jar Reviewing the contents of one of these `r-classes.jar` files: $ jar tf libs/r-classes.jar com/test/R.class It appears Android Studio is potentially moving any `R.java` files into this new `r-classes.jar` file. If you have two `.aar` files that contain a `r-classes.jar` in a Xamarin.Android application, you would currently run into the error: JAR library references with identical file names but different contents were found: r-classes.jar. Please remove any conflicting libraries from EmbeddedJar, InputJar and AndroidJavaLibrary. Make the `<CheckDuplicateJavaLibraries/>` MSBuild task ignore this issue for `r-classes.jar`, as it does for `classes.jar`. I can't find any good links to explain this new file, or why it exists. I added a test for this scenario.
- Loading branch information
1 parent
18723b8
commit a9ca3d4
Showing
6 changed files
with
50 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+12.9 KB
src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/Resources/library1.aar
Binary file not shown.
Binary file added
BIN
+12.9 KB
src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/Resources/library2.aar
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters