Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build fail #343

Open
kangkangding opened this issue Feb 7, 2017 · 0 comments
Open

build fail #343

kangkangding opened this issue Feb 7, 2017 · 0 comments

Comments

@kangkangding
Copy link

this is the log:

Using this version of Cordova with older version of cordova-android is being de
precated. Consider upgrading to [email protected] or newer.
Running command: "C:\Program Files\nodejs\node.exe" D:\javawork\SmartFluxClnt2\h
ooks\after_prepare\010_add_platform_class.js D:\javawork\SmartFluxClnt2
add to body class: platform-android
Running command: "C:\Program Files\nodejs\node.exe" D:\javawork\SmartFluxClnt2\h
ooks\after_prepare\020_remove_sass_from_platforms.js D:\javawork\SmartFluxClnt2
Running command: cmd "/s /c "D:\javawork\SmartFluxClnt2\platforms\android\cordov
a\build.bat""
Buildfile: D:\javawork\SmartFluxClnt2\platforms\android\build.xml

-set-mode-check:

-set-debug-files:

-check-env:
[checkenv] Android SDK Tools Revision 25.1.3
[checkenv] Installed at E:\sdk\sdk

-setup:
[echo] Project Name: CordovaApp
[gettype] Project Type: Application

-set-debug-mode:

-debug-obfuscation-check:

-pre-build:

-build-setup:
[getbuildtools] Using latest Build Tools: 24.0.3
[echo] Resolving Build Target for CordovaApp...
[gettarget] Project Target: Android 4.4.2
[gettarget] API level: 19
[echo] ----------
[echo] Creating output directories if needed...
[echo] ----------
[echo] Resolving Dependencies for CordovaApp...
[dependency] Library dependencies:
[dependency]
[dependency] ------------------
[dependency] Ordered libraries:
[dependency]
[dependency] ------------------
[echo] ----------
[echo] Building Libraries with 'debug'...

nodeps:

-set-mode-check:

-set-debug-files:

-check-env:
[checkenv] Android SDK Tools Revision 25.1.3
[checkenv] Installed at E:\sdk\sdk

-setup:
[echo] Project Name: CordovaApp
[gettype] Project Type: Android Library

-set-debug-mode:

-debug-obfuscation-check:

-pre-build:

-build-setup:
[getbuildtools] Using latest Build Tools: 24.0.3
[echo] Resolving Build Target for CordovaApp...
[gettarget] Project Target: Android 4.4.2
[gettarget] API level: 19
[echo] ----------
[echo] Creating output directories if needed...
[echo] ----------
[echo] Resolving Dependencies for CordovaApp...
[dependency] Library dependencies:
[dependency] No Libraries
[dependency]
[dependency] ------------------

-code-gen:
[mergemanifest] Found Deleted Target File
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
[echo] Handling aidl files...
[aidl] No AIDL files to compile.
[echo] ----------
[echo] Handling RenderScript files...
[echo] ----------
[echo] Handling Resources...
[aapt] Found new input file
[aapt] Generating resource IDs...
[echo] ----------
[echo] Handling BuildConfig class...
[buildconfig] No need to generate new BuildConfig.

-pre-compile:

-compile:
[echo] Creating library output jar file...

-post-compile:

-obfuscate:

-dex:
[echo] Library project: do not convert bytecode...

-crunch:
[crunch] Crunching PNG Files in source dir: D:\javawork\SmartFluxClnt2\platfo
rms\android\CordovaLib\res
[crunch] To destination dir: D:\javawork\SmartFluxClnt2\platforms\android\Cor
dovaLib\ant-build\res
[crunch] Crunched 0 PNG files to update cache

-package-resources:
[echo] Library project: do not package resources...

-package:
[echo] Library project: do not package apk...

-post-package:

-do-debug:
[echo] Library project: do not create apk...
[propertyfile] Updating property file: D:\javawork\SmartFluxClnt2\platforms\andr
oid\CordovaLib\ant-build\build.prop
[propertyfile] Updating property file: D:\javawork\SmartFluxClnt2\platforms\andr
oid\CordovaLib\ant-build\build.prop
[propertyfile] Updating property file: D:\javawork\SmartFluxClnt2\platforms\andr
oid\CordovaLib\ant-build\build.prop
[propertyfile] Updating property file: D:\javawork\SmartFluxClnt2\platforms\andr
oid\CordovaLib\ant-build\build.prop

-post-build:

debug:

-code-gen:
[mergemanifest] Found Deleted Target File
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
[echo] Handling aidl files...
[aidl] No AIDL files to compile.
[echo] ----------
[echo] Handling RenderScript files...
[echo] ----------
[echo] Handling Resources...
[aapt] Found Deleted Target File
[aapt] Generating resource IDs...
[echo] ----------
[echo] Handling BuildConfig class...
[buildconfig] No need to generate new BuildConfig.

-pre-compile:
[echo] Set jars path to: D:\javawork\SmartFluxClnt2\platforms\android\Cordo
vaLib\ant-build\classes.jar;D:\javawork\SmartFluxClnt2\platforms\android\libs\jp
ush-android-2.1.9.jar;D:\javawork\SmartFluxClnt2\platforms\android\libs\libammsd
k.jar

-compile:
[javac] Compiling 6 source files to D:\javawork\SmartFluxClnt2\platforms\and
roid\ant-build\classes
[javac] ����: [options] Դֵ1.5�ѹ�ʱ, ����δ�����з��а���ɾ��
[javac] ����: [options] Ŀ��ֵ1.5�ѹ�ʱ, ����δ�����з��а���ɾ��
[javac] ����: [options] Ҫ�����й��ѹ�ʱѡ���ľ���, ��ʹ�� -Xlint:-options��
[javac] D:\javawork\SmartFluxClnt2\platforms\android\src\com\phonegap\plugin
s\barcodescanner\BarcodeScanner.java:27: ����: ������com.google.zxing.client.and
roid������
[javac] import com.google.zxing.client.android.CaptureActivity;
[javac] ^
[javac] D:\javawork\SmartFluxClnt2\platforms\android\src\com\phonegap\plugin
s\barcodescanner\BarcodeScanner.java:28: ����: ������com.google.zxing.client.and
roid.encode������
[javac] import com.google.zxing.client.android.encode.EncodeActivity;
[javac] ^
[javac] D:\javawork\SmartFluxClnt2\platforms\android\src\com\phonegap\plugin
s\barcodescanner\BarcodeScanner.java:29: ����: ������com.google.zxing.client.and
roid������
[javac] import com.google.zxing.client.android.Intents;
[javac] ^
[javac] D:\javawork\SmartFluxClnt2\platforms\android\src\com\phonegap\plugin
s\barcodescanner\BarcodeScanner.java:138: ����: �Ҳ�������
[javac] Intent intentScan = new Intent(that.cordova.getActiv
ity().getBaseContext(), CaptureActivity.class);
[javac]
^
[javac] ����: �� CaptureActivity
[javac] D:\javawork\SmartFluxClnt2\platforms\android\src\com\phonegap\plugin
s\barcodescanner\BarcodeScanner.java:139: ����: ������Intents������
[javac] intentScan.setAction(Intents.Scan.ACTION);
[javac] ^
[javac] D:\javawork\SmartFluxClnt2\platforms\android\src\com\phonegap\plugin
s\barcodescanner\BarcodeScanner.java:176: ����: ������Intents������
[javac] intentScan.putExtra(Intents.Scan.CAMERA_ID,
obj.optBoolean(PREFER_FRONTCAMERA, false) ? 1 : 0);
[javac] ^
[javac] D:\javawork\SmartFluxClnt2\platforms\android\src\com\phonegap\plugin
s\barcodescanner\BarcodeScanner.java:177: ����: ������Intents������
[javac] intentScan.putExtra(Intents.Scan.SHOW_FLIP_C
AMERA_BUTTON, obj.optBoolean(SHOW_FLIP_CAMERA_BUTTON, false));
[javac] ^
[javac] D:\javawork\SmartFluxClnt2\platforms\android\src\com\phonegap\plugin
s\barcodescanner\BarcodeScanner.java:178: ����: ������Intents������
[javac] intentScan.putExtra(Intents.Scan.SHOW_TORCH_
BUTTON, obj.optBoolean(SHOW_TORCH_BUTTON, false));
[javac] ^
[javac] D:\javawork\SmartFluxClnt2\platforms\android\src\com\phonegap\plugin
s\barcodescanner\BarcodeScanner.java:179: ����: ������Intents������
[javac] intentScan.putExtra(Intents.Scan.TORCH_ON, o
bj.optBoolean(TORCH_ON, false));
[javac] ^
[javac] D:\javawork\SmartFluxClnt2\platforms\android\src\com\phonegap\plugin
s\barcodescanner\BarcodeScanner.java:181: ����: ������Intents������
[javac] intentScan.putExtra(Intents.Scan.RESULT_
DISPLAY_DURATION_MS, "" + obj.optLong(RESULTDISPLAY_DURATION));
[javac] ^
[javac] D:\javawork\SmartFluxClnt2\platforms\android\src\com\phonegap\plugin
s\barcodescanner\BarcodeScanner.java:184: ����: ������Intents������
[javac] intentScan.putExtra(Intents.Scan.FORMATS
, obj.optString(FORMATS));
[javac] ^
[javac] D:\javawork\SmartFluxClnt2\platforms\android\src\com\phonegap\plugin
s\barcodescanner\BarcodeScanner.java:187: ����: ������Intents������
[javac] intentScan.putExtra(Intents.Scan.PROMPT_
MESSAGE, obj.optString(PROMPT));
[javac] ^
[javac] D:\javawork\SmartFluxClnt2\platforms\android\src\com\phonegap\plugin
s\barcodescanner\BarcodeScanner.java:190: ����: ������Intents������
[javac] intentScan.putExtra(Intents.Scan.ORIENTA
TION_LOCK, obj.optString(ORIENTATION));
[javac] ^
[javac] D:\javawork\SmartFluxClnt2\platforms\android\src\com\phonegap\plugin
s\barcodescanner\BarcodeScanner.java:251: ����: �Ҳ�������
[javac] Intent intentEncode = new Intent(this.cordova.getActivity().
getBaseContext(), EncodeActivity.class);
[javac]
^
[javac] ����: �� EncodeActivity
[javac] �: �� BarcodeScanner
[javac] D:\javawork\SmartFluxClnt2\platforms\android\src\com\phonegap\plugin
s\barcodescanner\BarcodeScanner.java:252: ����: ������Intents������
[javac] intentEncode.setAction(Intents.Encode.ACTION);
[javac] ^
[javac] D:\javawork\SmartFluxClnt2\platforms\android\src\com\phonegap\plugin
s\barcodescanner\BarcodeScanner.java:253: ����: ������Intents������
[javac] intentEncode.putExtra(Intents.Encode.TYPE, type);
[javac] ^
[javac] D:\javawork\SmartFluxClnt2\platforms\android\src\com\phonegap\plugin
s\barcodescanner\BarcodeScanner.java:254: ����: ������Intents������
[javac] intentEncode.putExtra(Intents.Encode.DATA, data);
[javac] ^
[javac] 17 ������
[javac] 3 ������

BUILD FAILED
E:\sdk\sdk\tools\ant\build.xml:716: The following error occurred while executing
this line:
E:\sdk\sdk\tools\ant\build.xml:730: Compile failed; see the compiler error outpu
t for details.

Total time: 3 seconds

D:\javawork\SmartFluxClnt2\platforms\android\cordova\node_modules\q\q.js:126
throw e;
^
Error code 1 for command: cmd with args: /s,/c,ant,debug,-f,D:\javawork\SmartFlu
xClnt2\platforms\android\build.xml,-Dout.dir=ant-build,-Dgen.absolute.dir=ant-ge
n
Error: cmd: Command failed with exit code 1

please help me ,thank you .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant