sta*_*oid 7 android build.gradle android-gradle-plugin
当我使用gradle(版本2.1或2.4)构建Android Project时,得到以下错误.我com.android.support:multidex:1.0.1在我的文件中找不到.
错误:
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
Run Code Online (Sandbox Code Playgroud)
che*_*box 18
您需要从Android SDK管理器安装"Android Support Repository".(也就是extra-android-m2repository从命令行安装)
**OR**
Run Code Online (Sandbox Code Playgroud)
您需要从Android SDK管理器安装"Android Support Library(Obsolete)".
这个问题存在于Android studio Beta版本 唯一的解决办法是使用
repositories {
maven {
url 'https://maven.google.com'
}
}
Run Code Online (Sandbox Code Playgroud)
在项目gradle文件中
| 归档时间: |
|
| 查看次数: |
20624 次 |
| 最近记录: |