Error: Performing final apk package

I’m trying to deploy the sample project side-scroller on my android phone, but I have this error:
ERROR: cmd.exe failed with args /c “C:\Users\Gabriele\Documents\Unreal Projects\AndroidTest\Intermediate/Android/APK\gradle\rungradle.bat” :app:assembleDebug

The licenses are all accepted

217877-path-variables.png

[link text][3]
I’ve tried also with the 4.17 version and I have the same problem

Hi, you must accept sdk license.
Project settings → android

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 gradle instead of ant” in project settings → android

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.