Android 以 Windows SYSTEM 帐户构建应用程序时构建失败 (aapt2)
Android build fails (aapt2) when building as application as Windows SYSTEM account
我在 gradle 中有一个 android 构建。 ANdroidgradleplugin 3.4.0,androidbuild tools 28.0.3,编译SDK 24,开启JDK8(ojdkbuild),gradle(wrapper)版本5.4.0。当 运行 在 cmd 提示符中以我的本地用户帐户登录时,我能够在我的开发机器上以及在我的 TeamCity 构建代理机器上正常构建和 运行 我的应用程序。但是,当 TeamCity 运行s(SYSTEM 帐户)或通过 cmd.exe 提示以 SYSTEM 帐户打开时,我失败并出现以下错误。
我猜这是某种许可问题,但不幸的是,我不确定如何构建。 Android SDK 安装在 C:\Program Files (x86)\Android\android-sdk
。 Windows 7 个虚拟机。
我已经尝试降级 android gradle 插件,并进行了各种搜索,但还没有成功。
Execution failed for task ':MySubproj:verifyReleaseResources'. com.android.ide.common.workers.WorkerExecutorException: 27 exceptions were raised by workers:
com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2-3.4.0-5326820-windows Daemon #0: Daemon startup failed
This should not happen under normal circumstances, please file an issue if it does.
com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2-3.4.0-5326820-windows Daemon #1: Daemon startup failed
This should not happen under normal circumstances, please file an issue if it does.
com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2-3.4.0-5326820-windows Daemon #2: Daemon startup failed
This should not happen under normal circumstances, please file an issue if it does.
com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2-3.4.0-5326820-windows Daemon #3: Daemon startup failed
This should not happen under normal circumstances, please file an issue if it does.
com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2-3.4.0-5326820-windows Daemon #4: Daemon startup failed
This should not happen under normal circumstances, please file an issue if it does.
com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2-3.4.0-5326820-windows Daemon #5: Daemon startup failed
This should not happen under normal circumstances, please file an issue if it does.
在构建 gradle
时正在当前用户主目录中创建 .gradle
目录。
现在进入 "users" 目录并尝试在主目录中搜索 "SYSTEM" 用户....(没有)
所以,最简单的方法——创建一个用户,并在这个用户下启动服务。
提供对建筑文件夹的访问权限。通常这应该足以开始 gradle.
我在 gradle 中有一个 android 构建。 ANdroidgradleplugin 3.4.0,androidbuild tools 28.0.3,编译SDK 24,开启JDK8(ojdkbuild),gradle(wrapper)版本5.4.0。当 运行 在 cmd 提示符中以我的本地用户帐户登录时,我能够在我的开发机器上以及在我的 TeamCity 构建代理机器上正常构建和 运行 我的应用程序。但是,当 TeamCity 运行s(SYSTEM 帐户)或通过 cmd.exe 提示以 SYSTEM 帐户打开时,我失败并出现以下错误。
我猜这是某种许可问题,但不幸的是,我不确定如何构建。 Android SDK 安装在 C:\Program Files (x86)\Android\android-sdk
。 Windows 7 个虚拟机。
我已经尝试降级 android gradle 插件,并进行了各种搜索,但还没有成功。
Execution failed for task ':MySubproj:verifyReleaseResources'. com.android.ide.common.workers.WorkerExecutorException: 27 exceptions were raised by workers:
com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2-3.4.0-5326820-windows Daemon #0: Daemon startup failed
This should not happen under normal circumstances, please file an issue if it does.
com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2-3.4.0-5326820-windows Daemon #1: Daemon startup failed
This should not happen under normal circumstances, please file an issue if it does.
com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2-3.4.0-5326820-windows Daemon #2: Daemon startup failed
This should not happen under normal circumstances, please file an issue if it does.
com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2-3.4.0-5326820-windows Daemon #3: Daemon startup failed
This should not happen under normal circumstances, please file an issue if it does.
com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2-3.4.0-5326820-windows Daemon #4: Daemon startup failed
This should not happen under normal circumstances, please file an issue if it does.
com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2-3.4.0-5326820-windows Daemon #5: Daemon startup failed
This should not happen under normal circumstances, please file an issue if it does.
在构建 gradle
时正在当前用户主目录中创建 .gradle
目录。
现在进入 "users" 目录并尝试在主目录中搜索 "SYSTEM" 用户....(没有)
所以,最简单的方法——创建一个用户,并在这个用户下启动服务。
提供对建筑文件夹的访问权限。通常这应该足以开始 gradle.