For the newest Android Studio (2.3) the best way to update/accept all licenses is to run:
Android/sdk/tools/bin/sdkmanager --licenses
For the newest Android Studio (2.3) the best way to update/accept all licenses is to run:
Android/sdk/tools/bin/sdkmanager --licenses