Search Issue Tracker

Active

Under Consideration for 1.21.X

Votes

0

Found in [Package]

1.21.10

Issue ID

ADDR-3534

Regression

No

[Android] Build fails on Android Studio when the project is exported with Split Application Binary enabled

Package: Addressables

-

How to reproduce:
1. Open the attached “IN-35465” project
2. In the Edit → Build Settings check Export Project and Export for App Bundle
3. Click Export
4. After the Build is exported, open it in Android Studio
5. Connect a device to the machine and select it from the dropdown menu in Android Studio
6. Click Run and observe the Console and the device

Expected result: The Build runs properly without any errors
Actual result: The Build keeps flashing the splash screen and errors appear in the Console

Reproducible with: 1.21.10 (2020.3.47f1, 2021.3.23f1, 2022.2.15f1)
Could not test with: 1.21.10 (2023.1.0b12, 2023.2.0a10) - Internal Script Assembly errors

Built with: macOS 13.2 (Intel)

Reproducible on devices:
VLNQA00520 - Galaxy S22 USA (SM-S901U), CPU: Snapdragon 8 Gen 1 (SM8450), GPU: Adreno 730, OS: 12
VLNQA00277 - Asus ROG Phone (ASUS_Z01QD), CPU: Snapdragon 845 SDM845, GPU: Adreno 630, OS: 8.1.0
VLNQA00134 - Samsung Galaxy S8 (SM-G950F), CPU: Exynos 9 Octa 8895, GPU: Mali-G71, OS: 9.0.0
VLNQA00331 - HUAWEI P20 lite (ANE-LX1), CPU: HiSilicon Kirin 659, GPU: Mali-T830, OS: 9
VLNQA00334 - Xiaomi Mi A3 (Mi A3), CPU: Snapdragon 665 SM6125, GPU: Adreno 610, OS: 11

Errors:
AndroidPlayer "..." RemoteProviderException : TextDataProvider : unable to load from url : jar:file:///data/app/~~LnXNPtCaSsd5IZSTFn4d7Q==/com.DefaultCompany.URPSample--o7SzGmqI4Hy90Yvkcg8dg==/base.apk!/assets/aa/settings.json
UnityWebRequest result : ProtocolError : HTTP/1.1 404 Not Found
ResponseCode : 404, Method : GET
url : jar:file:///data/app/~~LnXNPtCaSsd5IZSTFn4d7Q==/com.DefaultCompany.URPSample--o7SzGmqI4Hy90Yvkcg8dg==/base.apk!/assets/aa/settings.json

AndroidPlayer "..." RuntimeData is null. Please ensure you have built the correct Player Content.

AndroidPlayer "..." OperationException : Addressables - Unable to load runtime data at location

AndroidPlayer "..." UnityEngine.AddressableAssets.InvalidKeyException: Exception of type 'UnityEngine.AddressableAssets.InvalidKeyException' was thrown. No Location found for Key=SampleScene

AndroidPlayer "..." OperationException : ChainOperation failed because dependent operation failed
UnityEngine.AddressableAssets.InvalidKeyException: Exception of type 'UnityEngine.AddressableAssets.InvalidKeyException' was thrown. No Location found for Key=SampleScene

AndroidPlayer "..." NullReferenceException: Object reference not set to an instance of an object

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.