Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ghasemikasra39 opened this issue Apr 30, 2021 · 0 comments

Comments

@ghasemikasra39
Copy link

ghasemikasra39 commented Apr 30, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant