Questions tagged [build.gradle]
The file build.gradle describes in the Groovy language the default actions and tasks launched by the 'gradle' command in the appropriate folder.
build.gradle
9,416
questions
0
votes
0
answers
23
views
Error while integrating Firebase with flutter app
A problem occurred evaluating root project 'android'.
A problem occurred configuring project ':app'.
Could not create task ':app:compileFlutterBuildDebug'.
> Cannot get property 'apiLevel' on null ...
1
vote
1
answer
34
views
Flutter: Try correcting the name to the name of an existing getter, or defining a getter or field named 'caption'. Failed to compile application
I'm trying to run my Flutter app on Android after a long time and it won't run successfully because of the below error:
'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../Dev/...
0
votes
0
answers
43
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
28
views
Flutter Android build apk :app:mergeReleaseJavaResource
Build APK Error Android
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:mergeReleaseJavaResource'.
A failure occurred while executing com.android.build....
0
votes
0
answers
8
views
Script variable conflicts with a named object (Gradle/Groovy DSL)
I am surprised to find out that the name spaces of script variables and named objects interact in a very bad way. In my real build script, the conflicting name was integrationTest and it looked like I ...
1
vote
1
answer
76
views
How can I add latest stable dependencies and plugins to my latest version of Android Studio Koala?
I want to implement MVVM architecture in my project. My Android Studio is Koala. I want to use the latest versions which are compatible with my project.
My module level gradle file looks like this:
...
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
20
views
Getting error " application installation failed " in android studio while using it with kotlin
I have just started with kotlin in android studio, and i am constantly getting encountered by error "The Device already has newer version of this application. In order to proceed, you will have ...
0
votes
0
answers
12
views
How do I get IntelliJ to recognize arguments defined in my ~/.grade/gradle.properties file?
I'm running IntelliJ 2023.3.4 on Windows. I have imported a Gradle project and I have these lines in my build.gradle file
...
credentials {
≠≠ username = "${my_user}"
...
0
votes
0
answers
29
views
Android Studio Sync Failed, How to Upgrade Android SDK in Ionic 2
I have an old project using Ionic2 with minimum SDK 19 and Targeted SDK 29. I want to upgrade the targeted SDK 34, I don't change any code, I only change the SDK requirement in the build.gradle, but ...
0
votes
1
answer
36
views
Which is difference between two different imports?
I created a new project and there is some differences on importing on gradle files, I don't understand why its different from other projects that I have, is this wrong, can somebody tell me the ...
0
votes
0
answers
16
views
Is it possible to extract apk and zip it again using build.gradle?
I'm doing a task to encrypt the dex files. Below code I wrote in build.gradle for encrypting and compress it back as apk.
applicationVariants.all { variant ->
variant.outputs.each { output -...
0
votes
1
answer
139
views
Build Gradle Fail with exception after updating kotlin version
I updated my application to kotlin version 2.0.0 for a package but I am now getting this error when launching my flutter app.
Thus far tried to change gradle and java versions
Gradle version: 7.6.3
...
0
votes
0
answers
94
views
Dependency 'androidx.appcompat:appcompat-resources:1.7.0' requires version 34 or later to compile
How to know a particular version of dependency can be compiled with a minimum/maximum version of Android SDK API version.
e.g. How to know Dependency 'androidx.appcompat:appcompat-resources:1.7.0' ...
0
votes
0
answers
20
views
Download jar from a second maven repository
I have the following Gradle 8.9 configuration:
plugins {
id 'org.springframework.boot' version '3.2.7'
id 'io.spring.dependency-management' version '1.1.6'
id 'java'
}
group = 'com.test'
...