Gradle and AGP versions to compile the project are unclear
See original GitHub issue[READ] Step 1: Are you in the right place?
Issues filed here should be about bugs in the code in this repository. If you have a general question, need help debugging, or fall into some other category use one of these other channels:
- For general technical questions, post a question on StackOverflow with the firebase tag.
- For general Firebase discussion, use the firebase-talk google group.
- For help troubleshooting your application that does not fall under one of the above categories, reach out to the personalized Firebase support channel.
[REQUIRED] Step 2: Describe your environment
- Android Studio version: 2021.2.1 Patch 2
- Firebase Component: Perf
- Component version: Latest
[REQUIRED] Step 3: Describe the problem
Steps to reproduce:
For local development contributions, the project docs do not specify Gradle or AGP versions to compile the project with. The project doesn’t specify AGP version in local gradle files either. Users who wish to compile this project must search the repo for issues and PRs to see what Gradle versions the project calls for.
Relevant Code:
Propose adding to the docs: under: CONTRIBUTING
This project should be compiled with:
Android Gradle Plugin: 4.2.2
Gradle: 6.5.1
Issue Analytics
- State:
- Created a year ago
- Comments:9 (6 by maintainers)
Top Results From Across the Web
The project is using an incompatible version (AGP 7.3.0 ...
Try either to upgrade Android Studio or change AGP version to the stable version like for example 7.2.1 in the project's build.gradle file ......
Read more >Use the Android Gradle plugin Upgrade Assistant
The Android Gradle plugin (AGP) Upgrade Assistant is a tool in Android Studio that helps you upgrade the version of AGP used by...
Read more >"Cannot find AGP version in build files". What does that mean ...
The brief answer to the question is that there are many ways of structuring a project's build files, only some of which are...
Read more >Upgrading your build from Gradle 4.x to 5.0
Run gradle wrapper --gradle-version 5.0 to update the project to 5.0. Move to Java 8 or higher if you haven't already. Whereas Gradle...
Read more >Gradle for Android - Unity - Manual
build.gradle, The base Gradle file that affects all modules in the Gradle project. It specifies which Android Gradle Plugin version to use 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 Free
Top 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
Thank you guys for responding. I think I just had a weird hiccup in Android Studio because after re-importing the project all over again, all of the Gradle versions inferred automatically and nothing manual was actually needed out of me.
@shamilovtim We are using:
Also note that you’ll need Java 11: https://github.com/firebase/firebase-android-sdk/blob/4f24be3d2ac6481cb5c3995b4abcf5361894b1c7/build.gradle#L72-L74
I’ll check if we can get this documented in the repo itself as you suggested.
I’d be happy to help if you face any gradle errors, please post the stacktrace if it happens.