无法解析配置 ':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

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

问题描述

在运行/gradle Android 之后在我的 Android 手机中部署 Gluon 应用程序.我有这个错误:

org/controlsfx/control/spreadsheet/SpreadsheetColumn$$Lambda$1保存 lambda 类:org/controlsfx/control/textfield/TextFields$$Lambda$1:mergeClassesIntoJarFAILURE:构建失败,出现异常.* 什么地方出了错:在最新检查期间无法捕获任务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 管理器安装 Extras/Google Repository 和 Extras/Android Support Repository.

还建议在 /Users//.gradle/gradle.properties 下创建一个带有 ANDROID_HOME 变量的属性文件:

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

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

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

存储库 {jcenter()行家{网址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天全站免登陆