jjoe64 / GraphView

Android Graph Library for creating zoomable and scrollable line and bar graphs.
https://github.com/jjoe64/GraphView/wiki
Other
2.76k stars 811 forks source link

Error sync Gradle #634

Closed syedafeef closed 5 years ago

syedafeef commented 5 years ago

I'm getting this error when i add GrapgView dependency

Android resource linking failed D:\ArduinoUSB\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:1917: error: resource android:attr/fontStyle not found. D:\ArduinoUSB\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:1917: error: resource android:attr/font not found. D:\ArduinoUSB\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:1917: error: resource android:attr/fontWeight not found. error: failed linking references.

and my app Gradle is:

apply plugin: 'com.android.application'

android { compileSdkVersion 25 buildToolsVersion '28.0.3'

defaultConfig {
    applicationId "com.hariharan.arduinousb"
    minSdkVersion 15
    targetSdkVersion 23
    versionCode 1
    versionName "1.0"
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}

}

dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') implementation 'com.android.support:appcompat-v7:25.4.0' implementation files('libs/usbserial.jar') implementation 'com.android.support.constraint:constraint-layout:1.1.3' implementation 'com.jjoe64:graphview:4.2.2'

}

WyFryMU commented 5 years ago

implementation 'com.jjoe64:graphview:4.2.2' You're using version 4.2.2, which doesn't exist. 4.2.1 is the newest.