我想在程序兼容性主題添加到我的Android xamarin項目,但VS是不承認的主題。我添加引用,你可以在圖片中看到。沒有資源發現,馬赫在Visual Studio中給定的名稱Theme.AppCompat.Light.NoActionBar - Xamarin
我styles.xml看起來是這樣的:
<?xml version="1.0" encoding="utf-8" ?>
<resources>
<style name="MyTheme" parent="Theme.AppCompat.Light.NoActionBar">
...
</style>
</resources>
而且我得到這個錯誤:
Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.NoActionBar'
任何幫助嗎?
嘗試刪除引用,並從文件夾中刪除添加在新鮮和問題爲我解決了。 –