Search Issue Tracker

Fixed in 2019.1.X

Fixed in 2018.4.X

Duplicate in 2018.4.X



Found in


Issue ID




[Android][Windows] template variable DIR_UNITYPROJECT on Windows does not escape '/' characters



Steps to reproduce:
1. Open user attached project
2. Go to Assets/Plugins/Android folder and open mainTemplate.gradle
3. Observe that the following line is added: file('**DIR_UNITYPROJECT**/Assets/Plugins/Android/mainActivity/template/AndroidManifest.xml.template')
4. Export the gradle project and take a look at the generated build.gradle file
5. Notice that the project path characters are slashes('/') instead of backslashes('\')

Expected result: template variable DIR_UNITYPROJECT on Windows should be separated with '/' characters

Rerproduced in: 2019.1.0a4, 2018.3.0b5, 2018.2.11f1, 2017.4.13f1, 2017.2.4f1

  1. Resolution Note (fix version 2018.4):

    Fixed in 2018.4.24f1

Comments (4)

  1. MdevUnity

    Sep 14, 2020 14:06

    Issue is reproducible in 2017.4.40f1
    Occured after update from 2017.4.29

    Any chance to port solution to 2017.4 ?

  2. TAabr1816

    Jun 18, 2020 17:01

    i am facing this issue in 2018.4.0f1

  3. Natsume-Shunsuke

    Feb 13, 2020 06:49

    Reproduced in: 2018.4.16f1

  4. lastcode

    Jan 16, 2020 06:38

    Rerproduced in: 2017.4.36f1

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.