# \#android

**URL:** https://discuss.gradle.org/tag/android/50.md

[Latest](https://discuss.gradle.org/latest.md) · [Categories](https://discuss.gradle.org/categories.md) · [Tags](https://discuss.gradle.org/tags.md)

---

## [Help me](https://discuss.gradle.org/t/help-me/52220)

<div class="topic-metadata">

**Author:** [@sharqwood](https://discuss.gradle.org/u/sharqwood)\
**Replies:** 0\
**Last updated:** [September 30, 2026, 10:59am UTC](https://discuss.gradle.org/t/help-me/52220 "2026-09-30T10:59:06Z")

</div>

Hi freinds i’am new member with you can you help me to build my project I’m in windows 7 Android studio version Hedgehog with this configuration id("com.android.application") version "8.1.4" id("org.jetbrains.kotlin.…

---

## [Gradle - aapt2.exe unsigned](https://discuss.gradle.org/t/gradle-aapt2-exe-unsigned/51993)

<div class="topic-metadata">

**Author:** [@jhegedus72-dotcom](https://discuss.gradle.org/u/jhegedus72-dotcom)\
**Replies:** 1\
**Last updated:** [March 27, 2026, 8:47pm UTC](https://discuss.gradle.org/t/gradle-aapt2-exe-unsigned/51993 "2026-03-27T20:47:37Z")

</div>

I am using Gradle 9.4.1. in Android studio, Windows 11 I get a windows error that aapt2.exe is unsigned. (unknown publisher) Is there a signed version of aapt2.exe?

---

## [My Github and Ionic Appflow build keeps crashing](https://discuss.gradle.org/t/my-github-and-ionic-appflow-build-keeps-crashing/51841)

<div class="topic-metadata">

**Author:** [@AnseloOriginal](https://discuss.gradle.org/u/AnseloOriginal)\
**Replies:** 0\
**Last updated:** [January 4, 2026, 2:27pm UTC](https://discuss.gradle.org/t/my-github-and-ionic-appflow-build-keeps-crashing/51841 "2026-01-04T14:27:45Z")

</div>

The error message is: FAILURE: Build failed with an exception. \* What went wrong: Execution failed for task ':app:processDebugResources'. \> A failure occurred while executing com.android.build.gradle.internal.res.LinkA…

---

## [\[Help\]Gradle conversion jar error during build](https://discuss.gradle.org/t/help-gradle-conversion-jar-error-during-build/51814)

<div class="topic-metadata">

**Author:** [@android-zeros](https://discuss.gradle.org/u/android-zeros)\
**Replies:** 1\
**Last updated:** [December 24, 2025, 12:07am UTC](https://discuss.gradle.org/t/help-gradle-conversion-jar-error-during-build/51814 "2025-12-24T00:07:12Z")

</div>

log： \> Transform classes.jar (project :core:git) with DexingNoClasspathTransform ERROR: D8: Invalid build configuration. Attempt to create a global synthetic for 'Record desugaring' without a global-synthetics consumer…

---

## [\`androidx.core\` requires new AGP version](https://discuss.gradle.org/t/androidx-core-requires-new-agp-version/51756)

<div class="topic-metadata">

**Author:** [@theashggl](https://discuss.gradle.org/u/theashggl)\
**Replies:** 8\
**Last updated:** [November 18, 2025, 11:45am UTC](https://discuss.gradle.org/t/androidx-core-requires-new-agp-version/51756 "2025-11-18T11:45:13Z")

</div>

I am facing the same issue along with another issue Execution failed for task ‘:app:checkDebugAarMetadata’. \> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction \> 2 is…

---

## [I trying create my first app](https://discuss.gradle.org/t/i-trying-create-my-first-app/49134)

<div class="topic-metadata">

**Author:** [@MRo0t](https://discuss.gradle.org/u/MRo0t)\
**Replies:** 2\
**Last updated:** [April 22, 2025, 7:40pm UTC](https://discuss.gradle.org/t/i-trying-create-my-first-app/49134 "2025-04-22T19:40:58Z")

</div>

I trying create my first app but get this when i go build Build file 'C:\\Users\\Alex\\IdeaProjects\\MyApplication\\build.gradle.kts' line: 2 Plugin \[id: 'com.android.application', version: '8.6.0-alpha07', apply: false\] wa…

---

## [Error: Gradle build failed with unknown error](https://discuss.gradle.org/t/error-gradle-build-failed-with-unknown-error/50442)

<div class="topic-metadata">

**Author:** [@GeekosServer](https://discuss.gradle.org/u/GeekosServer)\
**Replies:** 1\
**Last updated:** [February 8, 2025, 2:19pm UTC](https://discuss.gradle.org/t/error-gradle-build-failed-with-unknown-error/50442 "2025-02-08T14:19:11Z")

</div>

Need Help to fix this error to build react native proyect whit expo: Running 'gradlew :app:assembleRelease' in /home/expo/workingdir/build/android Downloading https://services.gradle.org/distributions/gradle-8.8-all.zip…

---

## [Flutter - Not able to migrate to Gradle 8](https://discuss.gradle.org/t/flutter-not-able-to-migrate-to-gradle-8/46937)

<div class="topic-metadata">

**Author:** [@alessandrofornari](https://discuss.gradle.org/u/alessandrofornari)\
**Replies:** 13\
**Last updated:** [December 23, 2024, 4:32pm UTC](https://discuss.gradle.org/t/flutter-not-able-to-migrate-to-gradle-8/46937 "2024-12-23T16:32:56Z")

</div>

Hi to everyone, It is my first time here. Here’s the issue: I first wanted to build My app in release mode, after I updated my app Flutter version. Flutter doctor output: Doctor summary (to see all details, run flut…

---

## [Android Gradle Plugin migration (v4.0.1 to v8.7.0) new hash folder in build path](https://discuss.gradle.org/t/android-gradle-plugin-migration-v4-0-1-to-v8-7-0-new-hash-folder-in-build-path/49818)

<div class="topic-metadata">

**Author:** [@Alex](https://discuss.gradle.org/u/Alex)\
**Replies:** 0\
**Last updated:** [November 7, 2024, 4:51pm UTC](https://discuss.gradle.org/t/android-gradle-plugin-migration-v4-0-1-to-v8-7-0-new-hash-folder-in-build-path/49818 "2024-11-07T16:51:53Z")

</div>

Hi, I updated Android Gradle Plugin from v4.0.1 to v8.7.0. I found the new AGP version is adding a folder to the build path, naming that folder with a hash value generated based on a set of values (detailed in a file ca…

---

## [How Gradle Handle libraries (specifically jetpack compose)?](https://discuss.gradle.org/t/how-gradle-handle-libraries-specifically-jetpack-compose/49758)

<div class="topic-metadata">

**Author:** [@himanshumahajan138](https://discuss.gradle.org/u/himanshumahajan138)\
**Replies:** 0\
**Last updated:** [October 29, 2024, 8:41am UTC](https://discuss.gradle.org/t/how-gradle-handle-libraries-specifically-jetpack-compose/49758 "2024-10-29T08:41:28Z")

</div>

i am new to Gradle and i want to know about how gradle handles libraries (resources, manifest, R.txt, classes.jar and other files) and how to use them during build. generally, we use aapt2 for compiling and linking but …

---

## [How can I get the source files of all the ProjectDependency of a specific Project?](https://discuss.gradle.org/t/how-can-i-get-the-source-files-of-all-the-projectdependency-of-a-specific-project/27858)

<div class="topic-metadata">

**Author:** [@leinardi](https://discuss.gradle.org/u/leinardi)\
**Replies:** 3\
**Last updated:** [October 16, 2024, 12:54pm UTC](https://discuss.gradle.org/t/how-can-i-get-the-source-files-of-all-the-projectdependency-of-a-specific-project/27858 "2024-10-16T12:54:32Z")

</div>

I am trying to write a Gradle Plugin that runs Checkstyle over all the source code of a specific Android app, including all the variants and all the library modules that the app module is using and generate a single repo…

---

## [Gradle newbie looking for help with unit testing](https://discuss.gradle.org/t/gradle-newbie-looking-for-help-with-unit-testing/49567)

<div class="topic-metadata">

**Author:** [@MediocDev](https://discuss.gradle.org/u/MediocDev)\
**Replies:** 0\
**Last updated:** [October 5, 2024, 10:20am UTC](https://discuss.gradle.org/t/gradle-newbie-looking-for-help-with-unit-testing/49567 "2024-10-05T10:20:15Z")

</div>

I’m relatively new to using Gradle and its’ command line options, and while I have some experience creating working Android apps, I don’t have a clue on how to get unit tests up and running for my Android application. (I…

---

## [\[Andriod\] duplicate class error when I use release based buildType but use dependency that debug variant uses](https://discuss.gradle.org/t/andriod-duplicate-class-error-when-i-use-release-based-buildtype-but-use-dependency-that-debug-variant-uses/49368)

<div class="topic-metadata">

**Author:** [@saravr](https://discuss.gradle.org/u/saravr)\
**Replies:** 0\
**Last updated:** [September 9, 2024, 3:57pm UTC](https://discuss.gradle.org/t/andriod-duplicate-class-error-when-i-use-release-based-buildtype-but-use-dependency-that-debug-variant-uses/49368 "2024-09-09T15:57:01Z")

</div>

I added a new buildType called “qa” in gradle and it inherits from release. android { buildTypes { debug { } qa { initWith release debuggable true } re…

---

## [Process 'command 'node'' finished with non-zero exit value 1](https://discuss.gradle.org/t/process-command-node-finished-with-non-zero-exit-value-1/49184)

<div class="topic-metadata">

**Author:** [@vishnuvasita21](https://discuss.gradle.org/u/vishnuvasita21)\
**Replies:** 2\
**Last updated:** [August 21, 2024, 11:33pm UTC](https://discuss.gradle.org/t/process-command-node-finished-with-non-zero-exit-value-1/49184 "2024-08-21T23:33:36Z")

</div>

I am facing the same issue Did you able to find any work around? Configuration on demand is an incubating feature. :ReactNative:Running '\[node, D:\\SUMMER24\\health\\fitnessApp\\node\_modules\\@react-native-community\\cli\\bui…

---

## [Gradle Build failed with duplicate classes from two external aar file](https://discuss.gradle.org/t/gradle-build-failed-with-duplicate-classes-from-two-external-aar-file/48027)

<div class="topic-metadata">

**Author:** [@abdullahi](https://discuss.gradle.org/u/abdullahi)\
**Replies:** 2\
**Last updated:** [August 20, 2024, 9:19pm UTC](https://discuss.gradle.org/t/gradle-build-failed-with-duplicate-classes-from-two-external-aar-file/48027 "2024-08-20T21:19:56Z")

</div>

Hello, How do I resolve “Duplicate class” error during the build? I’m using Android Studio to build a project that has two different jar library but on trying to build the project, I am getting this error: Duplicate c…

---

## [doLast and android project](https://discuss.gradle.org/t/dolast-and-android-project/48572)

<div class="topic-metadata">

**Author:** [@Joachim77](https://discuss.gradle.org/u/Joachim77)\
**Replies:** 0\
**Last updated:** [May 29, 2024, 11:28am UTC](https://discuss.gradle.org/t/dolast-and-android-project/48572 "2024-05-29T11:28:52Z")

</div>

I’m late to upgrade Gradle, but today I woke up. Now how should I rewrite this so it builds releases first and then executes my task? Used to have tasks.register('buildRelease') { dependsOn 'assembleRelease' g…

---

## [App-debug.apk' already contains entry 'AndroidManifest.xml', cannot overwrite](https://discuss.gradle.org/t/app-debug-apk-already-contains-entry-androidmanifest-xml-cannot-overwrite/44111)

<div class="topic-metadata">

**Author:** [@Hans](https://discuss.gradle.org/u/Hans)\
**Replies:** 2\
**Last updated:** [April 15, 2024, 2:47pm UTC](https://discuss.gradle.org/t/app-debug-apk-already-contains-entry-androidmanifest-xml-cannot-overwrite/44111 "2024-04-15T14:47:12Z")

</div>

Hi, I’m a newbie at Kotlin and android studio. I’m trying to build my own common library which want to use in my app. I started with my app and created in there a class. This worked and so far so good. But now i transfe…

---

## [Namespace not specified for AGP 8.0.0](https://discuss.gradle.org/t/namespace-not-specified-for-agp-8-0-0/45850)

<div class="topic-metadata">

**Author:** [@richzii](https://discuss.gradle.org/u/richzii)\
**Replies:** 12\
**Last updated:** [March 21, 2024, 9:33am UTC](https://discuss.gradle.org/t/namespace-not-specified-for-agp-8-0-0/45850 "2024-03-21T09:33:14Z")

</div>

Hi! Need some help with Android Gradle Plugin update. When I try to update project from 7.4.2 to 8.0.0 I get an error: Namespace not specified. Please specify a namespace in the module's build.gradle file like so: andr…

---

## [Custom task to execute all unit tests in all subprojects (aka. modules)](https://discuss.gradle.org/t/custom-task-to-execute-all-unit-tests-in-all-subprojects-aka-modules/47604)

<div class="topic-metadata">

**Author:** [@johnjohndoe](https://discuss.gradle.org/u/johnjohndoe)\
**Replies:** 1\
**Last updated:** [February 5, 2024, 3:37pm UTC](https://discuss.gradle.org/t/custom-task-to-execute-all-unit-tests-in-all-subprojects-aka-modules/47604 "2024-02-05T15:37:23Z")

</div>

I would like to write a custom task for an Android application project with multiple Gradle modules which executes the unit tests in the following modules so I can run all of them with one Gradle task invocation: Andro…

---

## [Launch single unit test from gradle test task in android project](https://discuss.gradle.org/t/launch-single-unit-test-from-gradle-test-task-in-android-project/47356)

<div class="topic-metadata">

**Author:** [@Phoenix](https://discuss.gradle.org/u/Phoenix)\
**Replies:** 8\
**Last updated:** [January 3, 2024, 1:01pm UTC](https://discuss.gradle.org/t/launch-single-unit-test-from-gradle-test-task-in-android-project/47356 "2024-01-03T13:01:16Z")

</div>

I need a gradle test task that launches specific unit test. Here is my android project root level build gradle file plugins { id 'com.android.application' version '8.0.0' apply false id 'org.jetbrains.kotlin.androi…

---

## [Custom task to execute all unit tests in all modules](https://discuss.gradle.org/t/custom-task-to-execute-all-unit-tests-in-all-modules/47158)

<div class="topic-metadata">

**Author:** [@johnjohndoe](https://discuss.gradle.org/u/johnjohndoe)\
**Replies:** 0\
**Last updated:** [December 4, 2023, 10:48pm UTC](https://discuss.gradle.org/t/custom-task-to-execute-all-unit-tests-in-all-modules/47158 "2023-12-04T22:48:45Z")

</div>

I would like to write a custom task for an Android application project with multiple Gradle modules which executes the unit tests in the following modules so I can run all of them with one Gradle task invocation: Andro…

---

## [Get current productFlavors while build](https://discuss.gradle.org/t/get-current-productflavors-while-build/45672)

<div class="topic-metadata">

**Author:** [@mtrakal](https://discuss.gradle.org/u/mtrakal)\
**Replies:** 1\
**Last updated:** [November 26, 2023, 6:56am UTC](https://discuss.gradle.org/t/get-current-productflavors-while-build/45672 "2023-11-26T06:56:03Z")

</div>

Hi, I have Android gradle (.kts files) project. I have 2 flavors (api and client). I need to set properties from file based on both flavors. for example: API: dev, prod Client: ClientX, ClientY now I need to set w…

---

## [Error to load xml file](https://discuss.gradle.org/t/error-to-load-xml-file/46905)

<div class="topic-metadata">

**Author:** [@Cursed](https://discuss.gradle.org/u/Cursed)\
**Replies:** 3\
**Last updated:** [November 6, 2023, 2:53am UTC](https://discuss.gradle.org/t/error-to-load-xml-file/46905 "2023-11-06T02:53:12Z")

</div>

I have set up a flutter project but when i run it i get this error: FAILURE: Build failed with an exception. \* What went wrong: Execution failed for task ':app:processDebugResources'. \> A failure occurred while executi…

---

## [Example Android Kotlin library project for Maven Publish plugin](https://discuss.gradle.org/t/example-android-kotlin-library-project-for-maven-publish-plugin/38335)

<div class="topic-metadata">

**Author:** [@johnjohndoe](https://discuss.gradle.org/u/johnjohndoe)\
**Replies:** 3\
**Last updated:** [September 23, 2023, 8:46pm UTC](https://discuss.gradle.org/t/example-android-kotlin-library-project-for-maven-publish-plugin/38335 "2023-09-23T20:46:32Z")

</div>

I am looking for a clean example project which shows a complete setup for an Android library project written in Kotlin which uses the latest Gradle version and the Maven Publish plugin to allow deploying the library arti…

---

## [Gradle 6.8.2 --\> gradle-8.2.1: java.lang.NoClassDefFoundError: org/gradle/api/plugins/MavenPlugin](https://discuss.gradle.org/t/gradle-6-8-2-gradle-8-2-1-java-lang-noclassdeffounderror-org-gradle-api-plugins-mavenplugin/46074)

<div class="topic-metadata">

**Author:** [@soloturn](https://discuss.gradle.org/u/soloturn)\
**Replies:** 1\
**Last updated:** [July 21, 2023, 12:48pm UTC](https://discuss.gradle.org/t/gradle-6-8-2-gradle-8-2-1-java-lang-noclassdeffounderror-org-gradle-api-plugins-mavenplugin/46074 "2023-07-21T12:48:17Z")

</div>

terasology, a minecraft inspired game written in java, uses a library called “gestalt”, the libraries android build fails when upgrading gradle from 6.8.2 to 8.2.1, with the following error (this source: GitHub - solotur…

---

## [Execution failed for task ':app:processDebugResources'](https://discuss.gradle.org/t/execution-failed-for-task-processdebugresources/45981)

<div class="topic-metadata">

**Author:** [@Ali12](https://discuss.gradle.org/u/Ali12)\
**Replies:** 1\
**Last updated:** [July 6, 2023, 2:14pm UTC](https://discuss.gradle.org/t/execution-failed-for-task-processdebugresources/45981 "2023-07-06T14:14:45Z")

</div>

FAILURE: Build failed with an exception. \* What went wrong: Execution failed for task ':app:processDebugResources'. \> A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResour…

---

## [How to get the asset folder](https://discuss.gradle.org/t/how-to-get-the-asset-folder/45836)

<div class="topic-metadata">

**Author:** [@Lactose](https://discuss.gradle.org/u/Lactose)\
**Replies:** 0\
**Last updated:** [June 15, 2023, 8:36am UTC](https://discuss.gradle.org/t/how-to-get-the-asset-folder/45836 "2023-06-15T08:36:35Z")

</div>

am currently writing a Gradle plugin for Android, and one of the tasks needs to analyze the assets to be put in the app. Using the standard directory to the assets src/main/assets works for the task, however according to…

---

## [Gradle issue app wont launch org.gradle.internal.execution.WorkValidationException](https://discuss.gradle.org/t/gradle-issue-app-wont-launch-org-gradle-internal-execution-workvalidationexception/45825)

<div class="topic-metadata">

**Author:** [@momosaadessop](https://discuss.gradle.org/u/momosaadessop)\
**Replies:** 0\
**Last updated:** [June 13, 2023, 11:27am UTC](https://discuss.gradle.org/t/gradle-issue-app-wont-launch-org-gradle-internal-execution-workvalidationexception/45825 "2023-06-13T11:27:45Z")

</div>

i decided to upgrade my android studio for the new features but now when i try to run the project this error throws org.gradle.internal.execution.WorkValidationException: A problem was found with the configuration of tas…

---

## [CompileOnly a lib, but it is still built in apk](https://discuss.gradle.org/t/compileonly-a-lib-but-it-is-still-built-in-apk/45611)

<div class="topic-metadata">

**Author:** [@gradleBeginner](https://discuss.gradle.org/u/gradleBeginner)\
**Replies:** 0\
**Last updated:** [May 16, 2023, 9:17pm UTC](https://discuss.gradle.org/t/compileonly-a-lib-but-it-is-still-built-in-apk/45611 "2023-05-16T21:17:27Z")

</div>

I have compileOnly Jackson in the build.gradle with something like this: dependencies { CompileOnly ‘Jackson’ } However, I can still find Jackson lib in classes.dex when analyzing apk and it caused duplicated class i…

---

## [Android gradle plugin and NDK and .so file size](https://discuss.gradle.org/t/android-gradle-plugin-and-ndk-and-so-file-size/44949)

<div class="topic-metadata">

**Author:** [@ciwhiz](https://discuss.gradle.org/u/ciwhiz)\
**Replies:** 0\
**Last updated:** [February 21, 2023, 7:32am UTC](https://discuss.gradle.org/t/android-gradle-plugin-and-ndk-and-so-file-size/44949 "2023-02-21T07:32:52Z")

</div>

I couldn’t find the right answer anywhere. please lead me on the way… I built this project on two different PCs. One is a mac(m1), the other is an intel CPU PC. Among the .so files included in the sample app project…

[Next page](https://discuss.gradle.org/tag/android/50.md?match_all_tags=true&page=1&tags%5B%5D=android)
