package android.support.v7.internal.widget.ActivityChooserModel does not exist android.support.v7 – Xamarin

最近重新安裝電腦後又再次開始學習Xamarin Form

第一個練習當然是學習寫一個簡單的Map程式來看看
誰不知..當我安裝Xamarin.Forms.Maps 之後Build的時候便出現了以下的錯誤信息..

” Severity Code Description Project File Line Suppression State
Error error: package android.support.v7.internal.widget does not exist
private native void n_onInflate (android.support.v7.internal.widget.ViewStubCompat p0, android.view.View p1); XamarinDemo.Droid C:\Users\yauch\Documents\GitHub\XamarinDemo\XamarinDemo\XamarinDemo.Droid\obj\Debug\android\src\mono\android\support\v7\internal\widget\ViewStubCompat_OnInflateListenerImplementor.java 33

解決方法
我們只要Clean Solution 之後再Build便可以了
Visual Studio- Clean Solution
Hope you find it useful

Leave a Reply