所以我们的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文件夹中?
答案 0 :(得分:0)
有点愚蠢,我必须在构建日志中展开树以显示javac步骤无法运行,因为运行TC Build Agent进程的用户没有JDK目录的文件权限。