ue4 安卓打包启用 Enable Gradle instead of ant 打包失败

[复制链接]
查看4846 | 回复1 | 2019-3-26 10:09:23 | 显示全部楼层 |阅读模式
在打包安卓时启用 Enable Gradle instead of ant  打包失败,4.21
: Warning: Warning: License for package Android SDK Build-Tools 26.0.2 not accepted.
LogPlayLevel: FAILURE: Build failed with an exception.
LogPlayLevel: * What went wrong:
LogPlayLevel: A problem occurred configuring project ':app'.
LogPlayLevel: > You have not accepted the license agreements of the following SDK components:
LogPlayLevel: [Android SDK Build-Tools 26.0.2].
LogPlayLevel: Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager.
LogPlayLevel: Alternatively, to learn how to transfer the license agreements from one workstation to another, go to http://d.android.com/r/studio-ui/export-licenses.html
LogPlayLevel: * Try:
LogPlayLevel: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
LogPlayLevel: * Get more help at https://help.gradle.org
LogPlayLevel: BUILD FAILED in 19s
LogPlayLevel: Error: ERROR: cmd.exe failed with args /c "C:\Users\armaa\OneDrive\Documents\Unreal Projects\VRTest\Intermediate/Android/APK\gradle\rungradle.bat" :app:assembleDebug
LogPlayLevel: (see C:\Users\armaa\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+(x86)+UE_4.21\Log.txt for full exception trace)
LogPlayLevel: AutomationTool exiting with ExitCode=1 (Error_Unknown)
LogPlayLevel: Completed Launch On Stage: Deploy Task, Time: 28.787234
LogPlayLevel: BUILD FAILED
PackagingResults: Error: Launch failed! Unknown Error
失败原因无法接受协议:
have not accepted the license agreements
解决方案:将 4.22版本的  UE_4.22\Engine\Source\ThirdParty\Android 下的 package.xml 文件 复制替换4.21的原先文件,然后在引擎中重新配置接受协议即可。






https://forums.unrealengine.com/development-discussion/android-development/1577669-license-for-android-build-tools-not-accepted
ttt123 | 2019-3-26 14:04:33 | 显示全部楼层
很明显啊,Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager.
应该是 Android SDK Build-Tools 没装好吧,检查下
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

15

主题

401

回帖

3282

积分

中阶编码师

积分
3282