Issue
I have a react-native project which had below error when i try to run project with
react-native run-android
or cd adnroid > gradlew assembleDebug
every case i got that error,
What went wrong: Plugin [id: 'io.invertase.gradle.build', version: '1.5'] was not found in any of the following sources:
Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
Plugin Repositories (could not resolve plugin artifact 'io.invertase.gradle.build:io.invertase.gradle.build.gradle.plugin:1.5') Searched in the following repositories: Gradle Central Plugin Repository
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.
I tried node_modules
and package-lock.json
delete and re-install
all modules but still i have same problem.
Solution
I got this error because the dependent packages in android could not load due to the wrong configuration related to the proxy, because of my problem. After configuring it was fixed.
Answered By - errorau
Answer Checked By - Terry (JavaFixing Volunteer)