HELPPPP PLS UE 5.4.1 Error packaging project for Android: I do not agree with the Android SDK license

When packaging, I get an error related to the SDK license. I agreed with all licenses, downloaded the SDK from Android Studio Flamingo 2022.2.1.20
error:

UATHelper: Packaging (Android (ETC2)): Directory doesn’t exist C:/Users/User/AppData/Local/Android//licenses
UATHelper: Packaging (Android (ETC2)): Android SDK license file not found. Please agree to license in Android project settings in the editor.
UATHelper: Packaging (Android (ETC2)): (see C:\Users\User\AppData\Roaming\Unreal Engine\AutomationTool\Logs\D+Unreal+UE_5.4\Log.txt for full exception trace)
UATHelper: Packaging (Android (ETC2)): AutomationTool executed for 0h 0m 34s
UATHelper: Packaging (Android (ETC2)): AutomationTool exiting with ExitCode=1 (Error_Unknown)
UATHelper: Packaging (Android (ETC2)): BUILD FAILED
PackagingResults: Error: Unknown Error

If you are on Windows, locate your android SDK and enter tools\bin folder. For example

C:\path\to\android-sdk\tools\bin

Open it from command line, and then just type this:

sdkmanager --licenses

You will be prompted to accept them, or use this to accept them automatically.

echo y | sdkmanager --licenses