build.gradle Questions

9

My gradle seems to insist on downloading packages from what looks like a proxy address. With this command I stop all Gradle daemons, remove any Gradle configuration, and build a random project from...
Nostology asked 26/7, 2020 at 8:18

6

My personal preference is to override gradle's default "buildDir" from "build" and use "out" instead. Now for the longest time, I just used the expression buildDir = &...
Urbanna asked 28/11, 2023 at 14:14

7

Solved

Full Error -- An exception occurred applying plugin request [id: 'com.android.application'] Failed to apply plugin 'com.android.internal.application'. Android Gradle plugin requires Java 17 to run...
Methodize asked 30/5, 2023 at 8:8

37

Solved

I have updated Android Studio to 4.1 in Macbook but not able to run app after updating. It is giving following error Execution failed for task ':app:stripDebugDebugSymbols'. NDK at ~/Library/Androi...
Heptode asked 15/10, 2020 at 13:14

9

I am trying to run react native app to my real android device. I checked my device before running adb devices List of devices attached 3357425441473098 device I started with npx react-native s...
Pyrex asked 30/1, 2020 at 18:38

3

Solved

I have just created a new project and worked with it for about a day. I even ran it many times before but I don't know why I get this error: Could not initialize class com.android.build.gradle.int...
Hyperventilation asked 22/5, 2023 at 6:2

7

Solved

These are my gradel files:- Project:- // Top-level build file where you can add configuration options common to all sub-projects/modules. plugins { id 'com.android.application' version '7.2.1' app...

25

Could not install Gradle distribution from 'https://services.gradle.org/distributions/gradle-5.4.1-all.zip' I have just installed Android Studio 3.5 on Windows and then created a new project the ab...
Monophthong asked 22/8, 2019 at 16:3

21

FAILURE: Build failed with an exception. Where: Script 'C:\src\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 991 What went wrong: Execution failed for task ':app:compileFlutterBui...
Weywadt asked 10/2, 2021 at 11:48

4

Solved

I'm interested in defining my many flavors of my apps more so in the strings.xml files rather than the build.gradle. Given multiple flavors, I'd like a simplified release/debug variant: buildType...

46

Solved

I'm getting a gradle error at building since yesterday - it just came randomly.... Full stacktrace here: My project depends on multiple libraries and it built without any problems until yesterday...
Eutrophic asked 11/7, 2013 at 7:44

7

Solved

One or more plugins require a higher Android NDK version. Fix this issue by adding the following to /Users/qqq/data/github/qqq/qqq/android/app/build.gradle: android { ndkVersion 21.3.6528147 ... } ...
Cress asked 19/7, 2022 at 7:32

2

I am trying add AdMob ads in my app. when I add AdMob dependency and implement ads after when I run the app I got this error. Manifest merger failed : Attribute property#android.adservices.AD_SERVI...
Canaster asked 19/4 at 1:39

5

Iam using the Gradle 6.5 version installed on my linux server.I have configured Gradle in jenkins which resides on the same server. I have set a Freestyle project job on jenkins to build using gra...

5

When I changed the variants in my project with android studio 3.5 in 2019, I could not change from Active Build Variants. I solved this by deleting the .idea and Build folders of the project and ch...

4

Execution failing when trying to build, Below is the error Execution failed for task ':app:checkReleaseDuplicateClasses'. A failure occurred while executing com.android.build.gradle.internal.tasks...

2

I've got this build.gradle file: repositories { maven { credentials { username "$artifactory_user" password "$artifactory_password" } url 'http://some.domain/artifactory/repo' } } publishi...
Capacitor asked 23/1, 2019 at 15:32

5

I recently upgraded Gradle from 4.x to 6.6 for a Spring Boot project. I thought I finally had it all up and running, but then realized that one of our apps, which may start two differently configur...
Racism asked 12/9, 2020 at 16:46

28

Solved

I've been experimenting with the new android build system and I've run into a small issue. I've compiled my own aar package of ActionBarSherlock which I've called 'actionbarsherlock.aar'. What I'm ...
Conceptualize asked 22/5, 2013 at 3:9

11

Solved

The error complains that I have not set the signingConfig.release.keyPassword, however I am setting it. I already tried hardcoding the password instead retrieving it from the key.properties file h...
Imparadise asked 11/9, 2019 at 6:40

5

I have a Gradle 7.2 custom plugin that is working properly. I want to configure it to use the new Gradle Version Catalog for dependency information. I know how to configure and use the version cata...

5

Solved

I have different productFlavors specified in my build.gradle file dev { applicationId "com.advancedprogressive.chare.dev" versionCode 83 versionName "2.2.1" } staging { applicationId "com.ad...

13

I'm trying to build my android app for a while and can't seem to find any solution for this problem: Image Unity Version: Unity 2020.3.21f1 (64-bit) JDK, SDK, NDK and Gradle used are Unity's recomm...
Landaulet asked 30/10, 2021 at 1:25

37

Solved

When I build my app, I get the following error: Error: Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'. More than one file was found with OS independent path 'META-INF/...
Tantra asked 3/6, 2017 at 9:31

2

Solved

my application shows the below warning after installing it on a phone for the first time, only in Android 14: This app isn't compatible with the latest version of Android. check for an update or co...

© 2022 - 2024 — McMap. All rights reserved.