config.xmlファイルで自分のアプリアイコンを変更しようとしています。私はw3.orgの文書を読んでいます。私はこのコードを十分に書かなければなりません。アンドロイドコードバーアイコンを変更できません
<platform name="android">
<icon src="res/icon/logo.png" />
</platform>
は、しかし、私は、これは失敗しており、それがない作品行います
CVC-複雑-type.2.4.aを:無効なコンテンツが見つかった 要素 'アイコン' で始まります。許可-意図、 "のhttp:// www.w3.org/ns/widgets":allow-navigation、 " http://www.w3.org/ns/widgets ":プラグイン、 " http://www.w3.org/ns/widgets ":好み、" HTTP:「{ "http://www.w3.org/ns/widgets" の一つ// www.w3.org/ns/widgets":hook} 'が必要です。
ので、私はこの方法のように、それを試してみてください。
<platform name="android">
<allow-intent href="market:*" />
<allow-intent href="http://www.w3.org/ns/widgets"/>
<allow-navigation href="http://www.w3.org/ns/widgets"/>
<icon src="res/icon.png" />
</platform>
、エラーがあること保ちます。 これは私の完全なconfig.xmlのコードです:
<?xml version='1.0' encoding='utf-8'?>
<widget id="tta.kirolapp.v1" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>Kirol App v1</name>
<description>
A sample Apache Cordova application that responds to the
deviceready
event.
</description>
<author email="[email protected]" href="http://www.eclipse.org/thym">
Eclipse.org - Thym
</author>
<content src="index.html" />
<plugin name="cordova-plugin-whitelist" spec="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:*" />
<allow-intent href="http://www.w3.org/ns/widgets"/>
<allow-navigation href="http://www.w3.org/ns/widgets"/>
<icon src="res/icon.png" />
</platform>
<platform name="ios">
<allow-intent href="itms:*" />
<allow-intent href="itms-apps:*" />
</platform>
<engine name="android" spec="6.1.0" />
<preference name="Orientation" value="portrait" />
</widget>
pngの代わりにjpgファイルを試してください.... –
これは問題ではありません。 – Asier