CocoaPods / CocoaPods/Xcodeproj

React Native Android : Could not resolve org.gradle.toolchains:foojay-resolver:0.5.0

Open
#929 0 comments 3 reactions 0 assignees View on GitHub
Dominant language
Ruby
Stars
2.4k
Forks
488
PR merge metrics
No merged PRs in 30d

Description

Laptop: Mac OS M2 Chip
OS : SONOMA - 14.2.1
Issue: Android SDK - Android Studio Hedgehog | 2023.1.1 Patch 1

error Failed to install the app. Command failed with exit code 1: ./gradlew app:installDebug -PreactNativeDevServerPort=8081 FAILURE: Build failed with an exception. * What went wrong:
Could not resolve all files for configuration 'classpath'.
> Could not resolve org.gradle.toolchains:foojay-resolver:0.5.0. Required by: unspecified:unspecified:unspecified > org.gradle.toolchains.foojay-resolver-convention:org.gradle.toolchains.foojay-resolver-convention.gradle.plugin:0.5.0 > Could not resolve org.gradle.toolchains:foojay-resolver:0.5.0. > Could not get resource 'https://plugins.gradle.org/m2/org/gradle/toolchains/foojay-resolver/0.5.0/foojay-resolver-0.5.0.pom'. > Could not GET 'https://plugins-artifacts.gradle.org/org.gradle.toolchains/foojay-resolver/0.5.0/824e8819d685581917eb6211904b03f18152247338bc5df231a3c251438212b0/foojay-resolver-0.5.0.pom'. > PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target * Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org. BUILD FAILED in 3s.
info Run CLI with --verbose flag for more details.

Please anyone help asap.

Contributor guide

No contributing guide indexed for this repository

Research direction

The report identifies ./gradlew app:installDebug and the Gradle plugin dependency as the starting points. Reproduce the command with the reported Android setup, then document a confirmed project change that makes dependency resolution succeed.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, react-native
Domain
build-system, mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
10/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.