0

因此,我们的 Android 应用程序从命令行本地构建没有问题,但将其检入 SVN 并将 Team City 指向它,我收到以下错误:

[10:47:29][apkbuilder] com.android.sdklib.build.ApkCreationException: 
java.io.FileNotFoundException: 
C:\TeamCity\buildAgent\work\e7d847312af872ea\bin\classes.dex does not exist
[10:47:29][package-helper] The following error occurred while executing this line:
C:\Program Files (x86)\Android\android-sdk\tools\ant\build.xml:295:
com.android.sdklib.build.ApkCreationException: java.io.FileNotFoundException:
C:\TeamCity\buildAgent\work\e7d847312af872ea\bin\classes.dex does not exist
[10:47:29][do-only-if-not-library] 
The following error occurred while executing this line:
C:\Program Files (x86)\Android\android-sdk\tools\ant\build.xml:930: The following error 
occurred while executing this line:
C:\Program Files (x86)\Android\android-sdk\tools\ant\build.xml:295:    
com.android.sdklib.build.ApkCreationException: java.io.FileNotFoundException:    
C:\TeamCity\buildAgent\work\e7d847312af872ea\bin\classes.dex does not exist

这对我来说是新的,但我的理解是 .dex 文件包含所有类。为什么它不在 bin 文件夹中?

4

1 回答 1

0

有点愚蠢,我必须在构建日志中展开树以显示 javac 步骤无法运行,因为运行 TC Build Agent 进程的用户对 JDK 目录没有文件权限。

于 2012-08-14T18:11:03.567 回答