Questions tagged [android-gradle-7.0]
19 questions
27
votes
8 answers
Software Components will not be created automatically for Maven publishing from Android Gradle Plugin 8.0
With Gradle 7.2 and these plugins:
plugins {
id 'com.android.library' // Android Gradle Plugin 7.1.2
id 'maven-publish'
}
It still works, but gives me this deprecation warning:
WARNING: Software Components will not be created automatically…

Martin Zeitler
- 1
- 19
- 155
- 216
14
votes
5 answers
Unable to add Firebase Crashlytics for Gradle version 7.2
Unable to add Firebase Crashlytics dependencies/classpath in Android for Gradle 7.2
Where should I write.
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.9.0'
I successfully mapped Google services as.
classpath…

Ammar Abdullah
- 802
- 4
- 8
- 21
10
votes
1 answer
Android: Jacoco code coverage is not generating after gradle upgrade to 7.0.x & jdk 11
Android: Jacoco code coverage is not generating after gradle upgrade to 7.0.x & jdk 11 with testCoverageEnabled true. It is working perfect with gradle 4.2.x & jdk 8.
I tried removing testCoverageEnabled true with gradle 7.0.x & it again started…

Akshay
- 111
- 5
8
votes
3 answers
How to change version code after AGP 7.0.0-alpha15
Before AGP 7.0.0-alpha15 I could change version code of an app for example like that
android {
defaultConfig {
applicationVariants.all {
if (buildType.name == "debug") {
outputs.forEach { output ->
(output as?…

Damiancioo
- 462
- 3
- 13
3
votes
2 answers
How to publish to Maven Repo using Gradle 7.0
I am looking for working documentation on how to publish a library to the public Maven repository using Gradle 7.0.
I have signed up for an account at Maven (Sonatype Actually), have jumped through the verification hoops, and so that seem to be…

AgilePro
- 5,588
- 4
- 33
- 56
2
votes
1 answer
Unable to add Firebase Performance Plugin for the new Android gradle project structure
I'm trying to add to my Firbebase Performance to my Android project, but the documentation does not explain how to add the classpath on the new gradle.
Where should I write.
classpath 'com.google.firebase:perf-plugin:1.4.2'
... I tried to mapped…

Leonardo Sibela
- 1,613
- 1
- 18
- 39
2
votes
1 answer
Gradle 7, Are Android Build-Configuration documentations outdated?
Going through the documentation of Gradle's build configuration I can see several conflicts with my build on Android Studio 2020.3.1 using Gradle 7.0.3.
For example, in the documentation is says that allProjects block for repositories settings used…

razz
- 9,770
- 7
- 50
- 68
1
vote
1 answer
Get gradle dependencies programmatically
I want to get the dependencies programmatically within Gradle in an Android project.
I tried (in both project as well as module level gradle.build):
task dumpDependencies {
doLast {
def resolved =…

rysv
- 2,416
- 7
- 30
- 48
1
vote
0 answers
React Native | Gradle 7 | Migration - Trouble in migrating to Gradle 7 for the existing react native project
I am having some issues when migrating to Gradle 7 and I got a few errors at the runtime. My build is getting successful but cannot be redirected to the ”Login Screen”. As such, the issue is basically raised from the NPM package that creates an…

Parth Bhayani
- 1,894
- 3
- 17
- 35
1
vote
1 answer
Could not find method artifactory() [Gradle 7.+]
I am using Gradle 7.+ and we know its structure is different.
Now how can setup com.jfrog.artifactory plugin on gradle 7.+?
My JFrog artifactory using legacy gradle installation !
I tried to setup using gradle DSL & legacy one, But I got the same…

iibrahimbakr
- 1,116
- 1
- 13
- 32
1
vote
0 answers
Recycler view showing empty list on gradle 7 and above
I am using below things
In built recycler view
Volley
MVP architecture with parcelable classes
Gradle 4.0.2 with 6.7.1 wrapper and JDK 8.1
No extra rules in proguard
APP IS WORKING FOR ABOVE CONFIG (RELEASE APK)
App is not working after the gradle…

Suraj Sahijwani
- 121
- 6
0
votes
1 answer
Cannot run Project.afterEvaluate(Action) when the project is already evaluated
Project type: Android
Gradle wrapper: gradle-7.5
Gradle plugin: 7.4.2
app module build.gradle:
plugins {
id 'com.android.application'
id 'org.jetbrains.kotlin.android'
id "org.jetbrains.kotlin.kapt"
}
android {
...
…

Jospehus Chou
- 117
- 1
- 10
0
votes
0 answers
How to generate temporary files during Android gradle build and access them from the app
I am generating some data files during build (using a custom Gradle plugin) and I would like to access in an Android library (i.e, included in the apk file that uses this library) and also want to make sure they do not show up as files added in the…

rysv
- 2,416
- 7
- 30
- 48
0
votes
0 answers
Android studio rename app bundle and apk file based on flavours
I am working on an app that has flavours like SIT, UAT and Prod. I want to rename the aab and apk files in the following format:
project-name_versionCode_versionName-flavour.aab or apk
I added a method in the app/build.gradle to get the versionCodes…

KsiAndroid
- 21
- 4
0
votes
0 answers
react-native assembleRelease Can't Access Database on higher Android versions
I just recently assemble my react native app, the app is able to access my database which is in my computer on android versions 9 below, but when it comes to 10 and above it won't, i'm able to open the app but couldn't do much other than navigating…