Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin with id 'maven' not found #13

Closed
afilp opened this issue Jan 7, 2022 · 4 comments
Closed

Plugin with id 'maven' not found #13

afilp opened this issue Jan 7, 2022 · 4 comments

Comments

@afilp
Copy link

afilp commented Jan 7, 2022

I upgraded all packages plus the sdk/build tools in order to support Android 12, and I now get this:

A problem occurred evaluating project ':eabdullazyanov_react-native-sms-user-consent'.
> Plugin with id 'maven' not found.

Here is the build env:

buildscript {
    ext {
        buildToolsVersion = "31.0.0"
        minSdkVersion = 23
        compileSdkVersion = 31
        targetSdkVersion = 31
        ndkVersion = "21.4.7075529"
    }
    repositories {
        google()
        mavenCentral()
    }
    dependencies {
        classpath('com.android.tools.build:gradle:7.0.3')
        classpath 'com.google.gms:google-services:4.3.10'
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}
@ULazdins
Copy link

A temporary solution. Open node_modules/@eabdullazyanov/react-native-sms-user-consent/android/build.gradle and comment all references to maven:

//apply plugin: 'maven'

//    // ref: https://www.baeldung.com/maven-local-repository
//    mavenLocal()
//    maven {
//        // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
//        url "$rootDir/../node_modules/react-native/android"
//    }
//    maven {
//        // Android JSC is installed from npm
//        url "$rootDir/../node_modules/jsc-android/dist"
//    }
//        repositories.mavenDeployer {
//            // Deploy to react-native-event-bridge/maven, ready to publish to npm
//            repository url: "file://${projectDir}/../android/maven"
//            configureReactNativePom pom
//        }

@SuyunSarbayev
Copy link

@afilp
Can you confirm is this still an issue?

@KavithaMadhu31
Copy link

same issue here

@bekroz
Copy link

bekroz commented Sep 5, 2022

same issue still happening :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants