Android Studio - SDK license issue - Can not import / create / open a project with Gradle
My Android Studio and Gradle was working fine for me a few days ago, i don't know what changed, but now when i am trying to import a project with Gradle, i get the message:
> "You have not accepted the license agreements of the following SDK
> components: [Android SDK Build-Tools 25.0.2]. 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 use Windows 10
* "java -version" on cmd gives me the java version
* when typing sdkmanager --licences i get:
> "'sdkmanager' is not recognized as an internal or external command,
> operable program or batch file."
* Tried to reinstall Andriod Studio, installing newest java version
* The projects i am trying to load are from a Google course in udacity so they should probably work fine (and they did work fine few days ago)
* When I am trying to create a new project with Gradle i get:
> Failed to create directory "C:\Program Files\Projects\b"
* I did accept the License Agreement during the installation of Android Studio
* My User & System environment variables (photo):
https://i.stack.imgur.com/6UqGg.png
Let me know if any other details are needed,
thanks in advance!
Omer
Please sign in to leave a comment.
Please file a bug at https://issuetracker.google.com/issues/new?component=192752&template=0 or ask for help at http://stackoverflow.com/.