无法构建创建的 Titanium Android 模块

发布于 2024-12-27 21:21:46 字数 3851 浏览 0 评论 0原文

我在 Windows7 机器中使用 Commadline 命令创建了 Titanium Android 模块,当我尝试使用 Ant 构建创建的模块时,它显示以下错误

C:\Users\ram\modtest>ant
Buildfile: C:\Users\ram\modtest\build.xml

init:

process.annotations:

generate.rhino.bindings:
     [java] Generating C:\Users\ram\modtest\build\generated\java\com\ram\apptest
\ExampleProxyPrototype.java
     [java] Generating C:\Users\ram\modtest\build\generated\java\com\ram\apptest
\ModtestModulePrototype.java
     [java] Generating C:\Users\ram\modtest\build\generated\java\modtestGenerate
dBindings.java

generate.rhino.idswitch:
     [echo] Generating IDs for C:\Users\ram\modtest\build\generated\java\com\ram
\apptest\ExampleProxyPrototype.java
     [echo] Generating IDs for C:\Users\ram\modtest\build\generated\java\com\ram
\apptest\ModtestModulePrototype.java
     [echo] Generating IDs for C:\Users\ram\modtest\build\generated\java\modtest
GeneratedBindings.java

generate.v8.bindings:
     [java] Generating C:\Users\ram\modtest\build\generated\jni\com.ram.apptest.
ExampleProxy.h
     [java] Generating C:\Users\ram\modtest\build\generated\jni\com.ram.apptest.
ExampleProxy.cpp
     [java] Generating C:\Users\ram\modtest\build\generated\jni\com.ram.apptest.
ModtestModule.h
     [java] Generating C:\Users\ram\modtest\build\generated\jni\com.ram.apptest.
ModtestModule.cpp

BUILD FAILED
C:\Users\ram\AppData\Roaming\Titanium\mobilesdk\win32\1.8.0.1\module\android\bui
ld.xml:103: Execute failed: java.io.IOException: Cannot run program "C:\Users\ra
m\AppData\Roaming\Titanium\mobilesdk\win32\1.8.0.1\module\android\bootstrap.py":
 CreateProcess error=193, %1 is not a valid Win32 application
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
        at java.lang.Runtime.exec(Runtime.java:593)
        at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Exec
ute.java:862)
        at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:481)
        at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:495)
        at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:631)
        at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:672)
        at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:498)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
        at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
a:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:390)
        at org.apache.tools.ant.Target.performTasks(Target.java:411)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
cutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
        at org.apache.tools.ant.Main.runBuild(Main.java:809)
        at org.apache.tools.ant.Main.startAnt(Main.java:217)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Caused by: java.io.IOException: CreateProcess error=193, %1 is not a valid Win32
 application
        at java.lang.ProcessImpl.create(Native Method)
        at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
        at java.lang.ProcessImpl.start(ProcessImpl.java:30)
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:453)
        ... 23 more

Total time: 6 seconds

有没有办法修复它...?

I had created Titanium Android Module using the Commadline commands in my Windows7 machine, when I try to build the created module using Ant it shows the following error

C:\Users\ram\modtest>ant
Buildfile: C:\Users\ram\modtest\build.xml

init:

process.annotations:

generate.rhino.bindings:
     [java] Generating C:\Users\ram\modtest\build\generated\java\com\ram\apptest
\ExampleProxyPrototype.java
     [java] Generating C:\Users\ram\modtest\build\generated\java\com\ram\apptest
\ModtestModulePrototype.java
     [java] Generating C:\Users\ram\modtest\build\generated\java\modtestGenerate
dBindings.java

generate.rhino.idswitch:
     [echo] Generating IDs for C:\Users\ram\modtest\build\generated\java\com\ram
\apptest\ExampleProxyPrototype.java
     [echo] Generating IDs for C:\Users\ram\modtest\build\generated\java\com\ram
\apptest\ModtestModulePrototype.java
     [echo] Generating IDs for C:\Users\ram\modtest\build\generated\java\modtest
GeneratedBindings.java

generate.v8.bindings:
     [java] Generating C:\Users\ram\modtest\build\generated\jni\com.ram.apptest.
ExampleProxy.h
     [java] Generating C:\Users\ram\modtest\build\generated\jni\com.ram.apptest.
ExampleProxy.cpp
     [java] Generating C:\Users\ram\modtest\build\generated\jni\com.ram.apptest.
ModtestModule.h
     [java] Generating C:\Users\ram\modtest\build\generated\jni\com.ram.apptest.
ModtestModule.cpp

BUILD FAILED
C:\Users\ram\AppData\Roaming\Titanium\mobilesdk\win32\1.8.0.1\module\android\bui
ld.xml:103: Execute failed: java.io.IOException: Cannot run program "C:\Users\ra
m\AppData\Roaming\Titanium\mobilesdk\win32\1.8.0.1\module\android\bootstrap.py":
 CreateProcess error=193, %1 is not a valid Win32 application
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
        at java.lang.Runtime.exec(Runtime.java:593)
        at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Exec
ute.java:862)
        at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:481)
        at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:495)
        at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:631)
        at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:672)
        at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:498)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
        at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
a:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:390)
        at org.apache.tools.ant.Target.performTasks(Target.java:411)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
cutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
        at org.apache.tools.ant.Main.runBuild(Main.java:809)
        at org.apache.tools.ant.Main.startAnt(Main.java:217)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Caused by: java.io.IOException: CreateProcess error=193, %1 is not a valid Win32
 application
        at java.lang.ProcessImpl.create(Native Method)
        at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
        at java.lang.ProcessImpl.start(ProcessImpl.java:30)
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:453)
        ... 23 more

Total time: 6 seconds

Is there is any way to fix it...?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

丑疤怪 2025-01-03 21:21:46

这是一个已知的 bug,直到版本 1.8.1 才会修复,我'我不确定它什么时候出来。您无法使用 1.8.0.1 为 Windows 平台构建模块。似乎与钛软件的课程相当。

this is a known bug and won't be fixed until release 1.8.1 which I'm not sure when it's coming out. you can't build modules for windows platforms with 1.8.0.1. seems par for the course with titanium software.

等待我真够勒 2025-01-03 21:21:46

我发现它无法执行 python 脚本。如果您的计算机上安装了 python,请确保将其添加到 PATH 环境变量中。

I see it is not able to execute the python script. if you have python installed on your machine make sure to add it to the PATH environment variable.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文