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,151
questions
0
votes
2
answers
15
views
How to change the default library when downgrade the targetSdk version
When I want to create a new Android project in Android Studio, the defaul targetSdk will always be the latest one (for now is 34), but What I want is the lower one. The IDE will show me the error when ...
0
votes
0
answers
12
views
Gradle Error while running flutter project in Android Studio java
I am completely new to flutter. Yesterday I installed flutter, added path variables and it works straight from cmd. I also created a project using cmd and opened it in Android Studio. Import of Dart ...
0
votes
0
answers
32
views
Android Studio 2024.1.1 - Gradle Project sync failed
I try to use Android Studio but there is a problem since i downloaded it, the sync fail.
I always got the same Error messages :
"Could not move temporary workspace"
"java.nio.file....
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
2
answers
23
views
Snyk denial of service: utp:[email protected] > io.grpc:[email protected] > io.netty:[email protected]
I've encountered a vulnerability after running the Snyk open source security management tool and am not sure how to resolve it.
I believe this is related to a library pulled in by the Android Gradle ...
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
34
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
18
views
Updating Android Gradle plugin above 3.2
I am trying to create the sign in keys for my flutter app by running build\Generate signed bundle or apk but I can't since I need to have android gradle plugin 3.2.0 or above. So I tried updating my ...
0
votes
0
answers
17
views
Dependencies add [closed]
I am nit able to add dependencies in android studio kotlin app project
I tried youtube tutorial bit it didn't work and i expect someone to guide me with correct steps
I have tried steps of he girl of ...
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 ...
0
votes
0
answers
26
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:...