Xamarin create application for android 4 (VS2017 15.5.5)

后端 未结 1 1951
猫巷女王i
猫巷女王i 2020-12-21 18:31

im trying to create an android application with xamarin (VS 2017 15.5.5). The default settings (xamarin cross-platform - blank app / .net standard, targeting android 7) gene

相关标签:
1条回答
  • 2020-12-21 18:32

    The latest version of Forms needs to compile against Android 8.0 (at least). In order to compile against API level 15, you would need to use a very old version of Forms.

    Instead, compile against the latest API and set your min. and target APIs levels to 4.0.3

    Under General setting, set the target framework:

    • Target framework: Use Latest installed platform (8.1)

    Under Android Application:

    • Min Android version: Override - Android 4.0.3 (API level 15)

    • Target Android version: Override - Android 4.0.3 (API level 15)

    This results in a manifest that includes:

    <uses-sdk android:minSdkVersion="15" android:targetSdkVersion="15" />
    

    Note: You will need to test against an Android 4.0.3 device/emualtor to ensure that you are not using APIs from later versions of the Android SDK.

    0 讨论(0)
提交回复
热议问题