UE5 error when packaging

i get this error and dont know what to do:

UATHelper: Packaging (Android (ASTC)): Directory doesn’t exist C:/Users/User/AppData/Local/Android/Sdk/platforms/android-30/licenses
UATHelper: Packaging (Android (ASTC)): ERROR: Android SDK license file not found. Please agree to license in Android project settings in the editor.

I’ve spent over 20 hours on trying to solve this please help!

Are you goggle the problem?

“Please agree to license in Android project settings in the editor.”

Thank you for reply. Yes I have searched for days now. It has led me to this:
Caused by: java.lang.ClassNotFoundException at BuiltinClassLoader.java
Down the rabbit hole i go…

C:**/Users/User/**AppData/Local/Android/Sdk/platforms/android-30/licenses
the directory is in correct… check you platform Android directories.