Haseeb Warriach
Haseeb Warriach

Reputation: 352

In a ReactNative project ! Why My ANDROID Gradle versions are different

in Build.gradle

dependencies {
    classpath 'com.android.tools.build:gradle:2.3.3'
}

where as in graddle-wrapper.properties, i have

distributionUrl=https\://services.gradle.org/distributions/gradle-3.5.1-all.zip

where these both are different? Can they cause an error being different in version? please brief me in details.Thank you.

Upvotes: 2

Views: 3356

Answers (1)

TheWanderer
TheWanderer

Reputation: 17834

First of all, both of those versions are extremely outdated. The latest stable version for the ditributionUrl is 4.x. The latest stable for the classpath is 3.3.0.

The difference is this: the distributionUrl is the actual version of the Gradle build system. The classpath is the version of the Android Gradle plugin, not Gradle itself.

The versions you have tell me that you're either using an outdated version of Android Studio, or you ignored the popups telling you a newer version of Gradle was required for the newer version of Android Studio. You should probably update Android Studio to 3.3.

Upvotes: 4

Related Questions