我在Azure上部署了一台虚拟机。我已经安装了Visual Studio 2015,Xamarin和其他移动开发工具。 我在本地计算机上做了相同的设置,以在Visual Studio的设备上测试我的应用程序Xamarin:找不到与指定名称匹配的资源(AppCompat)
唯一的区别是安装Android SDK。在我的本地机器上,我没有图像系统。
我开发我的虚拟机上的应用程序。编译期间我没有错误。 我使用Android.Support.Design,Android.Support.V4,Android.Support.V7.AppCompat,Android.Support.V7.RecyclerView(NuGet的最新版本)及其MvvmCross实现。
我想继续我的本地计算机上的应用程序的开发。 NuGet软件包已正确恢复。
当我建立的应用程序,我有一些错误:
Error Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'. Novatech.Droid D:\Sources\Novatech\Novatech.Droid\Resources\values\styles.xml
Error Error retrieving parent for item: No resource found that matches the given name 'Base.Widget.AppCompat.Button'. Novatech.Droid D:\Sources\Novatech\Novatech.Droid\Resources\values\styles.xml
Error No resource found that matches the given name: attr 'buttonStyle'. Novatech.Droid D:\Sources\Novatech\Novatech.Droid\Resources\values\styles.xml
Error No resource found that matches the given name: attr 'colorAccent'. Novatech.Droid D:\Sources\Novatech\Novatech.Droid\Resources\values\styles.xml
Error No resource found that matches the given name: attr 'colorPrimary'. Novatech.Droid D:\Sources\Novatech\Novatech.Droid\Resources\values\styles.xml
Error No resource found that matches the given name: attr 'colorPrimaryDark'. Novatech.Droid D:\Sources\Novatech\Novatech.Droid\Resources\values\styles.xml
Error No resource found that matches the given name: attr 'windowActionBar'. Novatech.Droid D:\Sources\Novatech\Novatech.Droid\Resources\values\styles.xml
Error No resource found that matches the given name: attr 'windowNoTitle'. Novatech.Droid D:\Sources\Novatech\Novatech.Droid\Resources\values\styles.xml
Error No resource found that matches the given name: attr 'windowNoTitle'. Novatech.Droid D:\Sources\Novatech\Novatech.Droid\Resources\values\styles.xml
我试图
- 通过改变'Theme.AppCompat.Light.DarkActionBar“@ android:styles/Theme.AppCompat.Light.DarkActionBar'和其他一些(android/styles)
- 改变
target=android-19
到target=android-21
在C:\Program Files (x86)\Android\android-sdk\extras\android\support\v7\appcompat\project.properties
有人能向我解释什么问题?我掉了。相同的操作系统,相同的工具,相同的SDK,相同的JDK,
请清理和重建项目, –