All Questions
Tagged with gradle android-gradle-plugin
5,024
questions
1
vote
0
answers
17
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
10
views
How to rely on the task generated in the afterEvaluate callback in the submodule gradle plugin (Gradle 8.0+)
There is an gradle plugin in my submodule. This plugin will generate some files in the afterEvaluate callback and put them in the assets folder. The main project will package these files into the apk ...
0
votes
0
answers
18
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 ...
0
votes
0
answers
12
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
108
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
41
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
57
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
18
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
28
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
69
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/...
0
votes
0
answers
21
views
Include a local gradle library by another library
In android's gradle build system, is it possible that a library imports another library from a local file path?
I know that it's possible to add local gradle libraries in the root project by adding it ...
0
votes
0
answers
17
views
Flutter integration tests report shows 0 tests but actually runs tests
I'm running flutter integration tests (instrumentation tests) using flutter integration_driver
There are two ways of running the tests:
1. Using flutter driver command
I run flutter driver with some ...
0
votes
0
answers
24
views
Execution failed for task ':@react-native-community_netinfo:generateDebugLintReportModel'
upon executing ./gradlew build in my react-native application I am getting the Exception below.
NOTE: the application was initially fine but I am upgrading Gradle and react-native so I started getting ...
0
votes
1
answer
336
views
Minimum supported Gradle version is 8.7. Current version is 8.2. Android
I want to run the command gradle detekt on Android Studio's terminal but I always get the error:
A problem occurred evaluating project ':app'.
> Failed to apply plugin 'com.android.internal.version-...
1
vote
1
answer
74
views
Module was compiled with an incompatible version of Kotlin. Binary version of its metadata is 1.8.0, expected version is 1.6.0
When I run flutter build apk --release I get the error Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
Here is my ...