You have not accepted the license agreements of the following SDK components
To solve this problem you just need to accept the terms and conditions of the SDK component. To accept the terms and conditions you can use a command line tool
sdkmanageris a command line tool that allows you to view, install, update, and uninstall packages for the Android SDK. If you’re using Android Studio, then you do not need to use this tool and you can instead manage your SDK packages from the IDE.
You can find the
sdkmanager tool provided in the Android SDK Tools package (For Android version 25.2.3 or higher).
We can solve this problem in 2 simple steps:
1. Go to SDK -> tool -> bin using the following command
2. Run the following command to ask for licenses acceptance
It will show you the terms and condition which you have to accept by simply entering y-> Yes or n-> No
That’s it. Now you can run your project again.
This is how you can solve the problem of “You have not accepted the license agreements of the following SDK components”. I hope you have also solved the problem. If you have any doubt or you want to share something about the topic you can comment below or contact us here. There will be more posts coming soon. Stay tuned!
Hope you liked it. 🙂