akvelon / react-native-sms-user-consent

React Native wrapper for Android's SMS User Consent API, ready to use in React Native apps with minimum effort.
Other
89 stars 40 forks source link

Plugin with id 'maven' not found #13

Closed afilp closed 1 year ago

afilp commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

@afilp Can you confirm is this still an issue?

KavithaMadhu31 commented 2 years ago

same issue here

bekroz commented 2 years ago

same issue still happening :(