Support for updated Android Studios Gradle Plugin 3.0.0
See original GitHub issueDescription
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+'
toclasspath 'com.android.tools.build:gradle:2+'
remove line 24buildToolsVersion "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:
- Created 6 years ago
- Reactions:5
- Comments:14
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank-you for the very detailed instructions! Much appreciated!
@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.