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

前端 未结 1 1366
感情败类
感情败类 2021-01-19 23:24

I downloaded the Gluon plugin for Netbeans to deploy JavaFX application to Android. It ran successfully on the desktop but when I execute the android task, it t

相关标签:
1条回答
  • 2021-01-20 00:19

    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

    0 讨论(0)
提交回复
热议问题