无法解析配置':androidRuntimeNoRetrolambdaCopy'的所有依赖项。找不到com.android.support:multidex:1.0.1 [英] Could not resolve all dependencies for configuration ':androidRuntimeNoRetrolambdaCopy'. Could not find com.android.support:multidex:1.0.1

查看:159
本文介绍了无法解析配置':androidRuntimeNoRetrolambdaCopy'的所有依赖项。找不到com.android.support:multidex:1.0.1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

运行/抓取Android后,在我的Android手机中部署Gluon应用程序。我有这个错误:

  org / controlsfx / control / spreadsheet / SpreadsheetColumn $$ Lambda $ 1 
保存lambda类: org / controlsfx / control / textfield / TextFields $$ Lambda $ 1
:mergeClassesIntoJar
FAILURE:构建因异常而失败。

*出了什么问题:
在最新检查期间无法捕获任务'mergeClassesIntoJar'的输入文件的快照。
> java.io.FileNotFoundException:/Users/yotti/Library/Android/sdk/extras/android/support/multidex/library/libs/android-support-multidex.jar(没有这样的文件或目录)

*尝试:
使用--stacktrace选项运行以获取堆栈跟踪。使用--info或--debug选项运行以获取更多日志输出。

在图像中更新JFXPlugin之后,我有这个错误



配置根项目'SingleViewProject'时出现问题。


无法解析配置的所有依赖项':androidRuntimeNoRetrolambdaCopy' 。
找不到com.android.support:multidex:1.0.1。
在以下位置搜索:

解决方案

此处已经提到过问题,Android过时库 Android支持库不再可用。



使用 jfxmobile 插件版本1.3.1解决了这个问题,因为它使用了应该在这里找到的multidex库: ANDROID_HOME / extras / android / m2repository / com / android / support / multidex / 1.0.1 / multidex-1.0 .1.aar



请注意,您需要安装Android SDK Manager Extras / Google Repository和Extras / Android支持存储库。



建议在 / Users /< user> /。gradle / gradle下使用ANDROID_HOME变量创建属性文件.properties

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

并删除build.gradle中的行 - > jfxmobile - > android - > androidSdk。



对于使用错误存储库的Charm依赖项,您需要:

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

最后,您没有显示ControlsFX依赖项,因此无法在第一个中发布异常这个地方。


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

解决方案

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.

这篇关于无法解析配置':androidRuntimeNoRetrolambdaCopy'的所有依赖项。找不到com.android.support:multidex:1.0.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆