科尔多瓦android@6.2.3可以定位到SDK 26吗? [英] Can cordova android@6.2.3 target SDK 26?

查看:100
本文介绍了科尔多瓦android@6.2.3可以定位到SDK 26吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用当前正在运行cordova-android@6.2.3.我收到Google的通知,说我的应用程序当前针对的是SDK 25,而我需要针对的是SDK 26.

My app is currently running cordova-android@6.2.3. I am getting notices from Google that my app is currently targeting SDK 25 and that I need to target SDK 26.

来自Google:

From August 2018, new apps must target at least Android 8.0 (API level 26).
From November 2018, app updates must target Android 8.0 (API level 26).

我有几个月的时间来继续进行应用更新,但不久之后我将遇到麻烦.我可以简单地添加targetSdkVersion 26并期望我的应用程序正常工作吗?

I have a few months for app updates to continue to work but I am going to run into a wall here shortly. Can I simply just add targetSdkVersion 26 and expect my app to work?

<preference name="android-targetSdkVersion" value="26">

或者SDK 26是否需要最低的cordova-android基础,例如@ 6.3.x或@ 7.0.1或???通过Android Studio SDK Manager,我已经安装了SDK 26、27和28的一部分.目前,我的minSdkVersion设置为19.

Or does SDK 26 need a minimum cordova-android base like @6.3.x or @7.0.1 or ??? Via Android Studio SDK Manager i have installed SDKs 26, 27 and parts of 28. And I currently have minSdkVersion set to 19.

我只是害怕强制更新-大量的插件在主要的cordova-android @更新/升级后失败了.我试图避免使用当前应用程序的当前产品版本执行任何操作,直到可以将我的应用程序正确移植到所有最新和最出色的插件上(这是一个非常痛苦的过程,通常是漫长的过程).我正在构建一个全新的环境,但是当我进行大型转换时,我仍然需要对我的产品应用进行更改.

I am just so fearful of forcing updates - so many plugins fail after major cordova-android@ updates/upgrades. I am trying to avoid doing any of that with my current prod version of my app until I can properly port my app to all the latest and greatest plugins (a very painful and often lengthy process). I am in the process of building that whole new environment, but while I am I still need to make changes to my prod app while that mega-conversion is taking place.

我的环境:

Your system information:

Cordova CLI: 7.0.1
Gulp version:  CLI version 3.9.1
Gulp local:   Local version 3.9.1
Ionic Version: 1.3.4
Ionic CLI Version: 1.7.14
Ionic App Lib Version: 0.7.0
OS: Windows 7 SP1
Node Version: v6.10.3

推荐答案

您可以强制使用它,但是当您更改目标SDK版本时,该代码将无法像以前那样工作,因此您的应用可能会崩溃.另外,还需要更新一些插件才能正确使用SDK 26.

You can force it, but when you change the target SDK version, the code doesn't work the same way it used to, so your app might break. Also a few plugins will need to be updated to properly work with SDK 26.

当发布新的Cordova版本时,它不仅会颠覆SDK版本,还会更改所需的代码以确保其继续运行.

When a new Cordova version is released it doesn't just bump the SDK version, it also changes the required code to make sure it continues working.

因此,请尝试一下,看看一切是否正常,以及是否从更新无效的内容开始.

So give it a try and see if everything works, and if it doesn't start by updating what doesn't work.

这篇关于科尔多瓦android@6.2.3可以定位到SDK 26吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆