# Accept the license agreements

**URL:** <https://forums.unrealengine.com/t/accept-the-license-agreements/407903>\
**Category:** Mobile\
**Tags:** apk, gradle, build, unreal-engine, Android, question\
**Created:** [October 25, 2017, 1:29pm UTC](https://forums.unrealengine.com/t/accept-the-license-agreements/407903 "2017-10-25T13:29:23Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![tranduil](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tranduil](https://forums.unrealengine.com/u/tranduil)\
**Post date:** [October 25, 2017, 1:29pm UTC](https://forums.unrealengine.com/t/accept-the-license-agreements/407903/1 "2017-10-25T13:29:23Z")

</div>

I already accept the lisance agreements in the project settings-android tab in the accept button event its not clickable again but in the build i get this error:

FAILURE: Build failed with an exception.  
UATHelper: Packaging (Android (ATC)): \* What went wrong:  
UATHelper: Packaging (Android (ATC)): A problem occurred configuring project ‘:app’.  
UATHelper: Packaging (Android (ATC)): \> Could not resolve all dependencies for configuration ‘:app:\_debugApk’.  
UATHelper: Packaging (Android (ATC)): \> A problem occurred configuring project ‘:permission\_library’.  
UATHelper: Packaging (Android (ATC)): \> You have not accepted the license agreements of the following SDK components:  
UATHelper: Packaging (Android (ATC)): [Android Support Repository].  
UATHelper: Packaging (Android (ATC)): 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 (ATC)): Alternatively, to learn how to transfer the license agreements from one workstation to another, go to [Sign in - Google Accounts](http://d.android.com/r/studio-ui/export-licenses.html)  
UATHelper: Packaging (Android (ATC)): \* Try:  
UATHelper: Packaging (Android (ATC)): Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.  
UATHelper: Packaging (Android (ATC)): BUILD FAILED

and lastly this:

UATHelper: Packaging (Android (ATC)): ERROR: cmd.exe failed with args /c “C:\Users\Pelin\Desktop\MyProject\Intermediate/Android/APK\gradle\rungradle.bat” :app:assembleRelease

---

<div class="post-metadata">

**Author:** ![Whitrise](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Whitrise](https://forums.unrealengine.com/u/Whitrise)\
**Post date:** [October 25, 2017, 5:08pm UTC](https://forums.unrealengine.com/t/accept-the-license-agreements/407903/2 "2017-10-25T17:08:12Z")

</div>

Same problem. I build my project with Ant but my game stopped and crashing. I build with Gradle and get this error.

---

<div class="post-metadata">

**Author:** ![IppolitoGermer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ippolitogermer/32/462694_2.png) [@IppolitoGermer](https://forums.unrealengine.com/u/IppolitoGermer)\
**Post date:** [October 26, 2017, 3:07pm UTC](https://forums.unrealengine.com/t/accept-the-license-agreements/407903/3 "2017-10-26T15:07:28Z")

</div>

try to delete the “android-sdk-license” file in your android-sdk-windows / licenses directory. and accepts the sdk license again in project settings → android.  
if the problem persists, disable “enable grade instead of ant” in project settings → android

---

<div class="post-metadata">

**Author:** ![tranduil](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tranduil](https://forums.unrealengine.com/u/tranduil)\
**Post date:** [October 27, 2017, 7:57am UTC](https://forums.unrealengine.com/t/accept-the-license-agreements/407903/4 "2017-10-27T07:57:06Z")

</div>

I tryed it several times what you said and with different android export settings even development build doesnt matter every time i get this error i even delete entire nvpack and redownload but none of it seems working

---

<div class="post-metadata">

**Author:** ![cgiteach](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/cgiteach/32/559818_2.png) [@cgiteach](https://forums.unrealengine.com/u/cgiteach)\
**Post date:** [October 27, 2017, 11:33am UTC](https://forums.unrealengine.com/t/accept-the-license-agreements/407903/5 "2017-10-27T11:33:46Z")

</div>

Same problem on my end. Also did a clean install of the CodeWorksforAndroid-1R6u1-windows, and refreshed the license several times.  
Also now apps that used to package for GearVR under 4.17 don’t seem to work even with ANT on 4.18.

---

<div class="post-metadata">

**Author:** ![Juanmilanese](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/juanmilanese/32/88709_2.png) [@Juanmilanese](https://forums.unrealengine.com/u/Juanmilanese)\
**Post date:** [October 31, 2017, 8:29pm UTC](https://forums.unrealengine.com/t/accept-the-license-agreements/407903/6 "2017-10-31T20:29:33Z")

</div>

Any Luck with this? I’m having the same Issue

LogPlayLevel: A problem occurred configuring project ‘:app’.  
LogPlayLevel: \> Could not resolve all dependencies for configuration ‘:app:\_debugApk’.  
LogPlayLevel: \> A problem occurred configuring project ‘:permission\_library’.  
LogPlayLevel: \> You have not accepted the license agreements of the following SDK components:  
LogPlayLevel: [Android Support Repository].

Never had this problem in 4.16 and 4.17

---

<div class="post-metadata">

**Author:** ![IppolitoGermer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ippolitogermer/32/462694_2.png) [@IppolitoGermer](https://forums.unrealengine.com/u/IppolitoGermer)\
**Post date:** [November 1, 2017, 7:37pm UTC](https://forums.unrealengine.com/t/accept-the-license-agreements/407903/7 "2017-11-01T19:37:20Z")

</div>

try the @Rusel2050 solution

1. Downloaded Android Studio
2. Installed Android Studio. She found a folder with the Android SDK installed, I did not change it.
3. Removed the license from / android-sdk-windows / licenses.
4. Accepted the license in Ue4 again.

---

<div class="post-metadata">

**Author:** ![uzywmaly](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@uzywmaly](https://forums.unrealengine.com/u/uzywmaly)\
**Post date:** [November 16, 2017, 1:39pm UTC](https://forums.unrealengine.com/t/accept-the-license-agreements/407903/8 "2017-11-16T13:39:25Z")

</div>

Removing the license file didn’t work for me, but forcing the use of Ant through the setting you suggested did the trick. Thanks.

---

<div class="post-metadata">

**Author:** ![THIRTEENDAYS](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/thirteendays/32/1056624_2.png) [@THIRTEENDAYS](https://forums.unrealengine.com/u/THIRTEENDAYS)\
**Post date:** [November 18, 2017, 11:03am UTC](https://forums.unrealengine.com/t/accept-the-license-agreements/407903/9 "2017-11-18T11:03:49Z")

</div>

You can do it this way

write on the command line: android update sdk --no-ui --filter build-tools-25.0.0,android-25,extra-android-m2repository

then press y

it’s worked

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_ebb22d8c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ebb22d8c](https://forums.unrealengine.com/u/anonymous_user_ebb22d8c)\
**Post date:** [November 18, 2017, 10:08pm UTC](https://forums.unrealengine.com/t/accept-the-license-agreements/407903/10 "2017-11-18T22:08:56Z")

</div>

This worked. I rebuilt my PC this week and was running into this error when trying to launch on GearVR. Using the command line you provided solved the problem for me. Thanks!

---

<div class="post-metadata">

**Author:** ![Markgearvr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Markgearvr](https://forums.unrealengine.com/u/Markgearvr)\
**Post date:** [November 27, 2017, 1:57pm UTC](https://forums.unrealengine.com/t/accept-the-license-agreements/407903/11 "2017-11-27T13:57:11Z")

</div>

hi, if you clicked the small help box at the error it would of opened here lol

> **[Android Quick Start](https://docs.unrealengine.com/5.1/en-US/setting-up-unreal-engine-projects-for-android-development/)**
>
> Setting up for development for the Android platform.

---

<div class="post-metadata">

**Author:** ![Carlo\_Gioventu](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/carlo_gioventu/32/1008006_2.png) [@Carlo\_Gioventu](https://forums.unrealengine.com/u/Carlo_Gioventu)\
**Post date:** [November 28, 2017, 2:39pm UTC](https://forums.unrealengine.com/t/accept-the-license-agreements/407903/12 "2017-11-28T14:39:40Z")

</div>

got the same problem, open the license file in android sdk with notepad, it should have only a key like this 8933bad161af4178b1185d1a37fbf41ea5269c55, but when you accept the sdk license it puts a white line before and have error.

just remove the white line
