Skip to content

A problem occurred configuring project ':react-native-image-rotate' #20

@ghasemikasra39

Description

@ghasemikasra39
A problem occurred configuring project ':react-native-image-rotate'.
> Could not resolve all artifacts for configuration ':react-native-image-rotate:classpath'.
   > Could not find com.android.tools.build:gradle:4.1.3.
     Searched in the following locations:
       - https://jcenter.bintray.com/com/android/tools/build/gradle/4.1.3/gradle-4.1.3.pom
     If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
     Required by:
         project :react-native-image-rotate
> Could not find method android() for arguments [build_f4mex495uj04d2uwkeilgt6vb$_run_closure3$_closure16$_closure18@736e1324] on project ':react-native-image-rotate' of type org.gradle.api.Project.

Possible solution:
 - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html

I am using React Native 0.61.5, "react-native-image-rotate": "^2.1.0", classpath 'com.android.tools.build:gradle:4.1.3' with the latest version of Android studio. Runing the app gives this build error

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