|
楼主 |
发表于 2015-10-30 11:21:12
|
显示全部楼层
这是打包服务器日志 ,由于字数限制就发了重要的部分
-compile:
[javac] Compiling 95 source files to D:\BaiduYunDownload\model\Native\test\build\C6D19D1A7910000194E41AB0A2001191\build\platforms\android\CordovaLib\bin\classes
[javac] 注: 某些输入文件使用或覆盖了已过时的 API。
[javac] 注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
[echo] Creating library output jar file...
[jar] Building jar: D:\BaiduYunDownload\model\Native\test\build\C6D19D1A7910000194E41AB0A2001191\build\platforms\android\CordovaLib\bin\classes.jar
-post-compile:
-obfuscate:
-dex:
[echo] Library project: do not convert bytecode...
-crunch:
[crunch] Crunching PNG Files in source dir: D:\BaiduYunDownload\model\Native\test\build\C6D19D1A7910000194E41AB0A2001191\build\platforms\android\CordovaLib\res
[crunch] To destination dir: D:\BaiduYunDownload\model\Native\test\build\C6D19D1A7910000194E41AB0A2001191\build\platforms\android\CordovaLib\bin\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] Creating new property file: D:\BaiduYunDownload\model\Native\test\build\C6D19D1A7910000194E41AB0A2001191\build\platforms\android\CordovaLib\bin\build.prop
[propertyfile] Updating property file: D:\BaiduYunDownload\model\Native\test\build\C6D19D1A7910000194E41AB0A2001191\build\platforms\android\CordovaLib\bin\build.prop
[propertyfile] Updating property file: D:\BaiduYunDownload\model\Native\test\build\C6D19D1A7910000194E41AB0A2001191\build\platforms\android\CordovaLib\bin\build.prop
[propertyfile] Updating property file: D:\BaiduYunDownload\model\Native\test\build\C6D19D1A7910000194E41AB0A2001191\build\platforms\android\CordovaLib\bin\build.prop
-post-build:
debug:
-code-gen:
[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] Generating resource IDs...
[echo] ----------
[echo] Handling BuildConfig class...
[buildconfig] Generating BuildConfig class.
-pre-compile:
-compile:
[javac] Compiling 14 source files to D:\BaiduYunDownload\model\Native\test\build\C6D19D1A7910000194E41AB0A2001191\build\platforms\android\bin\classes
[javac] D:\BaiduYunDownload\model\Native\test\build\C6D19D1A7910000194E41AB0A2001191\build\platforms\android\src\org\apache\cordova\camera\CameraLauncher.java:213: 错误: 不兼容的类型
[javac] this.imageUri = Uri.fromFile(photo);
[javac] ^
[javac] 需要: URI
[javac] 找到: Uri
[javac] D:\BaiduYunDownload\model\Native\test\build\C6D19D1A7910000194E41AB0A2001191\build\platforms\android\src\org\apache\cordova\camera\CameraLauncher.java:445: 错误: 无法将类 CameraLauncher中的方法 cleanup应用到给定类型;
[javac] this.cleanup(FILE_URI, this.imageUri, uri, bitmap);
[javac] ^
[javac] 需要: int,Uri,Uri,Bitmap
[javac] 找到: int,URI,Uri,Bitmap
[javac] 原因: 无法通过方法调用转换将实际参数URI转换为Uri
BUILD FAILED
D:\BaiduYunDownload\tools\adt-sdk\tools\ant\build.xml:716: The following error occurred while executing this line:
D:\BaiduYunDownload\tools\adt-sdk\tools\ant\build.xml:730: Compile failed; see the compiler error output for details.
Total time: 12 seconds
D:\BaiduYunDownload\model\Native\test\build\C6D19D1A7910000194E41AB0A2001191\build\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:\BaiduYunDownload\model\Native\test\build\C6D19D1A7910000194E41AB0A2001191\build\platforms\android\build.xml
[javac] 注: 某些输入文件使用或覆盖了已过时的 API。
[javac] 注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
[javac] 2 个错误
Error: D:\BaiduYunDownload\model\Native\test\build\C6D19D1A7910000194E41AB0A2001191\build\platforms\android\cordova\build.bat: Command failed with exit code 8
at ChildProcess.whenDone (D:\BaiduYunDownload\tools\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:135:23)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:743:16)
at Process.ChildProcess._handle.onexit (child_process.js:810:5)
****ERROR****: Task "exec" finished with error.
****ERROR****: Target "buildAndroid" finished with error.
****ERROR****: Build finished with error.
****ERROR**** 错误信息: exec returned: 1
****ERROR**** 调用栈:
at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:643)
at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:669)
at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:495)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at sun.reflect.GeneratedMethodAccessor23.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:435)
at org.apache.tools.ant.Target.performTasks(Target.java:456)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
at com.justep.deploy.app.servlet.Pack.a(Unknown Source)
at com.justep.deploy.app.servlet.Pack.doPost(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:751)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:566)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:578)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:221)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1111)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:498)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:183)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1045)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:109)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:98)
at org.eclipse.jetty.server.Server.handle(Server.java:461)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:284)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:244)
at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:534)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:607)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:536)
at java.lang.Thread.run(Thread.java:745) |
|