简体   繁体   English

gradle 构建时 Android 打包失败,错误号为 3

[英]Android packaging failed when gradle build with error no 3

I tried android package using jekins with firebase plugin in UE4.26.我在 UE4.26 中使用带有 firebase 插件的 jekins 尝试了 android 包。 But I failed android packaging with error no 3, I tried find error no 3, I can't find info about error no 3 and I have no solution.但是我的 android 打包失败,错误号为 3,我尝试找到错误号 3,我找不到关于错误号 3 的信息,我也没有解决方案。 Help me please.请帮帮我。

23:25:36   File ../../../Client/MyProject/Plugins/EasyFirebasePro/Source/EasyFirebase/../ThirdParty/firebase_cpp_sdk/Android/firebase_dependencies.gradle copied to C:/Jenkins/workspace/Client/MyProject/Intermediate/Android/arm64/gradle/app/firebase_dependencies.gradle
 23:25:36   Fixing minSdkVersion; NDK level above 19 requires minSdkVersion of 21 (arch=arm64)
 23:25:36   Deleting unneeded file C:\Jenkins\workspace\Client\MyProject\Intermediate\Android\arm64\gradle\permission_library\src\main\AndroidManifest.xml.
 23:25:36   
 23:25:36   Creating rungradle.bat to work around commandline length limit (using unused drive letter Z:)
 23:25:36   Making .apk with Gradle...
 23:25:37   
 23:25:37   FAILURE: Build failed with an exception.
 23:25:37   
 23:25:37   * What went wrong:
 23:25:37   Could not set process working directory to 'Z:\': could not set current directory (errno 3)
 23:25:37   
 23:25:37   * Try:
 23:25:37   Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
 23:25:37   
 23:25:37   * Get more help at https://help.gradle.org
 23:25:37   Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
 23:25:37   ERROR: cmd.exe failed with args /c "C:\Jenkins\workspace\Client\MyProject\Intermediate\Android\arm64\gradle\rungradle.bat" :app:assembleDebug
 23:25:37 Took 6.7540497s to run UnrealBuildTool.exe, ExitCode=6
 23:25:37 UnrealBuildTool failed. See log for more details. (C:\Jenkins\workspace\UnrealEngine\Engine\Programs\AutomationTool\Saved\Logs\UBT-.txt)
 23:25:37 AutomationTool exiting with ExitCode=6 (6)
 23:25:37 BUILD FAILED

You need to head to your build.gradle file (app) and change your minSdkVersion to 21.您需要前往 build.gradle 文件(应用程序)并将 minSdkVersion 更改为 21。

Happy Coding!快乐编码! :) :)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM