如何解决" Theme.AppCompat.Light"错误?

时间:2017-02-27 16:42:09

标签: c# android xamarin

我想为我的Android程序创建一个启动画面。我在Visual Studio中使用C#和Xamarin来编写我的应用程序。

我已经关注如何创建启动画面的Xamarin教程,在构建应用程序时,它给了我这个错误:

  

检索项目的父项时出错:找不到与之匹配的资源   给定名称(Theme.AppCompat.Light)

在我的Style.xml

这是我的Style.xml文件:

<?xml version="1.0" encoding="utf-8" ?>
<resources>
  <style name="MyTheme.Base" parent="Theme.AppCompat.Light">
  </style>

  <style name="MyTheme" parent="MyTheme.Base">
  </style>

  <style name="MyTheme.Splash" parent ="Theme.AppCompat.Light">
    <item name="android:windowBackground">@drawable/splash_screen</item>
    <item name="android:windowNoTitle">true</item>
  </style>
</resources>

我已经在互联网上搜索了我的问题的解决方案,但没有奏效。请不要认为它是重复的,因为我已经看到了所有的答案,但他们并没有解决我的问题。

0 个答案:

没有答案
相关问题