react-native-image-rotate icon indicating copy to clipboard operation
react-native-image-rotate copied to clipboard

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

Open ghasemikasra39 opened this issue 3 years ago • 0 comments

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

ghasemikasra39 avatar Apr 30 '21 20:04 ghasemikasra39