Cannot add data2viz dependencies to Android Studio project

Hi, I have been trying too add the library to my Android Studio project, but I get these 2 errors:

> Could not find io.data2viz.charts:core:1.1.0-eap1.
> Could not find io.data2viz.d2v:viz:0.8.12.

build.gradle root file
repositories {
            google()
            jcenter()
            maven{
                url "https://maven.pkg.jetbrains.space/data2viz/p/maven/dev"
            }
            maven{
                url "https://maven.pkg.jetbrains.space/data2viz/p/maven/public"
            }
        }

build.grafle app module file
dependencies {
        implementation 'io.data2viz.charts:core:1.1.0-eap1'
        implementation 'io.data2viz.d2v:viz:0.8.12'
        coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5'
    }

Did you put the repositories definition in the allprojects section?

allprojects {
    repositories {
        google()
        jcenter()
		maven {
			url "https://maven.pkg.jetbrains.space/data2viz/p/maven/dev"
		}
		maven {
			url "https://maven.pkg.jetbrains.space/data2viz/p/maven/public"
		}

	}
}

You can also browse this page: https://maven.pkg.jetbrains.space/data2viz/p/maven/dev/io/data2viz/charts/core/1.1.0-eap1/

This is what you should see :

CleanShot 2021-04-29 at 12.44.49@2x

1 Like

That was the problem, I noticed it too. Thanks.

1 Like

There is no allprojects section please check lastest build file.
BuildPhoto

You have the build.gradle file of the project ➊ and the build.gradle file of the application module ➋.

CleanShot 2022-01-07 at 09.56.25@2x

You put the allProject lambda in the first one.