Packaging Error UE 4.18.1

![UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): ====05-Dec-17 6:06:37 PM====PREPARING NATIVE CODE=================================================================
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): On build machine.
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): Copying permission_library directory to staging before build
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): Directory D:\Unreal Engine 4.18.1\UE_4.18/Engine/Source/ThirdParty/AndroidPermission/permission_library copied to C:\Users\praj4\Documents\Unreal Projects\MyProject\Intermediate/Android/APK/JavaLibs/permission_library
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): ==== Writing new GameActivity.java file to C:\Users\praj4\Documents\Unreal Projects\MyProject\Intermediate/Android/APK\src\com\epicgames\ue4\GameActivity.java ====
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): Copying new .so D:\Unreal Engine 4.18.1\UE_4.18\Engine\Binaries\Android\UE4Game-armv7-es2.so file to jni folder…
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): Preparing native code for debugging…
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): File D:\Unreal Engine 4.18.1\UE_4.18/Engine/Source/ThirdParty/Oculus/OVRPlugin/OVRPlugin/ExtLibs/libvrapi.so copied to C:\Users\praj4\Documents\Unreal Projects\MyProject\Intermediate/Android/APK/libs/armeabi-v7a/libvrapi.so
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): Copying libOVRPlugin.so
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): File D:\Unreal Engine 4.18.1\UE_4.18/Engine/Source/ThirdParty/Oculus/OVRPlugin/OVRPlugin/Lib/armeabi-v7a/libOVRPlugin.so copied to C:\Users\praj4\Documents\Unreal Projects\MyProject\Intermediate/Android/APK/libs/armeabi-v7a/libOVRPlugin.so
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): File D:\Unreal Engine 4.18.1\UE_4.18/Engine/Source/ThirdParty/Oculus/OVRPlugin/OVRPlugin/ExtLibs/VrApi.jar copied to C:\Users\praj4\Documents\Unreal Projects\MyProject\Intermediate/Android/APK/libs/VrApi.jar
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): File D:\Unreal Engine 4.18.1\UE_4.18/Engine/Source/ThirdParty/Oculus/OVRPlugin/OVRPlugin/ExtLibs/SystemUtils.jar copied to C:\Users\praj4\Documents\Unreal Projects\MyProject\Intermediate/Android/APK/libs/SystemUtils.jar
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): ====05-Dec-17 6:06:49 PM====PERFORMING FINAL APK PACKAGE OPERATION================================================
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): Creating rungradle.bat to work around commandline length limit (using unused drive letter Z:)
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): Making .apk with Gradle…
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): 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’)
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): 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’)
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): Incremental java compilation is an incubating feature.
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): 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’)
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): File C:\Users\praj4.android\repositories.cfg could not be loaded.
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 Sign in - Google Accounts
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.
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): BUILD FAILED
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): Total time: 34.635 secs
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): ERROR: cmd.exe failed with args /c “C:\Users\praj4\Documents\Unreal Projects\MyProject\Intermediate/Android/APK\gradle\rungradle.bat” :app:assembleDebug
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): (see C:\Users\praj4\AppData\Roaming\Unreal Engine\AutomationTool\Logs\D+Unreal+Engine+4.18.1+UE_4.18\UAT_Log.txt for full exception trace)
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): AutomationTool exiting with ExitCode=1 (Error_Unknown)
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): BUILD FAILED
PackagingResults: Error: Unknown Error][1]

I have accepted sdk license as weel as configured project settings it was working all good 2 week back on UE 16 please help.

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 Sign in - Google Accounts

is the error so need to accept the licence before you build.

I did, in fact, accept license agreement see images above.Thanx for answering.

It does say that you need to accept them for them “Android Support Repository”

did you use this guide? Android Quick Start | Unreal Engine Documentation

yes, i did, in fact, see sdk.png file attached above.

I could fix it by updating the toolkit to 27. How: Goto this folder: \NVPACK\android-sdk-windows\tools and run “android.bat”, there you should be able to update.

Thanx Very much I will try it right now.Will update the post later.

Thanx Very Much Ninjin It worked out.It’s been more than a week I am facing this error.Thanx very much.
But l would like to ask how you figured that out.

You say you updated “the toolkit”. What is that? Does it have a specific name?

Just in case you didn’t find it and others need the help…

C:\NVPACK\android-sdk-windows\tools
click android.bat “Windows Batch File”

accept agreement as always and install