Packing Android package . something wrong

LogPlayLevel: Observed package id ‘build-tools;25.0.3’ in inconsistent location ‘C:\NVPACK\android-sdk-windows\build-tools\android-7.1.1’ (Expected ‘C:\NVPACK\android-sdk-windows\build-tools\25.0.3’)
LogPlayLevel: Observed package id ‘build-tools;25.0.3’ in inconsistent location ‘C:\NVPACK\android-sdk-windows\build-tools\android-7.1.1’ (Expected ‘C:\NVPACK\android-sdk-windows\build-tools\25.0.3’)
LogPlayLevel: Incremental java compilation is an incubating feature.
LogPlayLevel: Observed package id ‘build-tools;25.0.3’ in inconsistent location ‘C:\NVPACK\android-sdk-windows\build-tools\android-7.1.1’ (Expected ‘C:\NVPACK\android-sdk-windows\build-tools\25.0.3’)
LogPlayLevel: File C:\Users\76928.android\repositories.cfg could not be loaded.
LogPlayLevel: FAILURE: Build failed with an exception.
LogPlayLevel: * What went wrong:
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].
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 Sign in - Google Accounts
LogPlayLevel: * Try:
LogPlayLevel: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
LogPlayLevel: BUILD FAILED
LogPlayLevel: Total time: 11 mins 57.425 secs
LogPlayLevel: ERROR: cmd.exe failed with args /c “E:\Projects\UE4_Game\SunTeple\Intermediate/Android/APK\gradle\rungradle.bat” :app:assembleDebug
LogPlayLevel: (see C:\Users\76928\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.18\UAT_Log.txt for full exception trace)
LogPlayLevel: AutomationTool exiting with ExitCode=1 (Error_Unknown)
LogPlayLevel: Completed Launch On Stage: Deploy Task, Time: 737.761651
LogPlayLevel: BUILD FAILED

This happened to me, despite hitting the “Accept Licenses” in the “Android” section of the build settings, you need to accept more. I found Packing Android package . something wrong - Mobile - Epic Developer Community Forums had and answer from dixfn7m:

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 took a loooooong time to run and download more android junk, but it worked.

I’m using 4.25 and I’m getting the same error . Will this work in 4.25 ?