我正在尝试进行构建:xbuild /t:SignAndroidPackage /p:Configuration=Release /p:AndroidSdkDirectory=/Users/administrator/Library/Android/sdk MyApp/Droid/MyApp.Droid.csproj
,但出现错误:
/Users/administrator/Documents/teamcityagent/work/f540e07669d97f37/GoBounce/Droid/obj/Release/__library_projects__/Xamarin.Android.Support.v7.AppCompat/library_project_imports/res/values-v24/values-v24.xml(2): error APT0000: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.
/Users/administrator/Documents/teamcityagent/work/f540e07669d97f37/GoBounce/Droid/obj/Release/__library_projects__/Xamarin.Android.Support.v7.AppCompat/library_project_imports/res/values-v24/values-v24.xml(2): error APT0000: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Colored'.
我为Application属性尝试了不同的选项,但结果仍然相同
在Mac上安装了几个Android SDK版本:15,19,21,23,24,26和几个android SDK构建工具。
最奇怪的是我可以在XamarinStudio中打开TC代理下载的源代码并且没有任何问题地构建项目,但在TC中我遇到了这个恼人的错误。我该怎么办?
答案 0 :(得分:0)
请尝试将Target Framework更改为Android 7