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

Could not find com.android.tools.build:gradle:2.3.3. #25

Closed
cancit opened this issue Aug 8, 2024 · 5 comments · Fixed by #27
Closed

Could not find com.android.tools.build:gradle:2.3.3. #25

cancit opened this issue Aug 8, 2024 · 5 comments · Fixed by #27

Comments

@cancit
Copy link

cancit commented Aug 8, 2024

It seems like com.android.tools.build:gradle:2.3.3 package is deleted in maven repositories, both urls are returning 404

A problem occurred configuring project ':react-native-image-size'.
> Could not determine the dependencies of null.
   > Could not resolve all task dependencies for configuration ':react-native-image-size:classpath'.
      > Could not find com.android.tools.build:gradle:2.3.3.
        Searched in the following locations:
          - https://repo.maven.apache.org/maven2/com/android/tools/build/gradle/2.3.3/gradle-2.3.3.pom
          - https://jcenter.bintray.com/com/android/tools/build/gradle/2.3.3/gradle-2.3.3.pom
        Required by:
            project :react-native-image-size

https://repo.maven.apache.org/maven2/com/android/tools/build/gradle/2.3.3/gradle-2.3.3.pom
https://jcenter.bintray.com/com/android/tools/build/gradle/2.3.3/gradle-2.3.3.pom

@piotr-ponikowski-source
Copy link

I was about to ask the same question

@cancit
Copy link
Author

cancit commented Aug 8, 2024

Expensify team fixed this issue in their fork by downgrading gradle version to 2.3.0 Expensify#5

@rsurgiewicz
Copy link

Same here, waiting for the fix

@xwawo
Copy link

xwawo commented Aug 20, 2024

Waiting for a fix

@skizzo
Copy link

skizzo commented Aug 27, 2024

Fixed this by changing the file node_modules/react-native-image-size/android/build.gradle:

❌ Old: classpath 'com.android.tools.build:gradle:2.3.3'
✅ New: classpath 'com.android.tools.build:gradle:2.3.0'

Afterwards, running npx patch-package react-native-image-size makes this change persistent across npm installs.

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

Successfully merging a pull request may close this issue.

5 participants