Android Studio无法解析:com.github.PhilJay:MPAndroidChart:v2.1.3 [英] Android Studio Failed to resolve:com.github.PhilJay:MPAndroidChart:v2.1.3

查看:232
本文介绍了Android Studio无法解析:com.github.PhilJay:MPAndroidChart:v2.1.3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我一个月前在我的项目中使用图表库时,它运行正常,但现在我已经重新安装了android studio,在我构建项目时,它给出了gradle同步错误。

Hi all i am using charts library in my project a month ago it was working fine but now i have reinstalled android studio and when i build my project it gives gradle sync error.


无法解决:com.github.PhilJay:MPAndroidChart:v2.1.3

Failed to resolve:com.github.PhilJay:MPAndroidChart:v2.1.3

I卡在这个关于如何解决这个问题的任何建议上。我的android studio版本是2.1

I am stuck on this any suggestions how to solve this.My android studio version is 2.1

这里是项目依赖项

apply plugin: 'com.android.application'

android {
    compileSdkVersion 22
    buildToolsVersion '23.0.2'

    defaultConfig {
        applicationId "com.app.comismv"
        minSdkVersion 14
        targetSdkVersion 22
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

repositories {
    maven {
        jcenter()
        url "https://jitpack.io"
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:22.2.0'
    compile 'com.github.PhilJay:MPAndroidChart:v2.1.3'
    compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.3'
    //compile 'com.cardiomood.android:android-widgets:0.1.1'
}

预先感谢

推荐答案

我遇到了同样的问题,这是 MPAndroidChart-v2.2.5.jar jar文件。

I had the same problem, here is the latest version of MPAndroidChart-v2.2.5.jar jar file.

只需将 MPAndroidChart-v2.2.5.jar 放入 app / libs /

并添加

dependencies {
    .
    .
    compile files('libs/MPAndroidChart-v2.2.5.jar')
} 

在gradle文件中

这篇关于Android Studio无法解析:com.github.PhilJay:MPAndroidChart:v2.1.3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆