Skip to content

Build issue with JCenter : Could not find method jcenter() for arguments [] #125

@fafriat

Description

@fafriat

Hi,

When building my project depending on simple_barcode_scanner I receive this error:

Task failed with an exception.

  • Where:
    Build file '/Users/frank/.pub-cache/hosted/pub.dev/simple_barcode_scanner-0.4.0/android/build.gradle' line: 7

  • What went wrong:
    A problem occurred evaluating project ':simple_barcode_scanner'.

Could not find method jcenter() for arguments [] on repository container of type org.gradle.api.internal.artifacts.dsl.DefaultRepositoryHandler.

jcenter() seems no more supported and deprecated.

Stackoverflow saying in https://stackoverflow.com/questions/66282782/could-not-find-method-jcenter-for-arguments-on-repository-container-of-type that:
"JFrog is shutting down JCenter completely in May. Try using mavenCentral() instead"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions