locked
Xamarin.UITest - Repl is not working RRS feed

  • Question

  • User395396 posted

    Hi all, I am trying to run : app.Repl(); in my Xamarin.UITest but it is not working. Console window is opened, but error is thrown, saying that there are illegal characters in sdk path. But Sdk path is correct and everything (apart of Repl) is working fine. In console it seems like there is one more quote at the end of the path, but I have no idea where it is coming from. I tried to search for the error, and seems like it was not really solved. I tried to upgrade/downgrade my NUnit, Xamarin.UITest from Nuget packages, but I still got same error.

    Any suggestions?

    Thanks

    Tuesday, June 30, 2020 7:15 AM

Answers

  • User382871 posted

    Here are similar issue links, hope it'll help you. https://forums.xamarin.com/discussion/102634/where-does-xamarin-ui-test-repl-take-android-sdk-path https://forums.xamarin.com/discussion/113851/repl-tool-does-not-work-on-higher-xamarin-uitest-versions-for-windows

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Tuesday, June 30, 2020 8:50 AM

All replies

  • User382871 posted

    System.ArgumentException: Illegal characters in path There is a '.' in the path from \lukas.bajus\, which shuold be illegal. Try to remove the point or change it to a '_' instead.

    Tutorial: https://developer.android.com/studio/command-line/variables#envar

    Tuesday, June 30, 2020 8:06 AM
  • User395396 posted

    @Jarvan Thanks for the reply. I don't think I can change it like that. As it is an company laptop and users are created by company. I might try to install Sdk on some other place.

    But where do I specify to Repl, where to look for sdk? I thought that problem is in extra quote (") at the end of the path, that it can not create some directory, because it is looking for path: "C:\Users\lukas.bajus\AppData\Local\Android\Sdk"". And because of that extra quote It can not find it. But I didn't specify that path anywhere. And in System environment variables %ANDROID_HOME is set correctly.

    Tuesday, June 30, 2020 8:14 AM
  • User382871 posted

    Here are similar issue links, hope it'll help you. https://forums.xamarin.com/discussion/102634/where-does-xamarin-ui-test-repl-take-android-sdk-path https://forums.xamarin.com/discussion/113851/repl-tool-does-not-work-on-higher-xamarin-uitest-versions-for-windows

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Tuesday, June 30, 2020 8:50 AM
  • User395396 posted

    Thank you.

    I tried both in the past and still had the same issue. But just now I tried again one with renaming "Sdk" folder and then reverting back to original name and it worked.

    Tuesday, June 30, 2020 9:20 AM