question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Changes needed for gradle 3.0.1 compatibility

See original GitHub issue

Some minor changes are needed for gradle 3.0.1 compatibility: in android/build.gradle:

We are currently hacking these changes with a script in status.im, and would rather it is fixed upstream. Thanks!

Parent issue: https://github.com/status-im/status-react/issues/3037

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:28

github_iconTop GitHub Comments

4reactions
pacamaracommented, Jan 20, 2018

@jskidd3 Sure, here’s the diff of the changes I needed for a fresh project:

FooProj $ git diff
diff --git a/android/build.gradle b/android/build.gradle
index eed9972..965bebb 100644
--- a/android/build.gradle
+++ b/android/build.gradle
@@ -2,10 +2,11 @@
 
 buildscript {
     repositories {
+        google()
         jcenter()
     }
     dependencies {
-        classpath 'com.android.tools.build:gradle:2.2.3'
+        classpath 'com.android.tools.build:gradle:3.0.1'
 
         // NOTE: Do not place your application dependencies here; they belong
         // in the individual module build.gradle files
diff --git a/android/gradle/wrapper/gradle-wrapper.properties b/android/gradle/wrapper/gradle-wrapper.properties
index dbdc05d..bf1b63c 100644
--- a/android/gradle/wrapper/gradle-wrapper.properties
+++ b/android/gradle/wrapper/gradle-wrapper.properties
@@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
 distributionPath=wrapper/dists
 zipStoreBase=GRADLE_USER_HOME
 zipStorePath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip

Installed and ran ok after I also manually created the assets bundle (don’t believe this step has anything to do with gradle upgrade).

3reactions
msandcommented, Jan 26, 2018
Read more comments on GitHub >

github_iconTop Results From Across the Web

Changes needed for gradle 3.0.1 compatibility #581 - GitHub
Some minor changes are needed for gradle 3.0.1 compatibility: in android/build.gradle: Remove the buildToolsVersion, gradle now specifies a ...
Read more >
Compatibility Matrix - Gradle User Manual
A Java version between 8 and 19 is required to execute Gradle. Java 20 and later versions are not yet supported. Java 6...
Read more >
Android Gradle plugin release notes - Android Developers
Update the Android Gradle plugin; Update Gradle. Older versions. Android Gradle plugin and Android Studio compatibility; Versioning changes (November 2020) ...
Read more >
Changes needed for gradle 3.0.1 compatibility - Bountysource
Some minor changes are needed for gradle 3.0.1 compatibility: in android/build.gradle: Remove the buildToolsVersion , gradle now specifies a ...
Read more >
Gradle Enterprise version compatibility
Major or minor version updates to the Gradle Enterprise Gradle plugin indicate a compatibility change with Gradle Enterprise (e.g. 3.0 → 3.1 or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found