Forum Xamarin Xamarin.Android

Error using Xamarin.UITest

toyinstoyins USMember ✭✭✭
edited July 2019 in Xamarin.Android

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
                            .ApkFile(@"C:\Develop\MyApp\Mobile Apps\Android\7262019\com.companyname.AppDemo.apk")

                    return ConfigureApp.iOS.StartApp();
Sign In or Register to comment.