mozilla / rust-android-gradle

Apache License 2.0
1.03k stars 67 forks source link

Unable to resolve dependency #121

Closed Kashif-E closed 1 year ago

Kashif-E commented 1 year ago

I am trying to add the plugin to my project but its unable to resolve the dependency.

I have added the maven url.

pluginManagement {
    repositories {
        gradlePluginPortal()
        google()
        mavenCentral()
        maven {
            url "https://plugins.gradle.org/m2/"
        }
    }
}
dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        maven {
            url "https://plugins.gradle.org/m2/"
        }
        google()
        mavenCentral()
    }
}

This is my project level build.gradle

buildscript {
    dependencies {
        classpath "com.android.tools.build:gradle:7.2.2"
        classpath 'org.mozilla.rust-android-gradle:rust-android:0.9.3'
    }
}// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
    id 'com.android.application' version '7.2.1' apply false
    id 'com.android.library' version '7.2.1' apply false
    id 'org.jetbrains.kotlin.android' version '1.7.10' apply false
}
Kashif-E commented 1 year ago

works when adding it as a plugin