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目录。然后,它将能够找到许可证文件夹,它将工作。
更多回答
我是一名优秀的程序员,十分优秀!