Cordova Target Android
我正在创建一个新的科尔多瓦项目。创建项目后,当我尝试使用命令添加平台时 cordova平台添加android 我得到了结果 正在添加android项目…Cordova Target Android,android,cordova,phonegap-build,Android,Cordova,Phonegap Build,我正在创建一个新的科尔多瓦项目。创建项目后,当我尝试使用命令添加平台时 cordova平台添加android 我得到了结果 正在添加android项目… 为Android平台创建Cordova项目: 路径:platforms\android 软件包:com.gofindy.android 名称:GofindyApp 活动:主要活动 Android目标:Android-22 正在复制模板文件… 使用cordova创建的Android项目-android@4.0.0 为android安装“cordo
为Android平台创建Cordova项目:
路径:platforms\android
软件包:com.gofindy.android
名称:GofindyApp
活动:主要活动
Android目标:Android-22
正在复制模板文件…
使用cordova创建的Android项目-android@4.0.0
为android安装“cordova插件白名单” 尽管我已经删除了安卓api22,但它仍然在创建安卓目标:安卓-22 在添加android平台时,如何将android目标更改为android-19 我已经尝试过(添加两行指定sdk版本):
Config.xml:
<?xml version='1.0' encoding='utf-8'?>
<widget id="com.gofindy.android" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>GofindyApp</name>
<description>
A sample Apache Cordova application that responds to the deviceready event.
</description>
<author email="dev@cordova.apache.org" href="http://cordova.io">
Apache Cordova Team
</author>
<preference name="android-minSdkVersion" value="16"/> //added by me
<preference name="android-targetSdkVersion" value="19"/> //added by me
<content src="index.html" />
<plugin name="cordova-plugin-whitelist" version="1" />
<access origin="*" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
<platform name="android">
<allow-intent href="market:*" />
<preference name="android-targetSdkVersion" value="19 " />
</platform>
<platform name="ios">
<allow-intent href="itms:*" />
<allow-intent href="itms-apps:*" />
</platform>
</widget>
戈芬迪亚普
响应deviceready事件的Apache Cordova应用程序示例。
阿帕奇科尔多瓦团队
//我加的
//我加的
但当我创建一个项目并添加android平台时,仍然会显示android目标:android-22
即使android清单反映了这一变化。您是否设法修复了它?我也有同样的问题……这里的答案是尝试使用较低版本的Cordova: