amend apkbuilder.bat
assign absoulte path as follow:
set frameworkdir=D:\android-sdk-windows-1.0_r1\tools\lib\
set libdir=D:\android-sdk-windows-1.0_r1\tools\lib\
(note: the final "\" is necessary)
On 10月27日, 下午5時09分, cdxueq <[EMAIL PROTECTED]> wrote:
> windows XP sp2
>
> android_sdk_windows_m3-rc37a
> apache-ant-1.7.1
> jdk1.6.0_04
>
> first, I open a command line and redirect to D:\test
> then, create a android app project with the activitycreator.bat
> next,redirect to D:\test\f2app,
> next, run ant
>
> I get a error :
> BUILD FAILED
> D:\test\f2app\build.xml:80: exec returned: 1
>
> how to fix it??? help
>
> following is full stack trace:
>
> D:\test>activitycreator.bat -o f2app com.mscn.f2app.F2APP
> package: com.mscn.f2app
> out_dir: f2app
> activity_name: F2APP
> Created directory f2app\src\com\mscn\f2app
> Added file f2app\src\com\mscn\f2app\F2APP.java
> Created directory f2app\bin
> Created directory f2app\res\values
> Added file f2app\res\values\strings.xml
> Created directory f2app\res\layout
> Added file f2app\res\layout\main.xml
> Added file f2app\AndroidManifest.xml
> Added file f2app\build.xml
>
> D:\test>cd f2app
>
> D:\test\f2app>ant
> Buildfile: build.xml
>
> dirs:
> [mkdir] Created dir: D:\test\f2app\bin\classes
>
> resource-src:
> [echo] Generating R.java...
>
> aidl:
>
> compile:
> [javac] Compiling 2 source files to D:\test\f2app\bin\classes
>
> dex:
> [exec] Unable to access jarfile ..\framework\dx.jar
>
> BUILD FAILED
> D:\test\f2app\build.xml:80: exec returned: 1
>
> Total time: 4 seconds
> D:\test\f2app>
>
> the content of build.xml:80 line is
> <exec executable="${dx}" failonerror="true">
> <arg value="--dex" />
> <arg value="--output=${basedir}\${intermediate-dex}" />
> <arg value="--locals=full" />
> <arg value="--positions=lines" />
> <arg path="${basedir}\${outdir-classes}" />
> </exec>
> </target>
>
> I instead with
> android-sdk-windows-1.0_r1
> apache-ant-1.7.1
> jdk1.6.0_07
>
> get the same error too:
>
> following is stack trace:
>
> D:\test\f1app>ant
> Buildfile: build.xml
>
> dirs:
> [echo] Creating output directories if needed...
>
> resource-src:
> [echo] Generating R.java / Manifest.java from the resources...
>
> aidl:
> [echo] Compiling aidl files into Java classes...
>
> compile:
> [javac] Compiling 2 source files to D:\test\f1app\bin\classes
>
> dex:
> [echo] Converting compiled files and external libraries into bin/
> classes.
> x...
>
> package-res:
>
> package-res-no-assets:
> [echo] Packaging resources...
>
> debug:
> [echo] Packaging bin/F1APP-debug.apk, and signing it with a debug
> key...
> [exec] Unable to access jarfile ..\framework\apkbuilder.jar
>
> BUILD FAILED
> D:\test\f1app\build.xml:210: exec returned: 1
>
> Total time: 6 seconds
> D:\test\f1app>
>
> the content of build.xml:210 line is
> <exec executable="${apk-builder}" failonerror="true">
> <arg value="${out-debug-package-ospath}" />
> <arg value="-z" />
> <arg value="${resources-package-ospath}" />
> <arg value="-f" />
> <arg value="${intermediate-dex-ospath}" />
> <arg value="-rf" />
> <arg value="${srcdir-ospath}" />
> <arg value="-rj" />
> <arg value="${external-libs-ospath}" />
> </exec>
> </target>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---