Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
512 views
in Technique[技术] by (71.8m points)

mobile - Could not resolve all dependencies for configuration ':androidRuntimeNoRetrolambdaCopy'. Could not find com.android.support:multidex:1.0.1

After Run /gradle Android to deploy the Gluon app in my Android Phone. I have this error:

org/controlsfx/control/spreadsheet/SpreadsheetColumn$$Lambda$1
Saving lambda class: org/controlsfx/control/textfield/TextFields$$Lambda$1
:mergeClassesIntoJar
FAILURE: Build failed with an exception.

* What went wrong:
Failed to capture snapshot of input files for task 'mergeClassesIntoJar' during up-to-date check.
> java.io.FileNotFoundException: /Users/yotti/Library/Android/sdk/extras/android/support/multidex/library/libs/android-support-multidex.jar (No such file or directory)

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

After update the JFXPlugin like in the Image ,i have this error

A problem occurred configuring root project 'SingleViewProject'.

Could not resolve all dependencies for configuration ':androidRuntimeNoRetrolambdaCopy'. Could not find com.android.support:multidex:1.0.1. Searched in the following locations: https://jcenter.bintray.com/com/android/support/multidex/1.0.1/multidex-1.0.1.pom https://jcenter.bintray.com/com/android/support/multidex/1.0.1/multidex-1.0.1.jar https://oss.sonatype.org/content/repositories/snapshots/com/android/support/multidex/1.0.1/multidex-1.0.1.pom https://oss.sonatype.org/content/repositories/snapshots/com/android/support/multidex/1.0.1/multidex-1.0.1.jar Required by: :SingleViewProject:unspecified

enter image description here

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

It was already mentioned in this question, Android obsolete library Android Support Library is no longer available.

Using jfxmobile plugin version 1.3.1 solves the issue, as it uses the multidex library that should be found here: ANDROID_HOME/extras/android/m2repository/com/android/support/multidex/1.0.1/multidex-1.0.1.aar.

Note you need to install with the Android SDK Manager both Extras/Google Repository and Extras/Android Support Repository.

Also is advisable to create a properties file with the ANDROID_HOME variable, under /Users/<user>/.gradle/gradle.properties:

ANDROID_HOME=/Users/yotti/Library/Android/sdk

and remove the line in the build.gradle -> jfxmobile -> android -> androidSdk.

As for the Charm dependencies you are using the wrong repository, you need:

repositories {
    jcenter()
    maven {
        url 'http://nexus.gluonhq.com/nexus/content/repositories/releases'
    }
}

Finally, you don't show a ControlsFX dependency, so it is not possible to have the exception posted in the first place.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...