Netbeans 8.1, Gluon Project Android Error -


i'm using netbeans 8.1, gluon , nbandroid plugins, on windows 8.1, , when create gluon basic project can't run on android platform, error android_home, in last 2 days have searched lot tries have made don't help.

here error:

caused by: org.gradle.internal.exceptions.locationawareexception: android_home not specified. either set gradle property, system environment variable or directly in build.gradle setting extension jfxmobile.android.androidsdk. caused by: org.gradle.api.gradleexception: android_home not specified. either set gradle property, system environment variable or directly in build.gradle setting extension jfxmobile.android.androidsdk. 

i tried sample project gluon, , error still appears, if create android project (nbandroid, not gluon) , run it, ok.

i see same difference other questions on project, when create gluon basic project automatically android project created, don't see on lot of movies watch on youtube.

when create project gluonapplicationtest automatically apear android

can me, please? if more data needed, can upload it.

you can have @ javafxports documentation on prerequisites started.

there several options on how set android_home. basically:

define androidsdk property under jfxmobile.android in build.gradle:

jfxmobile {     android {         manifest = 'src/android/androidmanifest.xml'         androidsdk = 'c:/<path to>/android/sdk'     } } 

or create file named grade.properties, , place in local gradle folder (c:/users/<user>/.gradle), adding property:

android_home=c:/<path to>/android/sdk 

if use second option, won't need take care of adding time on new projects.

also find local file added on netbeans projects, in gradle home folder:

gradle


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -