gpt4 book ai didi

How to resolve 'Android SDK license file not found' error in UE 5.1 and UE 5.2 despite agreeing to license in Android project settings in the editor?(如何解决在UE 5.1和UE 5.2中,尽管在编辑器中的Android项目设置中同意许可,但仍存在‘Android SDK许可文件找不到’的错误?)

转载 作者:bug小助手 更新时间:2023-10-25 17:46:55 28 4
gpt4 key购买 nike



The problem is that when trying to package an Android project in Unreal Engine 5.1 or 5.2, an error message is displayed stating that the Android SDK license file cannot be found. The error message suggests to agree to the license in the Android project settings in the editor. However, even after clicking the 'Accept SDK Licenses' button in the settings, the button doesn't get grayed out, and the error message continues to appear. This prevents the successful packaging of the Android project.

问题是,当试图在虚幻引擎5.1或5.2中打包Android项目时,会显示一条错误消息,指出找不到Android SDK许可证文件。错误消息建议您在编辑器中的Android项目设置中同意许可。然而,即使在点击设置中的“接受SDK许可证”按钮后,该按钮也不会变灰,错误消息仍会继续出现。这阻碍了Android项目的成功打包。


A successful Android package.

一个成功的安卓程序包。


更多回答
优秀答案推荐

Have you tried to accept the licenses from the command line?

您是否尝试过从命令行接受许可证?


yes | sudo /your/path/to/sdkmanager --licenses


You need to have ANDROID_HOME at your Environment Variables, that refers to your sdk directory. Then it will be able to find licences folder and it will work.

您的环境变量中需要有Android_HOME,它引用您的SDK目录。然后,它将能够找到许可证文件夹,它将工作。


更多回答

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com