gradle:找不到com.android.support:multidex:1.0.1 [英] gradle: Could not find com.android.support:multidex:1.0.1
本文介绍了gradle:找不到com.android.support:multidex:1.0.1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我使用gradle(2.1或2.4版本)构建Android Project时,出现以下错误.我在文件中找不到com.android.support:multidex:1.0.1
.
when I use gradle(version 2.1 or 2.4) building Android Project, get the error below. I can not find com.android.support:multidex:1.0.1
in my files.
错误:
config is set to BF688C717A5C3A69FE8CA522643C0A68
config is set to PRODUCT
vcode is set to 151
vname is set to 1.5.1
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':XXXX'.
Could not resolve all dependencies for configuration
':yizhangtong:_rendepeng_lmDebugCompile'.
Could not find com.android.support:multidex:1.0.1.
Searched in the following locations:
.............
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 30.178 secs
推荐答案
您需要从Android SDK管理器安装"Android支持存储库". (如果从命令行安装,也称为extra-android-m2repository
)
You need to install "Android Support Repository" from the Android SDK manager. (a.k.a extra-android-m2repository
if installing from the command line)
**OR**
您需要从Android SDK管理器安装"Android支持库(已淘汰)".
You need to install "Android Support Library(Obsolete)" from the Android SDK manager.
这篇关于gradle:找不到com.android.support:multidex:1.0.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文