How to reproduce:
1. Open the "IN_51273" project
2. In the Project Settings -> Publish make sure the “Split Application Binary” is enabled
3. In the Build Settings make sure "Build App Bundle (Google Play)" is enabled
4. Press Build
Expected result: project is built successfully
Actual result: build failed with an error "Execution failed for task ':launcher:checkReleaseDuplicateClasses'."
Reproducible with: 2022.3.10f1
Not reproducible with: 2021.3.30f1, 2023.1.14f1, 2023.2.0b10, 2023.3.0a4
Reproducible on: Windows 10 Pro
Not reproducible on: No other environment tested
Notes:
- After the first few times of reproducing this issue, the errors started appearing with and without "Split Application Binary" enabled
- Some versions (2021.3.30f1) still have build errors but they are different from the users reported so you can check if the issue reproduces by observing the error given in the description and matching it to the error which shows up in the Console
- Sometimes if the issue doesn't reproduce you need to re-download the project and open it again
- Keep in mind versions written in "Not reproducible with" still have build errors but these are not the same as user-reported
- Didn't search for a regressed version due to reproduction instability and unreasonable long testing time (same reason with a fixed version)
- User mentioned the issue is not reproducible on 2022.2.9f1
User found a workaround that works for him (only worked for me the first time of testing):
1. In the Build Settings enable “Export” and export the project
2. Open file AndroidStudio_project_folder\unityLibrary\build.gradle
3. Replace one string in the dependencies block: “com.google.android.play:asset-delivery:2.0.0” to “com.google.android.play:core:1.10.0” or delete the “com.google.android.play:asset-delivery:2.0.0”