# Error with Licence agreements

**URL:** <https://discourse.processing.org/t/error-with-licence-agreements/767>\
**Category:** Processing for Android\
**Created:** [June 7, 2018, 2:38pm UTC](https://discourse.processing.org/t/error-with-licence-agreements/767 "2018-06-07T14:38:54Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![martinstacey](https://avatars.discourse-cdn.com/v4/letter/m/2bfe46/32.png) [@martinstacey](https://discourse.processing.org/u/martinstacey)\
**Post date:** [June 7, 2018, 2:38pm UTC](https://discourse.processing.org/t/error-with-licence-agreements/767/1 "2018-06-07T14:38:54Z")

</div>

Does any body get this error when running your app? how do you solve this???

> 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 [Exporting licenses - Android Studio Project Site](http://d.android.com/r/studio-ui/export-licenses.html)

---

<div class="post-metadata">

**Author:** ![akenaton](https://avatars.discourse-cdn.com/v4/letter/a/a88e4f/32.png) [@akenaton](https://discourse.processing.org/u/akenaton)\
**Post date:** [June 8, 2018, 8:31am UTC](https://discourse.processing.org/t/error-with-licence-agreements/767/2 "2018-06-08T08:31:47Z")

</div>

@martinstacey===  
have you updated your sdk???  
if yes, it seems that you have not checked the license aggrements

---

<div class="post-metadata">

**Author:** ![kfrajer](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kfrajer/32/196_2.png) [@kfrajer](https://discourse.processing.org/u/kfrajer)\
**Post date:** [June 9, 2018, 2:32pm UTC](https://discourse.processing.org/t/error-with-licence-agreements/767/3 "2018-06-09T14:32:40Z")

</div>

How did you install our Android SDK? If you have AS, I bet if you run it it will show you what needs to be updated and any other things that you need to do, like accepting the license. You should be able to do this in the cmd line as well. For this, I will recommend you you do a search on google as I am sure this problem have been seen by many ppl in the Android community.

Kf

---

<div class="post-metadata">

**Author:** ![martinstacey](https://avatars.discourse-cdn.com/v4/letter/m/2bfe46/32.png) [@martinstacey](https://discourse.processing.org/u/martinstacey)\
**Post date:** [June 11, 2018, 2:31am UTC](https://discourse.processing.org/t/error-with-licence-agreements/767/4 "2018-06-11T02:31:31Z")

</div>

Hello I have it updated (version 26.1.1) I just checked for updates and is the last version.  
how do you check the licence agreements??  
I installed android studio, and tried googling the answer, and cant find the answer. I also installed platform 5.0 (Marshmellow) the one that my phone has and get the same error.

---

<div class="post-metadata">

**Author:** ![martinstacey](https://avatars.discourse-cdn.com/v4/letter/m/2bfe46/32.png) [@martinstacey](https://discourse.processing.org/u/martinstacey)\
**Post date:** [June 11, 2018, 4:57am UTC](https://discourse.processing.org/t/error-with-licence-agreements/767/5 "2018-06-11T04:57:47Z")

</div>

then of a lot of research I run into this video

[![](https://img.youtube.com/vi/IvXqvFETzYA/maxresdefault.jpg "You have not accepted the license agreements of the following SDK components") ](https://www.youtube.com/watch?v=IvXqvFETzYA)

you have to accept the licence agreements via command prompt in sdk/tools, but instead of doing it on the android studio folder do it on processing folder  
this is for anyone who faces the same problem.

---

<div class="post-metadata">

**Author:** ![clankill3r](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/clankill3r/32/1098_2.png) [@clankill3r](https://discourse.processing.org/u/clankill3r)\
**Post date:** [November 6, 2018, 2:30pm UTC](https://discourse.processing.org/t/error-with-licence-agreements/767/6 "2018-11-06T14:30:24Z")

</div>

I had problems doing this.  
This worked for me:  
What I did was removing the sdk and android mode.  
Then installed again and processing would ask to download or locate the sdk.  
Then I downloaded it again and it gave me a message to accept the sdk.

If I did the thing from the video I would get:

> Exception in thread “main” java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema  
> at com.android.repository.api.SchemaModule$SchemaModuleVersion.(SchemaModule.java:156)  
> at com.android.repository.api.SchemaModule.(SchemaModule.java:75)  
> at com.android.sdklib.repository.AndroidSdkHandler.(AndroidSdkHandler.java:81)  
> at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:73)  
> at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:48)  
> Caused by: java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlSchema  
> at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582)  
> at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:190)  
> at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)  
> … 5 more
