x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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?

Product Version: UE 4.18 Preview
Tags:
more ▼

asked Oct 20 '17 at 08:39 PM in Packaging & Deployment

avatar image

Forn
56 2 6 12

avatar image virtualHC Oct 29 '17 at 05:57 AM

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)

 LogPlayLevel: Making .apk with Gradle...
 LogPlayLevel: Observed package id 'build-tools;24.0.0' in inconsistent location 'E:\Android_Projects\Libraries\CodeWorks\android-sdk-windows\build-tools\24.0.1' (Expected 'E:\Android_Projects\Libraries\CodeWorks\android-sdk-windows\build-tools\24.0.0')
 LogPlayLevel: Observed package id 'build-tools;24.0.0' in inconsistent location 'E:\Android_Projects\Libraries\CodeWorks\android-sdk-windows\build-tools\24.0.1' (Expected 'E:\Android_Projects\Libraries\CodeWorks\android-sdk-windows\build-tools\24.0.0')
 LogPlayLevel: Observed package id 'build-tools;24.0.0' in inconsistent location 'E:\Android_Projects\Libraries\CodeWorks\android-sdk-windows\build-tools\24.0.1' (Expected 'E:\Android_Projects\Libraries\CodeWorks\android-sdk-windows\build-tools\24.0.0')
 LogPlayLevel: FAILURE: Build failed with an exception.
 LogPlayLevel: * What went wrong:
 LogPlayLevel: A problem occurred configuring project ':app'.
 LogPlayLevel: > You have not accepted the license agreements of the following SDK components:
 LogPlayLevel: [Android SDK Build-Tools 24.0.2].
 LogPlayLevel: 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.
 LogPlayLevel: 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
(comments are locked)
10|2000 characters needed characters left

8 answers: sort voted first

Its saying its missing Android Support Repository license, for some reason codeworks did not save license for it. One way is to open Android SDK manager in C:\NVPACK\android-sdk-windows\tools located by default. And update Android Support Repository to get license saved.

more ▼

answered Nov 19 '17 at 04:53 PM

avatar image

Roman Gorislavski
93 2 4 6

avatar image vle07 Nov 22 '17 at 09:01 AM

I can't find the Android SDK manager at that location. I found a sdkmanager.bat file at C:\NVPACK\android-sdk-windows\tools\bin, though running that doesn't seem to do anything. Installing Android Studio and pointing UE4 to the SDK downloaded through Android Studio also didn't work for me. Nor did copying over the license generated by Android Studio. I managed to find the Android SDK manager, but it points to the wrong directory. Do you have any other ideas for possible fixes? I'm just reverting back to ant for now, but I would like the reduced build times through gradle.

avatar image Roman Gorislavski Nov 23 '17 at 06:02 AM

under tools folder run android.bat to open Android SDK manager

avatar image vle07 Nov 23 '17 at 07:01 AM

Thanks for the help! I finally got it to build using gradle after following your instructions. I'd recommend this method since it seems like the least amount of work (better than downloading Android Studio and another copy of the SDK)

avatar image 6r0m Feb 12 '18 at 09:34 AM

best solution for me, thank you!

avatar image alleysark Feb 10 '19 at 03:04 PM

Wow! It solves the problem clearly. Thanks a lot!

(comments are locked)
10|2000 characters needed characters left

if you already accept the license agreements, 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

more ▼

answered Oct 26 '17 at 03:08 PM

avatar image

IppolitoGermer
164 8 11 17

avatar image neosphere Oct 28 '17 at 11:37 AM

I disabled "Enable Gradle instead of Ant" in the Project Settings, and it worked! What's the reason on keeping that on that breaks the building process?

avatar image brunogbrito Nov 02 '17 at 11:58 PM

It worked but I had to do some more steps to work with grade enabled. When I deleted the license and build the package it wasn't working, I had to delete my Binaries, Intermediate and Saved folders, start the project, accept the license and make a Full Rebuild.

avatar image JesseDuBord Jan 17 '18 at 09:04 PM

Disabling "Enable Gradle instead of Ant" fixed the issue for me. That said, is there any reason to choose Gradle over Ant? If there's a significant reason why Gradle should be used, a fix would be preferred to a work-around, IMO.

avatar image gursoyhas Jan 29 '19 at 11:23 AM

After upgrading the engine version to 4.21, I had the same issue as mentioned above. I have disabled that option as proposed in the answer, and it worked for me. Thanks for the solution.

(comments are locked)
10|2000 characters needed characters left

For me, the problem was solved by installing Android Studio on top of NVPACK.

  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.

  5. Everything works

more ▼

answered Nov 01 '17 at 02:52 AM

avatar image

Rusel2050
58 1 6 11

avatar image JakobR Feb 01 '19 at 12:02 AM

Installing Android Studio worked for me. The other methods mentioned here did not work for me. Peculiar solution, but I take it!

avatar image lycanish Feb 06 '19 at 02:10 PM

this was also the only resolution that worked for me, thanks for the tip!

(comments are locked)
10|2000 characters needed characters left

You need to accept the Android License. Go in the Project Settings -> Android and click the button to accept

Documentation

more ▼

answered Nov 14 '17 at 12:18 PM

avatar image

Damien2k15
50 9 19 25

(comments are locked)
10|2000 characters needed characters left

The problem seems to be that you didnt accepted the agreements when you installed the android sdk, ndk, etc .Try reinstall them using the "CodeWorksforAndroid-1R6u1-windows.exe" file provided on the Engine\Extras\AndroidWorks\Win64 route of your engine

more ▼

answered Oct 20 '17 at 09:07 PM

avatar image

Daher
266 4 4 5

avatar image Forn Oct 20 '17 at 09:21 PM

Yep, I think the same, but it's not helped. $( reinstalled twice. :(

avatar image Daher Oct 20 '17 at 10:22 PM

Maybe if you open Android Studio once it will ask you to accept te agreements ? or try packing running the engine as admin

avatar image FilAl Oct 22 '17 at 10:27 AM

Better yet (IMHO) download NDK r14b separately in the first place, appoint UE to it (in Project Settings->Platforms->Android SDK) and downgrade your SDK below 25.2.X (you probably have 26.X.X) to avoid further problems.

(comments are locked)
10|2000 characters needed characters left

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.

more ▼

answered Apr 25 '18 at 04:34 AM

avatar image

JeffreyFisher STAFF
73 2 4 3

(comments are locked)
10|2000 characters needed characters left

It start work after I change the SDK destination to the location from Android Studio, not from NVPACK

more ▼

answered Oct 22 '17 at 02:28 PM

avatar image

Forn
56 2 6 12

avatar image cgiteach Oct 27 '17 at 12:52 PM

Can you please tell me what do you mean by the Android Studio location ? Thanks

avatar image Forn Oct 27 '17 at 02:43 PM

I have installed Android Studio, and separated folder for Android SDK location.

(comments are locked)
10|2000 characters needed characters left
more ▼

answered Apr 02 '19 at 06:17 PM

avatar image

jonnyvegas
1 2 3

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question