gimao@qq.com 发表于 2015-1-18 23:47:12

phonegap 调用zxing 二维码插件遇到的问题

点击项目的属性,然后选择android 然后在library 中增加captureactivity的引用,后项目通过corvova build 通不过!


gimao@qq.com 发表于 2015-1-19 00:32:09


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

-pre-compile:

-compile:
    Compiling 1 source file to D:\App\CaptureActivity\ant-build\classes
    Creating library output jar file...

-post-compile:

-obfuscate:

-dex:
    Library project: do not convert bytecode...

-crunch:
    Crunching PNG Files in source dir: D:\App\CaptureActivity\res
    To destination dir: D:\App\CaptureActivity\ant-build\res
    Crunched 0 PNG files to update cache

-package-resources:
    Library project: do not package resources...

-package:
    Library project: do not package apk...

-post-package:

-do-debug:
    Library project: do not create apk...
Updating property file: D:\App\CaptureActivity\ant-build\build.pr
op
Updating property file: D:\App\CaptureActivity\ant-build\build.pr
op
Updating property file: D:\App\CaptureActivity\ant-build\build.pr
op
Updating property file: D:\App\CaptureActivity\ant-build\build.pr
op

-post-build:

debug:

nodeps:

-set-mode-check:

-set-debug-files:

-check-env:
Android SDK Tools Revision 23.0.2
Installed at D:\software\adt\sdk

-setup:
    Project Name: CordovaApp
Project Type: Android Library

-set-debug-mode:

-debug-obfuscation-check:

-pre-build:

-build-setup:
Using latest Build Tools: 20.0.0
    Resolving Build Target for CordovaApp...
Project Target:   Android 4.4W
API level:      20
    ----------
    Creating output directories if needed...
    ----------
    Resolving Dependencies for CordovaApp...
Library dependencies:
No Libraries

------------------

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

-pre-compile:

-compile:
    Creating library output jar file...

-post-compile:

-obfuscate:

-dex:
    Library project: do not convert bytecode...

-crunch:
    Crunching PNG Files in source dir: D:\App\sacner\platforms\android\C
ordovaLib\res
    To destination dir: D:\App\sacner\platforms\android\CordovaLib\ant-b
uild\res
    Crunched 0 PNG files to update cache

-package-resources:
    Library project: do not package resources...

-package:
    Library project: do not package apk...

-post-package:

-do-debug:
    Library project: do not create apk...
Updating property file: D:\App\sacner\platforms\android\CordovaLi
b\ant-build\build.prop
Updating property file: D:\App\sacner\platforms\android\CordovaLi
b\ant-build\build.prop
Updating property file: D:\App\sacner\platforms\android\CordovaLi
b\ant-build\build.prop
Updating property file: D:\App\sacner\platforms\android\CordovaLi
b\ant-build\build.prop

-post-build:

debug:

-code-gen:
Found Deleted Target File
Merging AndroidManifest files into one.
Manifest merger disabled. Using project manifest only.
    Handling aidl files...
    No AIDL files to compile.
    ----------
    Handling RenderScript files...
    ----------
    Handling Resources...
    Found Deleted Target File
    Generating resource IDs...
    invalid resource directory name: D:\App\CaptureActivity\bin\res/crun
ch

BUILD FAILED
D:\software\adt\sdk\tools\ant\build.xml:653: The following error occurred while
executing this line:
D:\software\adt\sdk\tools\ant\build.xml:698: null returned: 1

Total time: 5 seconds

D:\App\sacner\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:\App\sacner\platfo
rms\android\build.xml,-Dout.dir=ant-build,-Dgen.absolute.dir=ant-gen
ERROR building one of the platforms: Error: D:\App\sacner\platforms\android\cord
ova\build.bat: Command failed with exit code 8
You may not have the required environment or OS to build this project

admin 发表于 2015-1-19 21:14:29

http://bbs.phonegap100.com/thread-1160-1-1.html看看phonegap3.0以上插件开发
页: [1]
查看完整版本: phonegap 调用zxing 二维码插件遇到的问题