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