Search Issue Tracker
Fixed
Fixed in 6000.0.69f1, 6000.3.10f1, 6000.4.0b10, 6000.5.0a8
Votes
0
Found in
6000.0.1f1
6000.1.0a1
6000.2.0a1
6000.3.0a1
6000.4.0a1
6000.5.0a7
Issue ID
UUM-134142
Regression
No
[Android][Gradle] CompileSdkVersion is incorrectly deprecated
After the AGP upgrade to 8+, I incorrectly deprecated CompileSdkVersion, confused by the deprecation of other {{{}Version{}}} attributes such as {{targetSdkVersion}} and {{{}minSdkVersion{}}}.
Google soft deprecated the argument in AGP 8 and then brought it back in 9, so there's no need to force users to rename it.
In Unity 6.5 (AGP 9), compileSdk is incorrectly deprecated when it's still working. On Unity 6.0-6.4, it's compileSdkVersion the one incorrectly deprecated. Both should be accepeted as valid in all versions.
Steps to reproduce:*
- Open an empty project
- Create a custom Gradle Template
* Publishing Settings > Main Gradle Template
- Open the generated .gradle file in {{Plugins/Android/}}
- Replace {{compileSdk}} with {{compileSdkVersion}}
- {{Build}}
Actual results:* Dialog appears hinting you to rename compileSdkVersion to compileSdk
Expected results: Dialog should not appear, compileSdkVersion is perfectly valid attribute in AGP 8.
Reproducible with versions: 6000.4, 6000.3, 6000.2, 6000.1, 6000.0
Not reproducible with versions: 6000.5 (fixed after AGP upgrade to 9.0)
Tested on (OS):
Relevant PRs:
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Memory leak warnings are thrown when a GameObject has an Audio Source with ARC and Rigidbody components
- The element selection window is empty until anything is typed into the search bar when adding an element in the Strip Custom Comonents list in Multiplayer Roles
- References to files from another project are not released when loading a Layout with a Locked Project window
- “InvalidOperationException” and “NullReferenceException” errors are thrown when clicking inside a Tile Palette with the Tile Palette overlay and Tile Palette Edit enabled
- Text input fields not working when using Android with Bluetooth Keyboard
Resolution Note:
Fixed in 6000.5.0a8
Resolution Note (fix version 6000.5.0a8):
Fixed in 6000.5.0a8
Resolution Note (fix version 6000.4.0b10):
Fixed in 6000.4.0b10
Resolution Note (fix version 6000.3.10f1):
Fixed in 6000.3.10f1
Resolution Note (fix version 6000.0.69f1):
Fixed in 6000.0.69f1