Error after running the default Gluon project (: dex FAILED)

半世苍凉 提交于 2019-12-01 19:54:09

I had the same problem now it's solved .Now I am able to compile and make my android apk .

So these are the steps I followed

  1. Make sure you have updated your sdk manager -> support library to latest version (23.1.1) it was the latest for me when I posted this answer. This will update

H:\sdk\extras\android\support\multidex files

  1. Make sure you add your android sdk location in build.gradle androidSdk='H:/ADT BUNDLE/sdk'

like this

buildscript {
    repositories {
        jcenter()
    }
    dependencies {

           classpath 'org.javafxports:jfxmobile-plugin:1.0.0-b9'


    }
}

apply plugin: 'org.javafxports.jfxmobile'


repositories {
    jcenter()
}

mainClassName = 'com.fff.Fff'

jfxmobile {
    android {
        manifest = 'src/android/AndroidManifest.xml'
        androidSdk='H:/ADT BUNDLE/sdk'

    }
}

If you are working in a 32 bit PC

Set environment variable name JAVA_OPTIONS with value Xmx1024M

If you are working in a 64 bit PC

make sure you install JDK that is 64 bit and not 32 bit JDK

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!