0

我有一个使用 2.3.0 版本的煎茶触摸应用程序。我正在尝试运行:sencha app package build myappsmobile.json

我已经完成了文档要求的所有内容(android sdk 和 json 文件以及 ruby​​ 等等)

我在窗户上做。

我可能会收到与 java 相关的错误:这是错误的完整日志:有什么想法吗?

Sencha Cmd v4.0.0.203
[ERR]

-pre-build:

-build-setup:
[getbuildtools] Using latest Build Tools: 18.1.0
     [echo] Resolving Build Target for InteractionAnalyticsMobile...
[gettarget] Project Target:   Android 4.0.3
[gettarget] API level:        15
     [echo] ----------
     [echo] Creating output directories if needed...
    [mkdir] Created dir: D:\Work\SenchaTouch\GettingStarted\build\bin\res
    [mkdir] Created dir: D:\Work\SenchaTouch\GettingStarted\build\bin\rsObj
    [mkdir] Created dir: D:\Work\SenchaTouch\GettingStarted\build\bin\rsLibs
    [mkdir] Created dir: D:\Work\SenchaTouch\GettingStarted\build\gen
    [mkdir] Created dir: D:\Work\SenchaTouch\GettingStarted\build\bin\classes
    [mkdir] Created dir: D:\Work\SenchaTouch\GettingStarted\build\bin\dexedLibs
     [echo] ----------
     [echo] Resolving Dependencies for InteractionAnalyticsMobile...
[dependency] Library dependencies:
[dependency] No Libraries
[dependency]
[dependency] ------------------
[dependency] API<=15: Adding annotations.jar to the classpath.
     [echo] ----------
     [echo] Building Libraries with 'debug'...
   [subant] No sub-builds to iterate on

-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 3 source files to D:\Work\SenchaTouch\GettingStarted\build\bin\classes

BUILD FAILED
C:\Users\pdayan\Downloads\adt-bundle-windows-x86_64-20130717\adt-bundle-windows-x86_64-20130717\sdk\tools\ant\build.xml:720: The following error occurred while executing this line:
C:\Users\pdayan\Downloads\adt-bundle-windows-x86_64-20130717\adt-bundle-windows-x86_64-20130717\sdk\tools\ant\build.xml:734: Error running javac.exe compiler

Total time: 3 seconds
""C:\Users\pdayan\Downloads\adt-bundle-windows-x86_64-20130717\adt-bundle-windows-x86_64-20130717\sdk\tools\android" create project --target android-15 --name InteractionAnalyticsMobile --activity STActivity --path "D:\Work\SenchaTouch
Can not open destination file for writing
Can not open destination file for writing
Could not run ant with error: 1
Failed to package application
Copy operation failed src=D:\Work\SenchaTouch\GettingStarted\build\assets\build\assets\build\assets\build\assets\build\assets\build\assets\build\assets\build\assets\build\assets\build\assets\build\assets\build\assets\build\assets\build
build\assets\build\assets\build\assets\build\assets\build\assets\build\assets\build\assets\build\assets\build\assets\build\assets\build\AndroidManifest.xml
Copy operation failed src=D:\Work\SenchaTouch\GettingStarted\build\assets\build\assets\build\assets\build\assets\build\assets\build\assets\build\assets\build\assets\build\assets\build\assets\build\assets\build\assets\build\assets\build
\assets\build\assets\build\assets\build\assets\build\assets\build\assets\build\assets\build\assets\build\assets\build\assets\build\ant.properties

[ERR] stbuild exited with non-zero code : 7
4

3 回答 3

0

卸载“C:\Program files\Sencha Cmd”并再次在“C:\Sencha”重新安装它,文件夹名称中没有任何空格。它会起作用。

于 2013-10-14T07:19:44.813 回答
0

尝试在 config.json 文件中提到的路径中使用反斜杠,证书路径,android sdk 路径都应该更改..ex:d:/android/android_sdk_path

于 2013-12-13T13:59:48.257 回答
0

SDK的路径应该有一些像这样的转义。(windows版本)

    "sdkPath":"D:\/android-sdks"
于 2014-04-24T01:30:15.957 回答