PhilJay / MPAndroidChart

A powerful 🚀 Android chart view / graph view library, supporting line- bar- pie- radar- bubble- and candlestick charts as well as scaling, panning and animations.
Other
38.01k stars 9.04k forks source link

Failed to resolve: appcompat-v7 #4111

Open ZhangKuixun opened 6 years ago

ZhangKuixun commented 6 years ago

app/build.gradle

apply plugin: 'com.android.application' apply plugin: 'realm-android'

android { compileSdkVersion 27 buildToolsVersion '27.0.3' defaultConfig { minSdkVersion 16 targetSdkVersion 27 versionCode 56 versionName '3.0.3' testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

    sourceSets {
        main {
            java.srcDirs = ['src']
            res.srcDirs = ['res']
            assets.srcDirs = ['assets']
            manifest.srcFile 'AndroidManifest.xml'
        }
    }
}

buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}

lintOptions {
    abortOnError false
}

}

dependencies { //compile fileTree(dir: 'libs', include: ['*.jar']) //compile project(':MPChartLib-Realm') // clone "https://github.com/PhilJay/MPAndroidChart-Realm" to get this or uncomment the gradle dependency below: implementation 'com.github.PhilJay:MPAndroidChart-Realm:v3.0.3@aar' implementation 'com.android.support:appcompat-v7:27.1.1'

implementation project(':MPChartLib')
//compile 'io.realm:realm-android:0.87.5' // dependency for realm-database API (http://realm.io)

// api 'com.github.PhilJay:MPAndroidChart:v3.0.3' }

root/build.gradle:

buildscript { repositories { jcenter() google() } dependencies { classpath "io.realm:realm-gradle-plugin:4.2.0" classpath 'com.android.tools.build:gradle:3.0.1' classpath 'com.github.dcendents:android-maven-gradle-plugin:2.0' } }

allprojects { repositories { jcenter() google() maven { url "https://jitpack.io" } maven { // this is for realm-db url 'http://oss.jfrog.org/artifactory/oss-snapshot-local' } } }

ZhangKuixun commented 6 years ago

has been resolved