gpt4 book ai didi

android - 无法构建创建的 Titanium Android 模块

转载 作者:行者123 更新时间:2023-11-30 04:23:20 24 4
gpt4 key购买 nike

我在 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

有什么办法可以解决吗...?

最佳答案

这是一个已知的 bug并且在 1.8.1 发布之前不会得到修复,我不确定它什么时候发布。您不能使用 1.8.0.1 为 Windows 平台构建模块。似乎与钛软件的类(class)相提并论。

关于android - 无法构建创建的 Titanium Android 模块,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8937530/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com