Search Issue Tracker

Fixed in Unity 2019.2

Votes

0

Found in

Issue ID

1120542

Regression

Yes

[Android] ArgumentException errors thrown when the SDK build-tools directory contains a subdirectory that has an unexpected name

Mobile

-

-

Priority: 7Not yet prioritized for a release

-

Severity: 1Crash, freeze, data loss, work stops

Steps to reproduce:
1. Create a directory named "xyz" under Sdk/build-tools/ (e.g. C:\\android-sdk\build-tools\xyz)
2. Open any project
3. Open Build Settings window
4. Switch to Android
5. Press Build

Expected result: a project is built without any errors
Actual result: Android build settings window is broken, ArgumentException errors flood the console and/or builds fail with ArgumentException errors

Reproducible with: 2019.2.0a1, 2019.2.0a2, 2019.2.0a3 (d51e0e10f042)
Not reproducible with: 2018.3.3f1, 2019.1.0b1

Notes:
- log attached: error.txt
- tested on Linux and Windows
- any dir name that does not follow the standard SDK version naming (e.g. 23.0.0) will cause the bug to reproduce (e.g. '1', 'a', 'xyz', 'android-Q', etc.)
- in Edit/Preferences/External Tools, enabling "Android SDK Tools Installed with Unity" does not change anything

All about bugs

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