Android buidl failed: have not accepted the license agreements
Hello, When I try to build the project for Andid I get the next message: UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): Observed package id 'build-tools;25.0.3' in inconsistent location 'F:\NVPACK\android-sdk-windows\build-tools\android-7.1.1' (Expected 'F:\NVPACK\android-sdk-windows\build-tools\25.0.3') UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): FAILURE: Build failed with an exception. UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): What went wrong: UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): A problem occurred configuring project ':app'. UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): > Could not resolve all dependencies for configuration ':app:_debugApk'. UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): > A problem occurred configuring project ':permission_library'. UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): > You have not accepted the license agreements of the following SDK components: UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): [Android Support Repository]. UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): 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. UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): 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 UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): Try: UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. What i do wrong?
(comments are locked)
|
You need to accept the Android License. Go in the Project Settings -> Android and click the button to accept
(comments are locked)
|
One way this can happen is if your package.xml in Engine/Source/ThirdParty/Android is damaged (for example ends up with PC line endings rather than UNIX line endings). If you fix that file you can then delete the android-sdk-license file and then re-accept the eula's in project settings.
(comments are locked)
|
Follow this question
Once you sign in you will be able to subscribe for any updates here
I ran into the same situation but complaining about the Build-Tools. It's strange that it mentions version 24.0.2 while 24.0.1 is what is installed (clean install of CodeWorks)