Cannot expand ZIP 'Library/Android/sdk/extras/android/support/multidex/library/libs/android-support-

1,206 views
Skip to first unread message

rino.van.w...@gmail.com

unread,
Nov 16, 2015, 3:43:01 PM11/16/15
to JavaFXAndroid
Hi,

I created a BasicGluonApplication with the wizard in eclipse and set ANDROID_HOME
(i installed Android 5.0.1 (api level 21) and Android 5.1.1 (api level 22))


After running './gradlew androidInstall' i get:
....
Download https://jcenter.bintray.com/org/javafxports/jfxdvk/8u60-b3/jfxdvk-8u60-b3.pom
Download https://jcenter.bintray.com/org/javafxports/jfxdvk/8u60-b3/jfxdvk-8u60-b3.jar
:mergeClassesIntoJar FAILED

FAILURE: Build failed with an exception.

* What went wrong:

Execution failed for task ':mergeClassesIntoJar'.

> Cannot expand ZIP 'Library/Android/sdk/extras/android/support/multidex/library/libs/android-support-multidex.jar' as it does not exist.


What can i do?


Regards
Rino

José Pereda

unread,
Nov 18, 2015, 4:15:40 AM11/18/15
to JavaFXAndroid, rino.van.w...@gmail.com
Check the documentation. You need to install from the Android SDK Manager:
- the Build-tools,
- the SDK Platform for API 21/22/23
- from Extras the Android Support Library

Once you have it, check the file 'ANDROID_HOME/extras/android/support/multidex/library/libs/android-support-multidex.jar' exists.

Jose

Radu Toader

unread,
Jun 13, 2016, 6:49:31 AM6/13/16
to JavaFXAndroid, rino.van.w...@gmail.com
You must go to Extras , check obsolete, then check android support repository.


but I have a problem now including dependencies in my project.


error : 
Caused by: com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK META-INF/LICENSE.txt
File 1: /home/user/.gradle/caches/modules-2/files-2.1/commons-lang/commons-lang/2.6/ce1edb914c94ebc388f086c6827e8bdeec71ac2/commons-lang-2.6.jar
File 2: /home/tuser.gradle/caches/modules-2/files-2.1/commons-lang/commons-lang/2.6/ce1edb914c94ebc388f086c6827e8bdeec71ac2/commons-lang-2.6.jar


my build.gradle file :


buildscript {
    repositories {
        jcenter()
    }
 
    dependencies {
        classpath 'org.javafxports:jfxmobile-plugin:1.0.8'

    }
}

apply plugin: 'org.javafxports.jfxmobile'

mainClassName = 'application.WeatherFXApplication'
//version = '8u40'

repositories {
    jcenter()
}

jfxmobile {
    ios {
        forceLinkClasses = ['application.**.*']
    }
    android {
        applicationPackage = 'application'
    }
}

dependencies {

compile group: 'log4j', name: 'log4j', version: '1.2.17'
compile group: 'commons-lang', name: 'commons-lang', version: '2.6'
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.4'
compile group: 'commons-net', name: 'commons-net', version: '3.5'
compile group: 'commons-io', name: 'commons-io', version: '2.5'
compile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.2'
compile group: 'org.codehaus.jackson', name: 'jackson-jaxrs', version: '1.9.12'

}


Reply all
Reply to author
Forward
0 new messages