react-native-sms-user-consent icon indicating copy to clipboard operation
react-native-sms-user-consent copied to clipboard

Plugin with id 'maven' not found

Open afilp opened this issue 3 years ago • 5 comments

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
    }
}

afilp avatar Jan 07 '22 18:01 afilp

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
//        }

ULazdins avatar Jan 30 '22 20:01 ULazdins

@afilp Can you confirm is this still an issue?

SuyunSarbayev avatar Jul 11 '22 05:07 SuyunSarbayev

same issue here

KavithaMadhu31 avatar Aug 24 '22 12:08 KavithaMadhu31

same issue still happening :(

bekroz avatar Sep 05 '22 10:09 bekroz

Is it the sign to learn Flutter already? :((((

bekroz avatar Sep 05 '22 10:09 bekroz