我正在使用Ionic 3创建一个android应用程序,当我尝试上传到Playstore时,当我检查我的project.property target = android-26的值时,我得到了我的应用程序针对api 25的错误,与我相同androidManifest.xml targetSdkVersion的值= 26,如何再次设置目标。以下是我的离子信息
离子:
ionic(Ionic CLI):4.4.0(C:\ Users \ IETECH \ AppData \ Roaming \ npm \ node_modules \ ionic 离子框架:离子角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个插件)
系统:
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
答案 0 :(得分:0)
您是否使用特定的Android版本进行构建?您已将哪些版本安装到Android Studio?也许您使用自动提供的版本进行了构建,并且在配置中的某个位置指定了另一个版本。无论如何不能用该信息回答。在构建应用程序时,您不会出错吗?
答案 1 :(得分:0)
您需要安装android platform 26,然后在Ionic 3应用程序文件夹的android:targetSdkVersion="26"
文件的<uses-sdk>
标签中更改platforms/android/AndroidManifest.xml
。
然后,您应该能够创建新的发行版并将应用程序成功上传到Play商店。
或者,如果将cordova升级到最新版本,则新的cordova版本将使用AndroidManifest.xml
创建android:targetSdkVersion="26"
文件。
答案 2 :(得分:0)
在项目的根文件夹中打开config.xml,并在以下部分中相应地调整版本:
<svg viewBox="0 0 120 120" width=120 height=120 version="1.1" xmlns="http://www.w3.org/2000/svg">
<defs>
<filter id="81512f4465f92d314502bc64-alpha">
<feColorMatrix type="saturate" values="0" result="desat"></feColorMatrix>
<feComponentTransfer>
<feFuncR type="discrete" tableValues="0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1"></feFuncR>
<feFuncG type="discrete" tableValues="0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1"></feFuncG>
<feFuncB type="discrete" tableValues="0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1"></feFuncB>
</feComponentTransfer>
</filter>
<mask id="81512f4465f92d314502bc64-grungeMask" x="0" y="0" width="180" height="180" maskUnits="objectBoundingBox">
<image x="0" y="0" width="180" height="180" filter="url(#81512f4465f92d314502bc64-alpha)" href="/grunge-mask.png"></image>
</mask>
<clipPath id="81512f4465f92d314502bc64-cutMiddle">
<rect x="0" y="0" width="120" height="45"></rect>
<rect x="0" y="75" width="120" height="45"></rect>
</clipPath>
<path id="81512f4465f92d314502bc64-curveAbove" d="M 25,45 A 40 40 0 0 1 95,45" stroke="none" fill="none"></path>
<path id="81512f4465f92d314502bc64-curveBelow" d="M 25,75 A 40 40 0 0 0 95,75" stroke="none" fill="none"></path>
<mask id="81512f4465f92d314502bc64-mainText">
<rect width="100%" height="100%" fill="#fff" x="0" y="0"></rect>
<text x="50%" y="50%" fill="#000" dominant-baseline="middle" text-anchor="middle">Text Center</text>
</mask>
</defs>
<g mask="url(#grungeMask)">
<circle class="badge-circle-outer-big" cx="60" cy="60" r="50" stroke="black" stroke-width="3" fill="none" clip-path="url(#81512f4465f92d314502bc64-cutMiddle)"></circle>
<circle class="badge-circle-outer-small" cx="60" cy="60" r="47" stroke="black" stroke-width="1" fill="none" clip-path="url(#81512f4465f92d314502bc64-cutMiddle)"></circle>
<circle class="badge-circle-inner-small" cx="60" cy="60" r="26" stroke="black" stroke-width=".5" fill="none" clip-path="url(#81512f4465f92d314502bc64-cutMiddle)"></circle>
<circle class="badge-circle-inner-big" cx="60" cy="60" r="24" stroke="black" stroke-width="1.5" fill="none" clip-path="url(#81512f4465f92d314502bc64-cutMiddle)"></circle>
<text dominant-baseline="middle" text-anchor="middle" class="badge-circle-text">
<textPath startOffset="50%" href="#81512f4465f92d314502bc64-curveAbove">Text Above</textPath>
</text>
<text dominant-baseline="middle" text-anchor="middle" class="badge-circle-text">
<textPath startOffset="50%" href="#81512f4465f92d314502bc64-curveBelow">Text Belog</textPath>
</text>
<path d="M 0,45 L 120,45 L 110,60 L 120,75 L 0,75 L 10,60" fill="black" class="badge-main" mask="url(#81512f4465f92d314502bc64-mainText)"></path>
</g>
</svg>
基本上将值更新为最小值栏。