Netbeans 8.1, Gluon Project Android Error

1

I have a problem and after two days of searching and several attempts here I am waiting for help.

I started using Netbeans 8.1 for the first steps in Java, everything went well until I wanted to go a little bit and I was very interested in JavaFX that with the Gluon plugin we can create a simultaneous desktop and android application with Gluon project I can not run on Android, error:

  

Caused by: org.gradle.internal.exceptions.LocationAwareException:   ANDROID_HOME not specified. Either set it as a gradle property, the   system environment variable or directly in your build.gradle by   setting the extension jfxmobile.android.androidSdk.

     

Caused by: org.gradle.api.GradleException: ANDROID_HOME not specified.   Either set it as a gradle property, a system environment variable or   directly in your build.gradient by setting the extension   jfxmobile.android.androidSdk.

I have already seen several explanations for this error but none of them worked, so I decided to download the HelloWorld project from Gluon itself, and testing the exact same error appears.

So I thought, I'm going to create a root project for android, (with the nbandroid plugin), I created a simple project to present Bomdia, and running it runs perfectly in the emulator ...

Can anyone help me? If I need any more information I am at your disposal. Thanks in advance.

    
asked by anonymous 07.02.2016 / 19:43

1 answer

1

Dear Sílvio, Have you installed android sdk? If not, install. You can download through this page:

link

Next, you need to create an environment variable called "ANDROID_HOME". If you are using Windows , go to: Control Panel > System > Advanced system settings > Environment Variables > New. In the window that will open, where is "Name of variable" put "ANDROID_HOME" and in "Value of variable" put the location of sdk in your PC. See my example below:

Createa"default" Gluon project and test. I hope I have helped.

Hugs!

    
31.03.2017 / 16:12