我最近在我的電腦上安裝Win10後重新安裝了Xamarin。Xamarin - 沒有找到匹配的資源
與往常一樣,安裝Xamarin和推出基本Xamarin.Forms應用程序將無法正常工作,你需要得到一些麻煩,這裏是我的:
沒有資源發現在給定名稱匹配:ATTR「 windowNoTitle」。
找不到與給定名稱匹配的資源:attr'colorPrimary'。
找不到與給定名稱相匹配的資源:attr'windowActionBar'。
檢索項目的父項時出錯:找不到與給定名稱'Theme.AppCompat.Light.DarkActionBar'匹配的資源。 找不到與給定名稱相匹配的資源:attr'colorPrimaryDark'。
找不到與給定名稱匹配的資源:attr'colorAccent'。
找不到與給定名稱匹配的資源:attr'colorAccent'。
找不到與給定名稱匹配的資源:attr'windowActionModeOverlay'。 檢索項目的父項時出錯:找不到與給定名稱'Theme.AppCompat.Light.Dialog'匹配的資源。
我讀過幾個主題,說你需要的最小SDK版本改成這樣:
<uses-sdk android:targetSdkVersion="23" android:minSdkVersion="23" />
並在Android SDK中管理所有的數據包是最新的(這是太大的情況下)。
但我仍然得到錯誤。
任何提示爲了讓我的基本應用程序能夠正常工作,需要改變什麼?
編輯 styles.xml存在,看起來像:
<?xml version="1.0" encoding="utf-8" ?>
<resources>
<style name="MainTheme" parent="MainTheme.Base">
</style>
<!-- Base theme applied no matter what API -->
<style name="MainTheme.Base" parent="Theme.AppCompat.Light.DarkActionBar">
<!--If you are using revision 22.1 please use just windowNoTitle. Without android:-->
<item name="windowNoTitle">true</item>
<!--We will be using the toolbar so no need to show ActionBar-->
<item name="windowActionBar">false</item>
[...]
在我與Xamarin合作期間,我遇到了很多「無理由」的錯誤。起初我試圖自己解決它們(檢查Xamarin論壇,google),但最終REINSTALLATION解決了它們。 – PeMaCN
我已經重新安裝Xamarin ... –