你好我想创建一个android apk。
并且需要使用来自" com.mcxiaoke.volley"和" com.android.support:appcompat"
请为我的应用程序提供构建应用程序。
当前构建应用程序是:
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
//buildToolsVersion "23.0.2"
buildToolsVersion "23.0.1"
defaultConfig {
applicationId "boxweb.asia.shopcenter"
minSdkVersion 14
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies
{
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.android.support:design:23.1.1'
compile 'com.android.volley:volley:1.0.0'
}
但不能正常工作并显示错误。
错误是:http://up.vbiran.ir/uploads/45106145544003944084_Untitled-1.jpg
我无法下载" https://jcenter.bintray.com/com/android/volley/volley/1.0.0/volley-1.0.0.pom"在android-studio中,但可以在浏览器中下载。
帮我从文件安装插件。
请帮帮我
答案 0 :(得分:1)
只需将compile 'com.mcxiaoke.volley:library:1.0.19
添加到 gradle.build 依赖关系模块即可添加凌空支持。
dependencies
{
compile 'com.mcxiaoke.volley:library:1.0.19'
}
答案 1 :(得分:1)
确保您的依赖项中包含jcenter()
。所以你的build.gradle应该有:
repositories {
jcenter()
}
dependencies {
compile 'com.android.volley:volley:1.0.0'
}
注意:
repositories
阻止可以位于您的根build.gradle
或您的app/build.gradle
。