Questions tagged [android-gradle-plugin]
The Android Gradle Plugin is Android's standard build system. It is used as backing-build-system by Android Studio.
android-gradle-plugin
13,143
questions
0
votes
0
answers
21
views
What gradle entries are required for implementing KSP and Room in a Kotlin Multiplatform
I am in the process of converting a kotlin application to kotlin multiplatform (anroid only for now to get through initial configuration) with room. This included moving to a libs.versions.toml file ...
0
votes
0
answers
9
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
22
views
How to exclude app module from instrumented test?
After running ./gradlew connectedAndroidTest and removing androidTest directory and the any required setup with instrumented test from my app module build.gradle.kts, the task :app:...
0
votes
0
answers
10
views
saya tadi debuging dan running project flutter dan muncul eror [closed]
tolong bantu saya cari solusi
saya ingin belajar coding dengan baik di flutter saya sangat bingung cari solusi tidak terselesaikan
saya sudah memperbaiki migration deprecated
tolong siapapun yang ...
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
103
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:...
1
vote
1
answer
54
views
Cannot invoke "com.android.tools.r8.graph.i0.a(com.android.tools.r8.graph.y)
I am getting the below error when trying to build a release app bundle.
java.lang.NullPointerException: Cannot invoke "com.android.tools.r8.graph.i0.a(com.android.tools.r8.graph.y)" because ...
0
votes
0
answers
56
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
21
views
Cannot import libraries: how to add Android dependencies using TOML correctly?
I'm still trying to understand Gradle version catalog.
I think the old way to add dependencies is simpler. Edit build.gradle, add stuffs like:
dependencies {
implementation 'com.intuit.sdp:sdp-...
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
0
answers
51
views
Flutter Build Error: Multiple build operations failed due to conflicting plugin paths
`I'm encountering a build error in my Flutter project with the message "Multiple build operations failed." The error log indicates that several plugins, including google_sign_in_android, are ...
0
votes
1
answer
26
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/...