And*_*era 16 android xamarin android-support-library
我在Azure上部署了一个虚拟机.我已经安装了Visual Studio 2015,Xamarin和其他移动开发工具.我在本地计算机上进行了相同的设置,以便从Visual Studio在我的设备上测试我的应用程序
唯一的区别是安装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
Run Code Online (Sandbox Code Playgroud)
我试过了
target=android-19以target=android-21在C:\Program Files (x86)\Android\android-sdk\extras\android\support\v7\appcompat\project.properties有人可以向我解释一下这是什么问题吗?我放弃了 相同的操作系统,相同的工具,相同的SDK,相同的JDK,
小智 13
我在Mac上的Xamarin Studio遇到了同样的问题.我为解决这个问题所做的就是更新NuGet包Xamarin.Android.Support.v7.AppCompat.我认为您也可以使用相同的方法在Visual Studio上修复您的问题.
在我的情况下,"最低Android版本" API 21,但"目标Android版本"是"使用目标框架版本(API 23)",但它没有提前工作,然后我将该版本指向API 21和突然间,它开始按预期工作.
后来我把最低Android版本的API 21和目标Android版本更改为"使用目标框架版本(API 23)"
我从 Xamarin 组件切换到 NuGet 包,现在它可以工作了。MvvmCross 为其依赖项安装了最新版本的软件包 Nuget (23.3.0)(MvvmCross.Droid.Support.V4、MvvmCross.Droid.Support.V7.AppCompat、MvvmCross.Droid.Support.V7.Preference ...)。以及之前使用过的组件。
我还必须从虚拟机复制“C:\Users\andres\AppData\Local\Xamarin”文件夹。
在 Visual Studio 中,我没有收到有关组件可用更新的通知。
| 归档时间: |
|
| 查看次数: |
32065 次 |
| 最近记录: |