javascript – React-native android construct error : Can’t invoke technique mavenDeployer() on null object (line 131)


add repositories.

repositories {
    mavenLocal()
    maven {
        // All of React Native (JS, Obj-C sources, Android binaries) is put in from npm
        url "$rootDir/../node_modules/react-native/android"
    }
    maven {
        // Android JSC is put in from npm
        url "$rootDir/../node_modules/jsc-android/dist"
    }
    google()
    jcenter()
}

    job installArchives(sort: Add) {
        configuration = configurations.archives
        repositories.mavenDeployer { // line 131
            // Deploy to react-native-event-bridge/maven, able to publish to npm
            repository url: "file://${projectDir}/../android/maven"
            configureReactNativePom pom
        }
    }
}

i do not know the way am i able to repair it. plz assist me. in case you guys want extra data let me know. i’ll add extra.

i did attempt to change some strains in repositories.mavenDeployer but it surely did not work. i received identical messages when i did one thing.

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles