简体   繁体   English

“ Hello Xamarin Forms” Android应用程序-如何使其针对JellyBean 18(4.3)工作?

[英]'Hello Xamarin Forms' Android App - how to get it to work targeting JellyBean 18 (4.3)?

I need to target the Android JellyBean (4.3) platform for a project. 我需要针对一个项目定位Android JellyBean (4.3)平台。 Having Xamarin Forms installed, I download the 4.3 SDK , create a new Xamarin Forms PCL project. 安装Xamarin Forms之后,我下载了4.3 SDK ,创建了一个新的Xamarin Forms PCL项目。 Right-click the .Droid project and set Compile, Minimum and Target Android versions to Android 4.3 ( API Level 18 - Jelly Bean ). 右键单击.Droid项目,然后将“编译”,“最低”和“目标Android”版本设置为Android 4.3( API Level 18 - Jelly Bean )。 Hit build and get this compilation error: 点击build并得到以下编译错误:

Error 1 No resource identifier found for attribute 'touchscreenBlocksFocus' in package 'android' E:\\Users\\Toby\\Documents\\Visual Studio 2013\\Projects\\M3SLM10\\TestM3\\M3slm10\\M3slm10\\M3slm10.Droid\\obj\\Debug\\resourcecache\\2FCCE52AFB6F854A55FA951FA3C83F6E\\res\\layout\\abc_screen_toolbar.xml 28 M3slm10.Droid 错误1在包'android'中找不到属性'touchscreenBlocksFocus'的资源标识符E:\\ Users \\ Toby \\ Documents \\ Visual Studio 2013 \\ Projects \\ M3SLM10 \\ TestM3 \\ M3slm10 \\ M3slm10 \\ M3slm10.Droid \\ obj \\ Debug \\ resourcecache \\ 2FCCE52AFB6F854A55FA951FA3C \\ res \\ layout \\ abc_screen_toolbar.xml 28 M3slm10.Droid

How do I resolve this error? 如何解决此错误?

You should only be setting your Minimum SDK to API 18. Your Compile SDK or TargetFramework should be set to the latest API installed (API 23). 您只应将Minimum SDK设置为TargetFramework 。您的Compile SDKTargetFramework应该设置为安装的最新API(API 23)。 That way any resources can be compiled for Xamarin.Forms. 这样,可以为Xamarin.Forms编译任何资源。

There's a great resource on this here: 这里有很多资源:

http://redth.codes/such-android-api-levels-much-confuse-wow/ http://redth.codes/such-android-api-levels-much-confuse-wow/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在Android 4.3 API 18中获取绑定设备? - How to get Bonded Devices in Android 4.3 API 18? Xamarin Forms(Android)StartForegroundService不起作用(应用程序崩溃) - Xamarin Forms (Android) StartForegroundService not work (App crash) 如何在Android XAML应用程序(Xamarin.Forms)中获得加速度计值 - How to get Accelerometer value in Android XAML App(Xamarin.Forms) Android:如何更改JellyBean中的状态栏颜色(API 18) - Android: How to change the status bar color in JellyBean (API 18) 以 ZE84E30B9390CDB64DB6DB2C9AB8784 为目标时,将 PDF 保存在 Xamarin Forms 中 - Save PDF in Xamarin Forms when targeting Android 11 JellyBean上的Android App性能问题 - Android App Perfomance Issues on JellyBean 在Android 4.3 Jellybean中,仅使用ping验证Internet连接失败 - Verifying internet connectivity with a ping only fails in Android 4.3 Jellybean 如何使用EditText,IME Action,textMultiLine来为JellyBean工作 - How to get EditText, IME Action, textMultiLine, to work for JellyBean 适用于Android的Xamarin Forms in App Billing - Xamarin Forms In app billing for Android 如何使PhoneGap 3.5 Android Hello World在Eclipse中工作? - How to get PhoneGap 3.5 Android Hello World to work in Eclipse?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM