-
Notifications
You must be signed in to change notification settings - Fork 657
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
You have not accepted the license agreements of the following SDK components: [Google Repository]. #1726
Comments
I also encountered this problem today. |
Did you find a solution to this problem? I am facing a similar issue. |
I found the fix it's because there are two missing packages called google repository and android repository. You can go to android sdk manager by android sdk command and navigate to extras folder there you can select both packages and install them. The issue will be resolved. |
@smitthakkar96 Those licenses should have already been downloaded to android-sdk-home/licenses directory. |
@IgorGanapolsky No those aren't, they are really large packages. Can you please put effort to check whether Google Repository Package is installed or not. |
I solved this problem just installed these components in "Android 7.0 (API 24)": |
Thank you esase for posting this. I even installed the 7.1.1 (API 25) but no luck. I installed just the SDK platform, Google APIs, and Sources for Android SDK; the build was successful. |
Take note which API level and install that version |
@ksummersill You need to install the "Android 7.0 (API 24)" and not "Android 7.1.1 (API 25). |
Configure > SDK Manager > Launch Standalone SDK Manager |
You will run into an issue like this whenever your Android Studio's packages are outdated, as building will occur in the latest stable releases. To fix, do the following: Android Studio > Preferences > Appearance & Behavior > System Settings > Android SDK |
I just checked for updates in Android studio settings, installed them, and the problems was solved. |
Update the your android gradle, its working fine |
@gbrits
|
@SKempin |
I'm still getting the following error after installing the latest SDK's. Any advice? Thanks! Checking the license for package Google Repository in /usr/local/Caskroom/android-sdk/3859397,26.0.1/licenses FAILURE: Build failed with an exception.
BUILD FAILED |
The solution for Android Studio is here -> #1726 (comment) The solution for Android SDK (stand-alone) is here -> #1726 (comment) I'll expand on the latter a bit. First, make sure you have the latest Android SDK installed. 📝 If the These commands may need slight tweaking for Windows: cd $ANDROID_HOME
./tools/bin/sdkmanager --licenses The sdk manager utility will walk you through licenses which need accepting. |
check Google APIs 23.0.1 up in Android studio and the bug gone. |
You can simply solve that. Please open |
If you are using the Android SDK Manager GUI and license is still rejected, try this which worked for me:
|
Open the "sdkmanager.bat --update" via command line then select "Y" , enter and wait until finish. I hope this helps. |
My I Updated the |
If the problem persists you can try reinstalling the platform
|
actually you can just go to cmd |
You can face this problem if you have installed the SDK but have not accepted the license agreement.
If anybody still facing the issue then please follow the link for the solution |
This comment has been minimized.
This comment has been minimized.
For those coming to this issue now... The solution is here 👉 #1726 (comment)(make sure all required packages are installed first by following our Android Setup docs, making sure you also install an SDK Platform fully) If you don't use Android Studio, here's what you have to do: #1726 (comment) |
I'm using cordova push plugin plugin for push notifications I've installed google repository and google play services packages from android SDK manager., but when ever I execute ionic build android to create build its gives me following error.
FAILURE: Build failed with an exception.
BUILD FAILED
Total time: 13.856 secs
A problem occurred configuring root project 'android'.
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Error: cmd: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.
A problem occurred configuring root project 'android'.
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
The text was updated successfully, but these errors were encountered: