Emulator license not accepted, but I used auto-downloader


#1

Processing automatically installed android SDK and image, then I run the example project , it doesnt work, I have a black screen, then I decide to close and start again emulator, and I got this error:

Build folder: C:\Users\user\AppData\Local\Temp\android7022333184402918027sketch
Checking the license for package Android SDK Build-Tools 26.0.2 in C:\Users\user\Desktop\PDE-Projects\android\sdk\licenses
Warning: License for package Android SDK Build-Tools 26.0.2 not accepted.

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring project ‘:app’.

You have not accepted the license agreements of the following SDK components:
[Android SDK Build-Tools 26.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

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

  • Get more help at https://help.gradle.org

BUILD FAILED in 0s


#2

I have the same problem.
I installed everything from scratch, but it doesn’t help.
I launched android/sdk/tools/bin with the --licenses parameter, and I had a message saying that

“All SDK packages licenses accepted”.

But alas, it still doesn’t work.
Could it be a setting problem ? A missing link to the license file ?


#3

@Jean-no===
try to install manually ans dont forget to accept the license when it is asked for


#4

I’ll have to try the manual installation, yes. But I want to avoid it, I’d really want to understand.
At some point I got this message :

Unable to load analytics settings: Unable to parse settings file C:\Users\Jean-no.android\analytics.settings
Unable to create new analytics settings: Unable to lock settings file C:\Users\Jean-no.android\analytics.settings

It seems to me like if the SDK was unable to write something.


#5

I have the same problem. Tried to unistall and reinstall, but problem still remains.I don´t know how to install SDK set in separate? I can´t realize how to accept the SDK license as the error msg suggest.
I´m waiting for some suggestion.
Tks


#6

@rpnogue===
the most simple way i think is (now, since 24, and it is an android calculated choice) to download android studio: it installs the SDK where you want and then you can use it with AS or put it where was the P5 autodownloaded installed one. Then open the SDK manager and look for updates available: when you downloaded them thre will be a window with check license: check the license agreement button.


#7

Akenaton, tks by your repply.

I have already AS installed. Trying to follow your support advise, I uninstalled it and installed Android SDK as stand alone pkt, being aware of the acceptance check box (indeed, if I dont´t accept, the installation stops). Anyway, I completed the process succssefully.
But didn’t work. The error message remains.
Would you have new suggestion? Thank you by your support.

"
Build folder: C:\Users\regin\AppData\Local\Temp\android4315070010228256259sketch
Checking the license for package Android SDK Build-Tools 26.0.2 in C:\Users\regin\Documents\Processing\android\sdk\licenses
Warning: License for package Android SDK Build-Tools 26.0.2 not accepted.

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring project ‘:app’.

You have not accepted the license agreements of the following SDK components:
[Android SDK Build-Tools 26.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
"


#8

I have some News (not necessarily good News).

I followed the instructions in the error msg and accepted all open licenses. To do that, I made the following:

a)- Opened a cmd Windows (the old DOS window);
b)- Navegated to C:\Users\regin\AppData\Local\Android\Sdk\tools\bin directory;
c)- Executed sdkmanager --licenses;

All pending licenses acceptances will be shown with a prompt to accept them. A new command shows that there´s no pending acceptance packet for SDK Tools.

OK, after that, the Processing error msg is still there. No change.

It seems that the SDK packets used by Processing are not the same as the Android Studio packets. But I can’t find where they are. There is no file named SDK Tools or similar in the Processing installation directories.

That’s my report. If someone could help, I thank in advance.


I´m editing this post because Fórum Administration doesn´t allow more then 3 replies. Consider this msg as a new reply. I´m sorry by this.

"
@akenaton

@rpnogue===
stupid question in order to be sure to understand: have you 2 SDK installed (1 by AS && the other by P5 - autodownloaded)?
"

Not a stupid question.
Right now, yes. There are 2 SDK installed because I unistalled AS completely and installed stand alone SDK kit. Later, I reinstalled AS.

Just unistalled SDK stand alone. And same error.

Inside AS, unistalled SDK Tools and platform. And same error,

Dont´t know whatmore to do.

Tks by repply.


#9

@rpnogue===
stupid question in order to be sure to understand: have you 2 SDK installed (1 by AS && the other by P5 - autodownloaded)?


#10

@rpnogue ===

  • As for me i would try to install AS and its SDK; then i would verify that everything is working with AS and what is the AS SDK version (must be 26.02)

  • Then i would open the P5 preferences (P5 must be closed when doing that) and modify the line (at the very begiining of preferences- in order to point P5 towards the AS SDK.

  • Another solution could be to download the last downloadable version of the Android SDK (if i remember it is 24+) and replace the autodownloaded SDK with it; if P5 accepts it (???) i would update this SDK with the SDK manager…


#11

Tank you a lot by the suggestions. Very kind. I tracked your guide and have concluded that AS is fine. The problem were with Processing configuration. After deeper research, I found one suggestion: change SDK directory in Preferences.txt. It worked fine.
So, in short, the solution path is manually acept the licenses and reconfigure Preferences.txt.

I don´t know your timezone, but here is night. Good night for you, have a nice saturday.


Gradle install fails