165 words
1 minute
Unity安卓构建的时候, sdk许可被拒绝
2026-10-04
No Tags

在构建的时候发现了个问题, 然后整个构建都被拒绝了:

FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':unityLibrary:GSDKLibrary.androidlib:compileDebugAidl'.
> Failed to install the following Android SDK packages as some licences have not been accepted.
build-tools;33.0.0 Android SDK Build-Tools 33
To build this project, accept the SDK license agreements and install the missing components using the Android Studio SDK Manager.
Alternatively, to transfer the license agreements from one workstation to another, see http://d.android.com/r/studio-ui/export-licenses.html
Using Android SDK: C:\Program Files\Unity\Hub\Editor\2022.3.62f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK
* Try:
> 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.
* Get more help at https://help.gradle.org
BUILD FAILED in 56s
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

其实这个意思是你没有接受许可证, 开一下就好了

Unity安卓构建的时候, sdk许可被拒绝
https://fuwari.vercel.app/posts/notion-3d52a2475d57817a8046d3cbd4f9c792/
Author
Axon
Published at
2026-10-04
License
CC BY-NC-SA 4.0