Xamarin.Android绑定时Generator.exe报错

今天绑定的时候发现Generator.exe直接退出了,后来发现

在错误列表中查看,只发现

Error MSB6006: “generator.exe”已退出,代码为 -532462766。 (MSB6006) (UMengSdkFb)

莫名奇妙,后面查看资料,发现详情可以在旁边的  构建输出 中查看,这样就找到实际的问题了

 

未经处理的异常:  MonoDroid.Generation.BindingGeneratorException: error BG4304: Invalid XPath specification: /api/package[@name='com.umeng.fb.widget']/interface=[@name='PagerSlidingTabStrip.a'] ---> System.Xml.XPath.XPathException: 表达式的计算结果必须为节点集。

       在 MS.Internal.Xml.XPath.XPathParser.ParseNodeTest(AstNode qyInput, AxisType axisType, XPathNodeType nodeType)

       在 MS.Internal.Xml.XPath.XPathParser.ParseStep(AstNode qyInput)

       在 MS.Internal.Xml.XPath.XPathParser.ParseRelativeLocationPath(AstNode qyInput)

       在 MS.Internal.Xml.XPath.XPathParser.ParsePathExpr(AstNode qyInput)

       在 MS.Internal.Xml.XPath.XPathParser.ParseUnionExpr(AstNode qyInput)

       在 MS.Internal.Xml.XPath.XPathParser.ParseMultiplicativeExpr(AstNode qyInput)

       在 MS.Internal.Xml.XPath.XPathParser.ParseAdditiveExpr(AstNode qyInput)

实际上就是节点格式错误,如果是一般‘’里面的名称拼写错误,会生成警告;如果是语法,上面是interface=,后面的=是不应该加的,这种语法错误是会直接导致generator.exe报错(IDE不会FC)。

转载于:https://www.cnblogs.com/yz1311/p/4763254.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值