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.

Support for updated Android Studios Gradle Plugin 3.0.0

See original GitHub issue

Description

Please allow for an updated version of Android Studios & Gradle. In my current project, I have: in my build.gradle: com.android.tools.build:gradle:3.0.0 and in gradle-wrapper.properties: distributionUrl=https://services.gradle.org/distributions/gradle-4.1-all.zip

How to repeat issue and example

Create any app, upgrade your android studios Gradle Plugin to version 3.0.0

Solution

update react-native-image-picker\android\build.gradle

change line 16 from classpath 'com.android.tools.build:gradle:2.2+' to classpath 'com.android.tools.build:gradle:2+' remove line 24 buildToolsVersion "25.0.2"

** I will try to submit a PR later this evening…

Additional Information

  • React Native version: 0.44.3, though I had the same issue with 0.50.0 (we are working on upgrading react native in a separate ticket)
  • Platform: [Android]
  • Development Operating System: MacOS
  • Dev tools:Android Studio version 3.0, Android SDK version 26.0.2

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:5
  • Comments:14

github_iconTop GitHub Comments

1reaction
GitHubTraceycommented, Jan 7, 2018

Thank-you for the very detailed instructions! Much appreciated!

1reaction
Spetastiancommented, Jan 7, 2018

@GitHubTracey Its an expected behavior that you are not authorized to someone elses repo like this. If you want to contribute to the code you should first fork this repo so you have your own version of it on your own GitHub account. Then you clone that fork locally on your computer: git@github.com:GitHubTracey/react-native-image-picker.git.

Then you create a branch locally just like you did and implement your changes. After that you push your own branch to your own fork which you have full access to.

Then you go to the original repo here and create a pull request and notify one of the admins of the original repo here in this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android Gradle plugin release notes - Android Developers
When you update Android Studio, you may receive a prompt to automatically update the Android Gradle plugin to the latest available version. You...
Read more >
Welcome to Android Studio 3.0. It's a brave new world
Updating the IDE and plugin · Open gradle-wrapper.properties · Enter the latest version of Gradle (above 4.1) · Open build.gradle in the root...
Read more >
The android gradle plugin version 3.0.0-alpha1 is too old
Your code may be containing an outdated gradle plugin version (may be alpha1 , or something like that) in your project build.gradle file....
Read more >
Migrating to Android Gradle plugin 3.0.0 - YouTube
For more information about migrating to Android Gradle plugin 3.0.0 refer to the guide in our documentation: https://goo.gl/AGR95pAndroid ...
Read more >
Upgrading your build from Gradle 4.x to 5.0
If you are using Gradle for Android, you need to move to version 3.3 or higher of both the Android Gradle Plugin and...
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