Skip to content

After updating plugin to "maven-publish", Configuration error with name 'compile' not found error is shown #71

@topervillablanca

Description

@topervillablanca

Hello!

After updating the deprecated maven plugin, I encountered an error where compile is not found in this code block when I run react-native run-android

afterEvaluate { project ->
// some Gradle build hooks ref:
// https://www.oreilly.com/library/view/gradle-beyond-the/9781449373801/ch03.html
task androidJavadoc(type: Javadoc) {
source = android.sourceSets.main.java.srcDirs
classpath += files(android.bootClasspath)
classpath += files(project.getConfigurations().getByName('compile').asList())
include '**/*.java'
}

The error looks like this

FAILURE: Build failed with an exception.

  • Where:
    Build file 'C:\Users\Pixelminers Topher\Desktop\PixelmineLocal\node_modules\react-native-virgil-crypto\android\build.gradle' line: 116

  • What went wrong:
    A problem occurred configuring project ':react-native-virgil-crypto'.
    Configuration with name 'compile' not found.

Here are some info on my setup

react-native-cli: 2.0.1
react-native: 0.68.2
react-native-virgil-crypto: 0.6.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions