我刚刚将我的 Visual Studio 2015 更新为最新的 Tools for Apache Cordova Update 8.1。我现在无法选择任何模拟器,因为调试目标下拉菜单已禁用。我怎样才能重新启用它?
我已经尝试在选项下“清除 Cordova 缓存”并重建解决方案,但它仍然被禁用。在从 Update 8 更新到 8.1 之前,一切正常。
更新
我尝试修复 VS 2015,然后卸载 TACO,重新安装 TACO Update 8.1。现在,当我加载 Cordova 项目时,Debug Target下拉菜单已启用,但列表中只有 Google Android Emulator 和 Ripple 模拟器。我无法添加任何 VS Android 模拟器。加载项目后,我收到此错误:
查看ActivityLog.xml,最后,我看到了这个错误:
<entry>
<record>765</record>
<time>2016/04/19 14:55:50.168</time>
<type>Error</type>
<source>VisualStudio</source>
<description>CreateInstance failed for package [ApacheCordovaToolsPackage][Exception has been thrown by the target of an invocation.]:{ at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
 at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
 at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
 at System.Activator.CreateInstance(Type type, Boolean nonPublic)
 at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)
 at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
 at System.Activator.CreateInstanceFromInternal(String assemblyFile, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo)
 at System.AppDomain.CreateInstanceFrom(String assemblyFile, String typeName)}</description>
<guid>{317A330D-8757-4084-8526-E8A1D165433D}</guid>
<hr>80131604</hr>
<errorinfo>Exception has been thrown by the target of an invocation.</errorinfo>
</entry>
我尝试了迈克尔关于运行devenv
命令的建议,但我仍然遇到同样的错误。
任何帮助将不胜感激。