Old Configuration :
path: “android\gradle\wrapper\gradle-wrapper.properties”
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.2-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
android\build.gradle
dependencies {
classpath("com.android.tools.build:gradle:3.5.3")
}
New Configuration :
path : “android\gradle\wrapper\gradle-wrapper.properties”
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
android\build.gradle
dependencies {
classpath("com.android.tools.build:gradle:3.3.0")
}
—
1.
How to solve (Could not initialize class org.codehaus.groovy.reflection.ReflectionCache) issue in react native
https://stackoverflow.com/questions/60844245/how-to-solve-could-not-initialize-class-org-codehaus-groovy-reflection-reflecti
2.
Could not initialize class org.codehaus.groovy.runtime.InvokerHelper
—-
Solved react native errors ( build , gradle ,compile )
Fixed: React Native new Android project Build Issue
How to update gradle in android studio? compatibility between Android plugin for Gradle and Gradle:
https://stackoverflow.com/questions/17727645/how-to-update-gradle-in-android-studio?rq=1
React-Native: Could not resolve all files for configuration ‘:app:debugCompileClasspath’
https://stackoverflow.com/questions/52956232/react-native-could-not-resolve-all-files-for-configuration-appdebugcompilecl
—–
Failed to calculate the value of task ‘:app:generateDebugBuildConfig’ property ‘buildConfigPackageName’ react native
https://stackoverflow.com/questions/65227868/failed-to-query-the-value-of-property-packagename
—-
Solved react native errors ( build , gradle ,compile )
How to update gradle in android studio?
https://stackoverflow.com/questions/17727645/how-to-update-gradle-in-android-studio?rq=1
Deprecated Gradle features not compatible
https://stackoverflow.com/questions/61863724/deprecated-gradle-features-not-compatible
Property specifiers expected type of array but got null
https://github.com/stripe/stripe-react-native/issues/857
Launch error caused by @react-navigation/bottom-tabs 5.x
https://stackoverflow.com/questions/61151879/launch-error-caused-by-react-navigation-bottom-tabs-5-x
Error : React-native build error: Execution failed for task ‘
Sol 1 : You need to make the following according to this issue
cd android && gradlew clean && cd .. && react-native run-android
Sol 2 : Try to open your project in Android Studio. In right corner there are some notifications, you need to update Android build-tools and platform-tools.
Start React Native :
1. Vanilla RN: npx react-native start –reset-cache
2. Expo: expo start -c
—–

—-
Reference
Fixed: React Native new Android project Build Issue
https://www.tutorialspoint.com/react_native/react_native_environment_setup.htm
https://stackoverflow.com/questions/59482329/flutter-problems-could-not-resolve-all-artifacts-for-configuration-classpath
https://github.com/facebook/react-native/issues/23516