Play Asset Delivery example breaks when using ARCore package
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Lĩnh vực
- build-system, mobile-dev
Hướng nghiên cứu
Open the PlayAssetDelivery SampleScene and follow the setup steps in the Addressables-Sample README, then reproduce the AAB build with Split Application Binary enabled. Compare the bundletool 1.8.0 output with and without ARCore XR Plugin 4.1.7 or 4.2.0, and inspect the Addressables Analyze results; done means the duplicated UnitySubsystemsManifest.json entry is resolved or the conflict is clearly reported.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Hello!
I see the disclaimer that these examples are not guaranteed to work, but I am seeing a very strange issue when trying to use Addressables with Play Asset Delivery.
It seems like splitting the application binary causes an issue with the Unity Android build where a copy of UnitySubsystemsManifest.json is duplicated in both the base APK and the generated asset pack. I have only seen this happen while using the ARCore XR plugin so far.
Steps to reproduce:
- Open the PlayAssetDelivery SampleScene
- Install ARCore XR Plugin 4.1.7 or 4.2.0 through the Unity package manager UI
- Go through the setup steps as described in the Addressables-Sample project's README
- Ensure 'Split Application Binary' is checked in Player / Publishing settings
- Build the AAB
In a shell script:
bundletool="java -jar bundletool-all-1.8.0.jar"
$bundletool build-apks --bundle=$name.aab --output=$name.apks
$bundletool install-apks --apks=$name.apks
When I don't split the application binary, everything works fine! But when I do, I get the following error:
[BT:1.8.0] Error: Both modules 'base' and 'UnityDataAssetPack' contain asset entry 'assets/bin/Data/UnitySubsystems/UnityARCore/UnitySubsystemsManifest.json'.
com.android.tools.build.bundletool.model.exceptions.InvalidBundleException: Both modules 'base' and 'UnityDataAssetPack' contain asset entry 'assets/bin/Data/UnitySubsystems/UnityARCore/UnitySubsystemsManifest.json'.
at com.android.tools.build.bundletool.model.exceptions.UserExceptionBuilder.build(UserExceptionBuilder.java:58)
at com.android.tools.build.bundletool.validation.EntryClash
....
Unity version: 2020.3.15f2
Bundletool version: 1.8.0
Example of someone seeing the same issue: https://answers.unity.com/questions/1859871/unityarcore-android-app-bundle-split-binary-issue.html
The Addressable plugin's Analyze tool does not seem to mention this issue. (same warnings in both situations, never related to ARCore or Subsystems)
I can provide more information as needed. The issue is fairly simple to reproduce, the only difference is that the ARCore plugin is installed.
- Ngôn ngữ chính
- C#
- Star
- 1.5k
- Fork
- 303
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Unity-Technologies/Addressables-Sample
-
ODR doesn't seem to work anymoreĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 32/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
Unity-Technologies/Addressables-Sample#98 · 3 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
Unity-Technologies/Addressables-Sample#94 · 2 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 30/100
Unity-Technologies/Addressables-Sample#90 · 1 bình luận ·
Tất cả issue của Unity-Technologies/Addressables-Sample
Issue tương tự
-
type/automation type/tech-debt
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area-integrations
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Problem launching the programĐang mở:watch: Not Triaged dotnet-framework/svc install-deployment/subsvc
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[Tool] DirectBenchĐang mởhas-image has-readme needs-attention new-tool repo-verified
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 62/100
shanselman/TinyToolTown#844 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
-
:watch: Not Triaged Pri3
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày