在打包安卓时启用 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
|