简体   繁体   English

离子 5 和电容器目标 android 4.4 (API 19)

[英]Ionic 5 and Capacitor target android 4.4 (API 19)

I have created an app with ionic5 and capacitor.我用 ionic5 和电容器创建了一个应用程序。 I'm jutst able to install it in Androids with APIs equal or bigger than 21. Is it possible to some how install it in Android 4.4?我只是能够将它安装在 API 等于或大于 21 的 Android 中。是否有可能在 Android 4.4 中安装它?

I googled and found out that if it was created with Cordova, it was possible to make some changes in config.xml.我google了一下,发现如果它是用Cordova创建的,可以对config.xml进行一些更改。 But couldn't find something about Capacitor.但是找不到关于电容器的东西。 Also I found this article about converting Cordova app to capacitor and in it is mentioned that in case I convert Cordova to Cpacitor, I can make some changes in capacitor.config.js file somethign like this:我还发现了这篇关于将 Cordova 应用程序转换为电容器的文章,其中提到如果我将 Cordova 转换为 Cpacitor,我可以在电容器.config.js 文件中进行一些更改,如下所示:

// capacitor.config.json
{
  "cordova": {
    "preferences": {
      "ScrollEnabled": "false",
      "android-minSdkVersion": "19",
   }
}

I tried that but again I was not able to install my app in Android 4.4 and got this error: INSTALL_FAILED_OLDER_SDK我试过了,但我再次无法在 Android 4.4 中安装我的应用程序并收到此错误:INSTALL_FAILED_OLDER_SDK

I like to know is it possible to achieve this goal with Capacitor or it just work in Corcova?我想知道是否有可能使用 Capacitor 来实现这个目标,或者它只是在 Corcova 中工作? If it just works in Crdova, can I change my app from Capacitor to Cordova?如果它只适用于 Crdova,我可以将我的应用程序从 Capacitor 更改为 Cordova 吗? I think it is necessarily to have asolution for that because around 4% of Android users, use Android 4.4 which is not less.我认为有必要为此提供解决方案,因为大约 4% 的 Android 用户使用 Android 4.4 不少。

No, it's not possible, Capacitor only supports Android 5+ (API 21+)不,不可能,电容器只支持 Android 5+ (API 21+)

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM