How can I install "Android Support Library" to deploy a Gluon Mobile application to Android?

Solution 1:

It has been asked here and here, but since the answers are in different contexts, maybe it's worthy having a summary here.

Up until version 1.2.0, the jfxmobile plugin has been working with the obsolete Android Support Library.

Now this library is not only obsolete but not available any more for download.

The current version of the jfxmobile plugin is 1.3.2, and it includes the required changes to work without that library, and use the multidex-1.0.1.aar library instead.

To make it work, just follow these steps:

  • Open the Android SDK Manager and make sure you have installed Extras/Google Repository and Extras/Android Support Repository.

  • Make sure you have this library: ANDROID_HOME/extras/android/m2repository/com/android/support/multidex/1.0.1/multidex-1.0.1.aar.

Now on your project:

  • Update the build.gradle file of your project to use the jfxmobile plugin current 1.3.2 version

  • If you add to the android configuration the android SDK path, you should move it to a properties file. For that, just create a properties file under C:\Users\<user>\.gradle\gradle.properties, and add the ANDROID_HOME variable: ANDROID_HOME=C:/<path.to.Android>/sdk. And remove the androidSdk from the android block if it was added.

  • Save and reload your project so the new configuration takes place (On the projects tab, root of the project, right click, Reload Project).

EDIT

If you are on Windows, make sure that Android SDK is installed under a location where gradle will have enough permissions to create folders and extract the .aar file.