我在运行或调试 Xmarin UITest 项目时遇到错误。
我机器上的配置是:
- Windows 7 专业版(服务包 1)
- Visual Studio 企业版 2015
我尝试解决此错误的步骤是……(全新安装 Windows 7 SP1 后)
- 更新的 JDK
- 仔细检查 JDK 和 SDK 路径。
- 在环境变量中仔细检查了 ANDROID_HOME 路径。
- 更新了安卓 SDK。
- 应用 Xamarin 更新。
- 应用了所有可用的 Windows 7 更新。
- 清理解决方案并重建它。
Error / Stack Trace
Test Name: AppLaunches
Test FullName: ZeroChaosUITest.Tests(Android).AppLaunches
Test Source: C:\SAJID SIDI\Xamarin\Projects\ZeroChaosUITest-master\ZeroChaosUITest\Tests.cs : line 30
Test Outcome: Failed
Test Duration: 0:00:00.031
Result StackTrace:
at System.Security.Util.StringExpressionSet.CanonicalizePath(String path, Boolean needFullPath)
at System.Security.Util.StringExpressionSet.CreateListFromExpressions(String[] str, Boolean needFullPath)
at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, AccessControlActions control, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList)
at System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess access, String[] pathList, Boolean checkForDuplicates, Boolean needFullPath)
at System.IO.DirectoryInfo.Init(String path, Boolean checkHost)
at System.IO.DirectoryInfo..ctor(String path)
at Xamarin.UITest.Shared.Dependencies.AndroidSdkTools.BuildAndroidSdkDependencies(PotentialLocation potentialLocation)
at Xamarin.UITest.Shared.Dependencies.AndroidSdkFinder.ResolveDependencies(PotentialLocation location)
at System.Linq.Enumerable.WhereSelectListIterator2.MoveNext() at System.Linq.Buffer1..ctor(IEnumerable1 source) at System.Linq.Enumerable.ToArray[TSource](IEnumerable1 source)
at Xamarin.UITest.Shared.Dependencies.AndroidSdkFinder.GetTools()
at Xamarin.UITest.Shared.Android.DefaultAndroidFactory.BuildExecutor(IProcessRunner processRunner)
at Xamarin.UITest.Android.AndroidApp..ctor(IAndroidAppConfiguration appConfiguration, IExecutor executor)
at Xamarin.UITest.Configuration.AndroidAppConfigurator.StartApp(AppDataMode appDataMode)
at ZeroChaosUITest.AppInitializer.StartApp(Platform platform) in C:\SAJID SIDI\Xamarin\Projects\ZeroChaosUITest-master\ZeroChaosUITest\AppInitializer.cs:line 26
at ZeroChaosUITest.Tests.BeforeEachTest() in C:\SAJID SIDI\Xamarin\Projects\ZeroChaosUITest-master\ZeroChaosUITest\Tests.cs:line 25
Result Message: SetUp : System.NotSupportedException : The given path's format is not supported. .