PhoneGap中文网

 找回密码
 立即注册
查看: 8848|回复: 2

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

[复制链接]

11

主题

43

帖子

196

积分

注册会员

Rank: 2

积分
196
发表于 2015-1-18 23:47:12 | 显示全部楼层 |阅读模式
点击项目的属性,然后选择android 然后在library 中增加captureactivity的引用,后项目通过corvova build 通不过!


编译错误

编译错误
回复

使用道具 举报

11

主题

43

帖子

196

积分

注册会员

Rank: 2

积分
196
 楼主| 发表于 2015-1-19 00:32:09 | 显示全部楼层

-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:

-compile:
    [javac] Compiling 1 source file to D:\App\CaptureActivity\ant-build\classes
     [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:\App\CaptureActivity\res
   [crunch] To destination dir: D:\App\CaptureActivity\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:\App\CaptureActivity\ant-build\build.pr
op
[propertyfile] Updating property file: D:\App\CaptureActivity\ant-build\build.pr
op
[propertyfile] Updating property file: D:\App\CaptureActivity\ant-build\build.pr
op
[propertyfile] Updating property file: D:\App\CaptureActivity\ant-build\build.pr
op

-post-build:

debug:

nodeps:

-set-mode-check:

-set-debug-files:

-check-env:
[checkenv] Android SDK Tools Revision 23.0.2
[checkenv] Installed at D:\software\adt\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: 20.0.0
     [echo] Resolving Build Target for CordovaApp...
[gettarget] Project Target:   Android 4.4W
[gettarget] API level:        20
     [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:\App\sacner\platforms\android\C
ordovaLib\res
   [crunch] To destination dir: D:\App\sacner\platforms\android\CordovaLib\ant-b
uild\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:\App\sacner\platforms\android\CordovaLi
b\ant-build\build.prop
[propertyfile] Updating property file: D:\App\sacner\platforms\android\CordovaLi
b\ant-build\build.prop
[propertyfile] Updating property file: D:\App\sacner\platforms\android\CordovaLi
b\ant-build\build.prop
[propertyfile] Updating property file: D:\App\sacner\platforms\android\CordovaLi
b\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...
     [aapt] 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
回复 支持 反对

使用道具 举报

493

主题

2035

帖子

6894

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
6894
发表于 2015-1-19 21:14:29 | 显示全部楼层
http://bbs.phonegap100.com/thread-1160-1-1.html  看看phonegap3.0以上插件开发
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

站长推荐 上一条 /1 下一条

ionic4视频教程

Archiver|手机版|小黑屋| PhoneGap中文网 ( 京ICP备13027796号-1 )  

GMT+8, 2024-4-19 07:37 , Processed in 0.046194 second(s), 30 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表