AnyChart / AnyChart-Android

AnyChart Android Chart is an amazing data visualization library for easily creating interactive charts in Android apps. It runs on API 19+ (Android 4.4) and features dozens of built-in chart types.
2.32k stars 369 forks source link

Cannot resolve symbol 'AnyChartView' in Android Studio version Arctic Fox |2020.3.1 Patch 3 #258

Open AhmedElsayedTaha opened 2 years ago

AhmedElsayedTaha commented 2 years ago

I can't use the AnyChart library . I always get Cannot resolve symbol 'AnyChartView'

I added this line in my dependency implementation 'com.github.AnyChart:AnyChart-Android:1.1.2' Also I added this in my gradle file maven { url 'https://jitpack.io' } to be like this

buildscript {
    repositories {
        google()
        mavenCentral()
        maven { url 'https://jitpack.io' }
    }
    dependencies {
        classpath "com.android.tools.build:gradle:7.0.3"

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

image

drparasmehta commented 1 year ago

Need to add following line in settings.gradle (Project Settings) file. maven { url 'https://jitpack.io' }

Also, add following line in build.gradle (Module level gradle file). implementation 'com.github.AnyChart:AnyChart-Android:1.1.4'