Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Error using Xamarin.UITest

$
0
0

I'm trying to conduct a Xamarin.UITest and I'm getting this error message.
Message: SetUp : System.Exception : The running adb server is incompatible with the Android SDK version in use by UITest:
C:\Program Files (x86)\Android\android-sdk

You probably have multiple installations of the Android SDK and should update them or ensure that your IDE, simulator and shell all use the same instance. The ANDROID_HOME environment variable can effect this.

I googled and could not find any adequate solution.

Any Ideas? I also tried removing a reference to the Xamarin.Android App but did not work either.

This is what I have in my AppInitializer.

            public static IApp StartApp(Platform platform)
                {
                    if (platform == Platform.Android)
                    {
                        //return ConfigureApp.Android.StartApp();
                        return ConfigureApp
                            .Android
                            .ApkFile(@"C:\Develop\MyApp\Mobile Apps\Android\7262019\com.companyname.AppDemo.apk")
                            .StartApp();
                    }

                    return ConfigureApp.iOS.StartApp();
                }

Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>