简体   繁体   English

离子cordova中的API级别不匹配获取APK

[英]API level mismatch in ionic cordova to get APK

I have Created the android application using ionic and angularjs.when i try to build and get apk following error appers.我已经使用 ionic 和 angularjs 创建了 android 应用程序。当我尝试构建并获取 apk 后出现错误时。 !{this is the error} ] 1 . !{这是错误} ] 1 to resolve this error i have done some changes为了解决这个错误,我做了一些改变

1.in config file i change the minsdk and trget sdk values to api level 23 1.在配置文件中,我将 minsdk 和 trget sdk 值更改为 api 级别 23

2.in gradle.build file change the sdkversion to api level 23. 2.在 gradle.build 文件中将 sdkversion 更改为 api 级别 23。

but nothing changes.i need to get apk for apilevel 23(MAshmillow).但没有任何变化。我需要为 apilevel 23(MAshmillow)获取 apk。

how to solve this error..?如何解决这个错误..? 这是我改变的等级 这是我更改的配置文件。

Find the sql path and execute the following找到sql路径,执行如下在此处输入图像描述

./sdkmanager.bat --licenses

After this you can review each license and accept them accordingly.在此之后,您可以查看每个许可证并相应地接受它们。

Edit: To add api version do the following:编辑:要添加 api 版本,请执行以下操作:

<preference name="android-minSdkVersion" value="23" />

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

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