离子应用程序以API级别25为目标,并且必须至少以API级别26为目标 [英] Ionic application targets API level 25 and must target at least API level 26
问题描述
我正在使用Ionic 3创建一个android应用程序,当我尝试上传到Playstore时,当我检查我的project.property target = android-26的值时,我得到了我的应用程序针对api 25的错误,与我相同androidManifest.xml targetSdkVersion的值= 26,如何再次设置目标.以下是我的离子信息
I am creating an android application using ionic 3, when i attempt to upload to playstore i get an error that my app targets api 25, when i check my project.property the value of target =android-26, same with my androidManifest.xml the value of targetSdkVersion = 26, how do i set the target again. Below is my ionic info
离子:
ionic(Ionic CLI):4.4.0(C:\ Users \ IETECH \ AppData \ Roaming \ npm \ node_modules \ ionic离子框架:离子角3.9.2@ ionic/app-scripts:3.1.8
ionic (Ionic CLI) : 4.4.0 (C:\Users\IETECH\AppData\Roaming\npm\node_modules\ionic) Ionic Framework : ionic-angular 3.9.2 @ionic/app-scripts : 3.1.8
科尔多瓦:
cordova(Cordova CLI):未安装Cordova平台:不可用Cordova插件:cordova-plugin-ionic-keyboard 2.0.5,cordova-plugin-ionic-webview 1.1.1(和其他8个插件)
cordova (Cordova CLI) : not installed Cordova Platforms : not available Cordova Plugins : cordova-plugin-ionic-keyboard 2.0.5, cordova-plugin-ionic-webview 1.1.1, (and 8 other plugins)
系统:
Android SDK工具:26.1.1(C:\ Program Files(x86)\ Android \ android-sdk)NodeJS:v8.12.0(C:\ Program Files \ nodejs \ node.exe)npm:6.4.1操作系统:Windows 10
Android SDK Tools : 26.1.1 (C:\Program Files (x86)\Android\android-sdk) NodeJS : v8.12.0 (C:\Program Files\nodejs\node.exe) npm : 6.4.1 OS : Windows 10
推荐答案
在项目的根文件夹中打开config.xml,并在以下部分中相应地调整版本:
Open your config.xml in the root folder of the project and adjust version accordingly in the following section:
<platform name="android">
<preference name="android-minSdkVersion" value="25" />
...
基本上将值更新为最小值栏.
Basically update the value to what your min bar is.
这篇关于离子应用程序以API级别25为目标,并且必须至少以API级别26为目标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!