React-native-vector-icons: Problem with licenses? with SDK 26

Created on 3 Aug 2017  路  18Comments  路  Source: oblador/react-native-vector-icons

I don't know why I'm getting this error. I did upgrade and install SDK 26, 25, 24, 23... and no luck.

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugApk'.
   > A problem occurred configuring project ':react-native-vector-icons'.
      > You have not accepted the license agreements of the following SDK components:
        [Android SDK Build-Tools 26.0.1, Android SDK Platform 26].
        Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager.
        Alternatively, to learn how to transfer the license agreements from one workstation to another, go to http://d.android.com/r/studio-ui/export-licenses.html

I ran ~/Library/Android/sdk/tools/bin/sdkmanager --licenses and accepted all the licenses.

react-native: 0.44
react-native-vector-icons: 4.3.0

Most helpful comment

Ugh, android licenses 馃槗 Maybe try $ANDROID_HOME/tools/bin/sdkmanager "build-tools;26.0.1" "platforms;android-26" and see if that helps.

All 18 comments

Ugh, android licenses 馃槗 Maybe try $ANDROID_HOME/tools/bin/sdkmanager "build-tools;26.0.1" "platforms;android-26" and see if that helps.

I had a problem with wrong $ANDROID_HOME having two SDKs. Thanks for indirectly pointing me to the problem, now it works perfectly!

@DarkHollow Would you mind sharing what you did to solve the issue - I'm having the same..

Had same problem, got resolved after installing Android 6.0 from Android SDK -> SDK Platforms.

image

I found the issue. Removed the doublet end pointed to the correct one:

screen shot 2017-10-13 at 21 58 24

Instalar la versi贸n de Android 6.0 para solucionar el problema.

still i am getting issue You have not accepted the license agreements of the following SDK components:
[Android SDK Build-Tools 26.0.2].

@Anujmoglix You can accept license agreements from command line. Navigate to sdkmanager.
~/Library/Android/sdk/tools/bin Than run sdkmanager ./sdkmanager --licenses and accept the licenses you need. You can read more information about sdkmanager here

Fixed that issue before but wants to know y that issue came suddenly

@romanar I am having same issue but main problem is i am not having bin folder under tools under neither under platform-tools folder what should i do ?

I had the same issue and fixed it by executing "android update sdk" in terminal. I was asked to accept the license. Everything worked after that!

I face the same error, using the right env ANDROID_HOME variable solved for me (linux)

export ANDROID_HOME=~/Android/Sdk
export PATH=$PATH:$ANDROID_HOME/tools

Installing Android "SDK Platform 26" from SDK platforms worked for me

My $ANDROID_HOME was set to sdk-root-directory/tools/bin

I Updated the $ANDROID_HOME to its correct path sdk-root-directory
and added to PATH as $ANDROID_HOME/tools/bin
:)

Muito obrigado, me ajudou muito.

Please go to android studio and download android 8.0

export ANDROID_HOME=/Users/tanfj001/Library/Android/sdk

and run

navigate to _~/Library/Android/sdk/tools/bin_ and type _sdkmanager --update_

Was this page helpful?
0 / 5 - 0 ratings