Search Issue Tracker
Fixed in 2022.1.X
Fixed in 2021.2.X
Votes
0
Found in
2021.1.0a18
2021.2.0b1
Issue ID
1346794
Regression
Yes
[Android] Template variable **DIR_UNITYPROJECT** is not properly substituted when exporting a Gradle project
Repro steps:
1. Open QA attached project 'repro_1346794' and switch platform to Android
2. Open Assets -> Plugins -> Android -> mainTemplate.gradle
3. Notice the line `logger.quiet("Hi friends! The Unity project directory is **DIR_UNITYPROJECT**")`
4. Export a Gradle project
5. Open the exported project in Android Studio
6. Open the build.gradle file
Actual: The **DIR_UNITYPROJECT** variable is substituted by a blank character
Expected: The **DIR_UNITYPROJECT** variable is substituted by the directory of the project
Reproducible with: 2021.2.0a18, 2021.2.0b2, 2022.1.0a1
Not reproducible with: 2018.4.36f1, 2019.4.28f1, 2020.3.13f1, 2021.1.14f1, 2021.2.0a17
Comments (4)
-
adbourdages
Jan 19, 2022 15:38
Happening on 2021.2.7f1 - Apple Silicon. There is a workaround at https://github.com/googlesamples/unity-jar-resolver/issues/478.
-
Inc8877
Jan 15, 2022 12:12
Still reproducible in 2021.2.7 version.
-
tessellation
Jan 13, 2022 19:39
The green bar at the top says fixed in 2021.2.X but it's still happening with the latest 2021.2.7.
-
ND_22
Nov 22, 2021 06:55
Same thing happens in 2020.2.3 version.
When will it be fixed?
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 when a lot of UI elements are spawned and despawned
- Warnings are not logged in the Console window when using external code analyzers
- Errors “TLS Allocator ALLOC_TEMP_TLS, underlying allocator ALLOC_TEMP_MAIN has unfreed allocations, size 288“ appear constantly when Prefab is open
- Crash on PPtr<Shader>::operator or NullException errors spammed in console when calling Dispose() on null GraphicsBuffer with baked Reflection Probes
- “EndRenderPass: Not inside a Renderpass” and other Render Graph errors in the Player when Render Graph is enabled and Overlay UI is used
Resolution Note (fix version 2022.1):
Fixed in 2022.1.0a4