简体   繁体   English

从项目中检索父项时出错

[英]Error retrieving parent from item

This may be related to this or this . 这可能与这个这个

But it seems like those solutions didn't solve this error for me. 但似乎这些解决方案无法为我解决此错误。

This is my error 这是我的错误 在此处输入图片说明

This is the XML 这是XML

<?xml version="1.0" encoding="UTF-8" ?>
<resources>

  <style name="MyTheme" parent="Theme.AppCompat.Light.NoActionBar">
    <item name="colorPrimary">#2196F3</item>
    <item name="drawerArrowStyle">@style/MyDrawerArrowStyle</item>
  </style>

  <style name="MyDrawerArrowStyle" parent="Widget.AppCompat.DrawerArrowToggle">
    <item name="color">#F5F5F5</item>
    <item name="spinBars">true</item>
  </style>

</resources>

Yes I've got the references to the Xamarin.Android.Support.v4 and Xamarin.Android.Support.v7.AppCompat dll's. 是的,我已经引用了Xamarin.Android.Support.v4Xamarin.Android.Support.v7.AppCompat dll。

Really weird because when my project is in Debug mode it runs without giving me any error. 真的很奇怪,因为当我的项目处于Debug mode它运行时没有给我任何错误。 This error only occurs when it's in Release mode and I try to create an APK file for mobile testing. 仅当它处于Release mode并且我尝试创建APK文件进行移动测试时,才会发生此错误。 在此处输入图片说明

使用最新平台Android 6.O构建您的应用

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM