Click here to Skip to main content
16,016,557 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I've been facing this issue,"Error 209 ...\bld\Debug\platforms\android\cordova\build.bat: Command failed with exit code 8"
Please correct me. I appreciate any help. Thanks.
Here is my plugin.xml file.


XML
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
    xmlns:android="http://schemas.android.com/apk/res/android"
    id="com.myplugin.Scanner"
    version="1.0.0">

	<name>Laser Scanner</name>
	 
	<description>
		This plugin allows laser barcode scanning
	</description>
	
	<license>MIT</license>

	<engines>
		<engine name="cordova" version=">=3.6.0" />
	</engines>  

	<js-module src="www/Scanner.js" 	name="Scanner">
        <clobbers target="Scanner" />
    </js-module>

   <platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="Scanner">
<param name="android-package" value="com.myplugin.Scanner"/>
</feature>
</config-file>
<config-file target="AndroidManifest.xml" 	parent="/manifest/application">
	<activity 	android:name="com.adlink.sample.SDK.ScanActivity">
	<intent-filter>
        	<action android:name="com.adlink.sample.SDK.SCAN"/>
        	<category android:name="android.intent.category.DEFAULT"/>
      </intent-filter>
	</activity>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest">
	<uses-permission 		android:name="android.permission.ACCESS_NETWORK_STATE" />
</config-file>

<source-file src="src/android/com/myplugin/Scanner.java" target-dir="src/com/myplugin"/>

<source-file src="src/android/Library/src/com/adlink/sample/SDK/FakeR.java" target-dir="com.adlink.sample.SDK" />
<source-file 	src="src/android/Library/src/com/adlink/sample/SDK/ScanActivity.java" target-dir="com.adlink.sample.SDK"/>
<source-file 	src="src/android/Library/res/color/text_colors_checkbox.xml" 	target-dir="res/color"/>
<source-file 	src="src/android/Library/res/drawable-mdpi/img_horizontal_line.png" 	target-dir="res/drawable-mdpi"/>
<source-file src="src/android/Library/res/drawable-mdpi/logo139x45.ico" 	target-dir="res/drawable-mdpi"/>
<source-file src="src/android/Library/res/drawable-mdpi/sdksample.png" 	target-dir="res/drawable-mdpi"/>
<source-file src="src/android/Library/res/layout/about_main.xml" 	target-dir="res/layout"/>
<source-file src="src/android/Library/res/layout/rfid_main.xml" 	target-dir="res/layout"/>
<source-file src="src/android/Library/res/layout/scan_main.xml" 	target-dir="res/layout"/>
<source-file src="src/android/Library/res/menu/settings_menu.xml" 	target-dir="res/menu"/>
<source-file src="src/android/Library/res/values/arrays.xml" 	target-dir="res/values"/>
<source-file src="src/android/Library/res/values/colors.xml" 	target-dir="res/values"/>
<source-file src="src/android/Library/res/values/strings.xml" 	target-dir="res/values"/>
<source-file src="src/android/Library/res/values/styles.xml" 	target-dir="res/values"/>
<source-file src="src/android/Library/res/xml/settings_main.xml" 	target-dir="res/xml"/>

</platform>
</plugin>
Posted
Updated 28-Sep-15 18:44pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900