gpt4 book ai didi

java - 想在android项目中使用com.mcxiaoke.volley

转载 作者:行者123 更新时间:2023-12-02 03:56:37 26 4
gpt4 key购买 nike

你好,我想创建一个 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 enter image description here

我无法在 android-studio 中下载“https://jcenter.bintray.com/com/android/volley/volley/1.0.0/volley-1.0.0.pom”,但可以在浏览器中下载。

帮我从文件安装插件。

请帮助我

最佳答案

只需将 compile 'com.mcxiaoke.volley:library:1.0.19 添加到 gradle.build 依赖模块即可添加 volley 支持。

dependencies 
{
compile 'com.mcxiaoke.volley:library:1.0.19'
}

浏览Android Volley Library

关于java - 想在android项目中使用com.mcxiaoke.volley,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35389869/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com