You have not accepted the license agreements of the following SDK components [duplicate]
This question already has an answer here: Automatically accept all SDK licences 42 answers I downloaded the latest Android SDK tools version 24.4.1. I used the command line to install SDKs. I typed y when asked Do you accept the license 'android-sdk-license-c81a61d9' [y/n]: y after that install succeeded. But when using Gradle 3.1 to build, the follows shows up You have not accepted the license agreements of the following SDK components: [Android SDK Platform 23, Android SDK Build-Tools 23.0.1]. Before building your project, you need to accept the license agreements and complete the