All Questions
Tagged with gradle android-gradle-plugin
5,031
questions
0
votes
1
answer
23
views
Run Gradle Code Automatically When Android Plugin Detected
tldr: I want some task configuration to run automatically whenever the Android Gradle Plugin is used. How?
I have a very large gradle project with many different build scripts. Some are android, some ...
0
votes
2
answers
36
views
Could not resolve com.android.tools.build:gradle:7.4.2 convention module
I'm trying to write gradle plugin in my android project. I have a build-logic module which contains convenion module. I wrote a small plugin JvmLibraryPlugin and registered it in the convention module ...
0
votes
0
answers
13
views
Build issue: Conflicts with Google Protobuf dependency with existing Firebase dependencies
Facing Issue when adding -
implementation 'com.google.cloud:google-cloud-vision:3.44.0' library in gradle facing error as shown in image
Gradle Error code below -
Caused by: java.lang....
0
votes
1
answer
29
views
Local AGP jar was not found in any of the following sources
It happened so that I need to make an app buildable using local tools only.
I am stuck with local AGP jar.
I have tried to add it to classpath:
classpath(files("gradle/com.android.tools.build....
0
votes
0
answers
44
views
Metadata.bin file not found on initial gradle sync with Android Studio Koala - 2024.1.1
I recently updated Android Studio from Chipmunk version - 2021.2.1 to Koala version - 2024.1.1.
Now, when I open my projects, the gradle synchronization starts and always ends with:
C:\Users\[MY_USER]\...
0
votes
0
answers
13
views
Custom Module not found Android Dependencies (Flutter Plugin)
I have been trying to install one particular custom android module for almost a day now. I have tried different resources (including ChatGPT) but it seems I am probably missing something. Please I ...
1
vote
0
answers
33
views
AGP 8.4+ and Hilt (Android Library Modules in Multi-module architecture, R8)
I found this patch note when the 8.4 version came out: https://developer.android.com/build/releases/past-releases/agp-8-4-0-release-notes#library-classes-shrunk
"Starting with Android Gradle ...
0
votes
0
answers
20
views
composeCompiler inside a Gradle Plugin
I would like to configure the compiseCompiler inside my Plugin but I am unable to access it.
I tried this way:
class AndroidApplicationComposeConventionPlugin : Plugin<Project> {
override ...
1
vote
0
answers
15
views
Cannot get GradlePropertiesModel (V2) for project 'GradleProject{path=':app'}' (android studio bug)
Multiple build operations failed.
Cannot get GradlePropertiesModel (V2) for project 'GradleProject{path=':app'}'
i am facing this issue in Android Studio Koala | 2024.1.
on invalidate/Restart it'...
0
votes
1
answer
135
views
"Execution failed for task ':react-native-gradle-plugin:compileKotlin'" ,when upgraded from 0.72.5 to 0.74.2
The class is loaded from C:/Users/USER/.gradle/wrapper/dists/gradle-8.6-all/3mbtmo166bl6vumsh5k2lkq5h/gradle-8.6/lib/kotlin-stdlib-1.9.20.jar!/kotlin/collections/CollectionsKt__CollectionsKt.class
e: ...
0
votes
0
answers
49
views
Android Studio: Execution failed for task ':mergeDebugAndroidTestJavaResource'
I updated android gradle plugin to 8.4.1 by following the correct steps.
Unfortunately I am unable to build the project succesfully and get the following errorss:
Execution failed for task ':core-test:...
0
votes
0
answers
65
views
Which Kotlin-DSl version should I be using and where to find it
I am upgrading various libraries in my project, to include upgrading to Kotlin 2.0.0 and converting from Groovy to Kotlin-DSL for my gradle builds. When running a gradle build, it runs to a success, ...
0
votes
0
answers
20
views
flutter gradel kotlin incompatible version
/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-common/1.8.22/1a8e3601703ae14bb58757ea6b2d8e8e5935a586/kotlin-stdlib-common-1.8.22.jar!/META-INF/kotlin-stdlib-common....
0
votes
1
answer
29
views
How to declare a common dependency for all subprojects?
Facing this issue with dependency injecting libraries. All subprojects have a di and i have to declare DI library every time. Is there a better way?
0
votes
0
answers
75
views
Unresolved reference after upgrading to Android Gradle Plugin 8.3
I have an Android build.gradle file that uses an alternate sourceSets declared as stated by the AGP documentation :
android {
sourceSets {
main.res.srcDirs = [main.res.srcDirs, "build/...