13,240 questions
            
            
            0
            votes
        
        
            0
            answers
        
        
            14
            views
        
    Firebase plugin in quasar project - impossible to build
                I have a quasar project with cordova to create my android platform.
I need to manage push notifications and I've chosen to do that with Firabase (Cloud messaging). I configurated everything on Google ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            28
            views
        
    Could not Resolve all files for configuration ':classpath'. could not find com.facebook.react:react-native-gradle-plugin:0.73.0
                I've been facing this issue for the past 3 weeks. building the app always returns this error:
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project '...
            
        
       
    
            0
            votes
        
        
            1
            answer
        
        
            15
            views
        
    "Could not download multidex-instrumentation-2.0.0.aar" error inside android studio while trying to make the android project
                I'm going to make my android project (Ctrl+F9) but it started to show an error like this:
Execution failed for task ':app:compilePejvakDebugAidl'.
> Could not resolve all files for configuration ':...
            
        
       
    
            0
            votes
        
        
            1
            answer
        
        
            33
            views
        
    How to replace the deprecated plugin function with the apply function in Gradle
                The Android Studio's Empty Activity default configuration calls the plugin function in two places:
in the FirstEmpty/build.gradle.kts script:
import org.gradle.kotlin.dsl.support....
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            15
            views
        
    How to have single Jacoco code coverage report for multi-module project
                I'm working on an Android project using Gradle and JaCoCo to generate code coverage reports. Currently, my jacoco.gradle file is configured as follows:
apply plugin: 'jacoco'
def coverageSourceDirs = ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            19
            views
        
    Why can't my Android app find game-text-input/gametextinput.cpp?
                My game uses the AndroidX game text input module. It's been working for a couple years but I recently updated to the latest version 4.0.0 and now Android Studio/Gradle can't find the source file and I ...
            
        
       
    
            -3
            votes
        
        
            0
            answers
        
        
            29
            views
        
    what Could be the solution [closed]
                Multiple build operations failed.
Could not create task ':google_sign_in_android:generateDebugUnitTestConfig'.
Could not create task ':path_provider_android:generateDebugUnitTestConfig'.
Could not ...
            
        
       
    
            3
            votes
        
        
            3
            answers
        
        
            112
            views
        
    I'm already using Kotlin latest version still Flutter wants me to upgrade
                When i run the emulator i get these errors and fix :
e: file:///C:/Users/xunre/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/2.1.10/d3028429e7151d7a7c1a0d63a4f60eac86a87b91/...
            
        
       
    
            0
            votes
        
        
            2
            answers
        
        
            91
            views
        
    Flutter Android Gradle Plugin is not changing the version
                I need your help... Even ChatGPT can't solve it... my Flutter app is not running on android. Some packages require ADP 8.3.0, and i can't change it.
here is my android/build.gradle:
buildscript {
    ...
            
        
       
    
            -1
            votes
        
        
            1
            answer
        
        
            77
            views
        
    What is the problem in my configuration of build.gradle to release an app bundle?
                I'm getting an error in the console and I have no idea how to solve it, since I follow the exact instructions of the Flutter official site to generate an appbundle.
This is the error I've got:
This ...
            
        
       
    
            1
            vote
        
        
            1
            answer
        
        
            123
            views
        
    Flutter Build Fails Due to Android Gradle Plugin (AGP) Version Conflict
                Problem Statement:
I'm working on a Flutter project and facing a Gradle build failure due to a version conflict with the Android Gradle Plugin (AGP).
Initially, I encountered warnings about Java 8 ...
            
        
       
    
            0
            votes
        
        
            1
            answer
        
        
            73
            views
        
    How to resolve the error "Could not resolve androidx.test:runner:1.6.2"
                When I execute this command in terminal:
./gradlew clean and build --scan
The build fails with this error:
> Could not resolve all artifacts for configuration
> ':app:...
            
        
       
    
            1
            vote
        
        
            1
            answer
        
        
            92
            views
        
    Java 17 with reflection restriction modifiers java.lang.NoSuchFieldException: modifiers
                I have to support 16KB page size device in Android 35. To support 16KB page size devices, we have updated the AGP version to the latest 8.7. The latest AGP version requires Java 17.
However after ...
            
        
       
    
            -1
            votes
        
        
            0
            answers
        
        
            91
            views
        
    AGP Version 8.7.3 not supported in most recent Android Studio
                I believe to have encountered a bug in the most recent Android Studio Version regarding AGP compatibility. Does anyone know about it?
According to offical Android documentation, the most recent ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            21
            views
        
    Adding .aar files using gradle 8.9 crashes
                Prior to this, I was using:
classpath 'com.android.tools.build:gradle:8.5.1'
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-all.zip
I have a separate module for this SDK:
...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            17
            views
        
    * What went wrong: A problem occurred configuring project ':react-native-activity-recognition'. > Could not determine the dependencies of null
                don't know what is the problem here, this is my build.gradle. Is this library too old to use? and how can I solve this?
// Top-level build file where you can add configuration options common to all ...
            
        
       
    
            0
            votes
        
        
            1
            answer
        
        
            125
            views
        
    How to run AGP Upgrade assistant?
                I'm using last version of android Studio
( Android Studio Ladybug Feature Drop | 2024.2.2 )
Once the project sync there is a message saying I'm using a old version of AGP (8.6) and should run upgrade ...
            
        
       
    
            -1
            votes
        
        
            0
            answers
        
        
            18
            views
        
    React Native project not loading app but other projects do?
                Having issues that I cannot wrap my head around on my Mac computer when running React Native. when trying to run 'npm run start' or 'npx react-native start'. I do not understand how I can run a ...
            
        
       
    
            2
            votes
        
        
            3
            answers
        
        
            516
            views
        
    Gradle Build Error: "zip END header not found" in React Native Project
                I'm encountering a Gradle build error while working on my React Native project. The error message is:
org.gradle.api.ProjectConfigurationException: A problem occurred configuring project ':gradle-...
            
        
       
    
            -1
            votes
        
        
            0
            answers
        
        
            44
            views
        
    React Native Build Issue
                Error resolving plugin [id: 'com.facebook.react.settings']
> A problem occurred configuring project ':gradle-plugin:react-native-gradle-plugin'.
   > java.util.zip.ZipException: error in opening ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            34
            views
        
    Gradle Build Fails in Expo React Native: "Unexpected lock protocol found in lock file. Expected 3, found 50"
                I'm trying to run my React Native project using Expo (npx expo run:android), but I'm encountering a Gradle error:
FAILURE: Build failed with an exception.
* What went wrong:
Unexpected lock protocol ...
            
        
       
    
            1
            vote
        
        
            0
            answers
        
        
            32
            views
        
    Flutter Build Failed when first time Build Apk: Could not initialize class org.jetbrains.kotlin.gradle.plugin.sources.DefaultKotlinSourceSetKt
                I recently installed Flutter, create first project, and try to run it in my phone devices with USB debugging. I execute command flutter build apk and flutter run, but it failed and show this error:
...
            
        
       
    
            1
            vote
        
        
            1
            answer
        
        
            47
            views
        
    Where is specified the highest Java language version that the d8 compiler accepts?
                I cannot find the authoritateive answer anywhere.
I know that what d8 is and that it performs desugaring. Basically, up to what Java language version can it desugar?
I found these websites that list ...
            
        
       
    
            1
            vote
        
        
            2
            answers
        
        
            27
            views
        
    Print the plugin version gradle consumes with a conv
                I have a convention plugin tv.twitch.gradle.plugins.android-library that defines all of our android {} defaults. It naturally depends on com.android.library:
tv.twitch.gradle.plugins.android-library....
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            273
            views
        
    React-Native expo for Android Native not working. Command npx expo run:android fails. Even before I write a line of code
                I cannot even create a basic app for react-native.
It must run on my android phone.
I have been using react-native for over a year but since moving to expo I have had nothing but problems when it ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            22
            views
        
    Execution failed for task ':app:checkDemoBenchmarkReleaseDuplicateClasses'
                I have project B which I used as library for project A. 
When I build project B with command:
 ./gradlew clean build project B is build without error.
After build I push project B as library into ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            117
            views
        
    Android App does not compile anymore after Android Studio update
                I have an app that has been working properly for many years and I also installed it on several phones and tablets without any problems. Unfortunately I mad an update of Android Studio (from Flamingo ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            13
            views
        
    After agp8.0 version, how to insert a task after mergeResouces task?
                I need to compress the images after the mergeResources task, so that my apk package size can be reduced.
However, artifact api v2 after agp8.0 does not provide a similar channel.
I have no way to use ...
            
        
       
    
            0
            votes
        
        
            1
            answer
        
        
            54
            views
        
    Execution failed for task ':base:collectDependencies'
                I am fairly new in AGP and Gradle.
But I need to build project which was upgraded on AGP 8.7.3 and Gradle 8.9.
Project structure is:
app
   |-base
   |-other modules...
Another project structure is:
...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            32
            views
        
    Fatal Error dependencyNamr: Already seen doctype
                I have an old android project and I am on the process of shifting to AndordX and updated gradle. When I build the project I receive the below error for some dependency, what could possibly be the ...
            
        
       
    
            7
            votes
        
        
            0
            answers
        
        
            572
            views
        
    debugRuntimeClasspathCopy configuration has been deprecated for consumption
                I met the following warning during the Gradle build :
Task :prepareKotlinBuildScriptModel UP-TO-DATE
The debugRuntimeClasspathCopy configuration has been deprecated for consumption. This will fail ...
            
        
       
    
            0
            votes
        
        
            1
            answer
        
        
            112
            views
        
    How can I solve this Build error in Unity after adding Firebase to the project?
                I want to add Firebase to my Unity project.
I followed the Firebase docs from here:
https://firebase.google.com/docs/unity/setup-alternative#alternative_unity_package_manager.
I imported External ...
            
        
       
    
            0
            votes
        
        
            2
            answers
        
        
            65
            views
        
    Cannot build just created KMM project in Android Studio due to UnitSuspendFunctionObjCExport
                I've installed Kotlin Multiplatform plugin v. 0.8.3(242)-5 in Android Studio Lady Bug.
Than I've created Multiplatform project and tried to build it and got following output:
org.jetbrains.kotlin....
            
        
       
    
            2
            votes
        
        
            1
            answer
        
        
            38
            views
        
    How do I copy assets from external library using gradle on Android
                I have an external library dependency in my Android project.
Like this -
dependencies {
    // Example: external library
    implementation 'com.example:my-external-library:1.0.0'
    
}
This library ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            21
            views
        
    Project android: A problem occurred configuring root project 'flutter_image_compress'. Plugin with id 'com.android.library' not found
                Actually in my flutter project I am getting this error with problem of finding root of 'flutter_image_compress' and plugin id 'com.android.library' is missing and also problem with apply script method....
            
        
       
    
            0
            votes
        
        
            1
            answer
        
        
            231
            views
        
    i need help troubleshooting issues with plugins, i am using gradle 8.12
                The supplied phased action failed with an exception.
A problem occurred configuring project ':app'.
Build file 'C:\Users\Sage\AI\app\build.gradle.kts' line: 1
Plugin [id: 'com.android.application', ...
            
        
       
    
            0
            votes
        
        
            1
            answer
        
        
            61
            views
        
    Errors in build.gradle files in new kotlin multiplatform project
                I was having issues with my build.gradle file in a kotlin multiplatform project, and as part of debugging I created a new kmp project and the errors were still there. I can still build and run the ...
            
        
       
    
            0
            votes
        
        
            2
            answers
        
        
            377
            views
        
    BUILD FAILED (React-Native 0.76.5) Unit defined in com.facebook.soloader.SoLoader
                I have upgraded my react-native app from 0.75.4 to 0.76.5 following this page React Native Upgrade Helper
When I run the command "npm run android" I got this error message:
error Failed to ...
            
        
       
    
            0
            votes
        
        
            2
            answers
        
        
            170
            views
        
    Change default template of Flutter projects
                I think I have a problem with my flutter installation, or at least a conflict with the versions of Android Studio. Whenever I create a new Flutter project, I receive this advise:
The configured ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            18
            views
        
    Android Project Is Not Running - Could not resolve all files for configuration ':app:debugRuntimeClasspath' [duplicate]
                When I try to run the project, I encounter the following error, and despite trying multiple solutions, I haven't been able to resolve it:
Execution failed for task ':app:mergeDebugAndroidTestAssets'.
&...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            68
            views
        
    Why am I unable to use TensorFlow Lite with ML Model Binding in my Android project?
                I'm building an Android app using TensorFlow Lite with ML Model Binding. I've followed the required setup but can't get the TensorFlow Lite model to work in my MainActivity. Specifically, the IDE ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            41
            views
        
    Android connectedDebugAndroidTest fails after update Android Gradle Plugin
                Everything workes ok on:
com.android.tools.build:gradle:8.3.2
After updating to
com.android.tools.build:gradle:8.4.0
I get the error:
Could not initialize class org.bouncycastle.operator....
            
        
       
    
            1
            vote
        
        
            1
            answer
        
        
            57
            views
        
    Integrating a Native Android Package via a Flutter Plugin
                I am migrating from using a native android package to making a flutter plugin around this package. During the build process, I encounter an error indicating that the required dependency cannot be ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            52
            views
        
    Gradle Project Sync Failed. Cause: zip END header not found
                My android project was working fine until I started an emulator for android tablet.
Since then I was not able sync my project. I tried uninstalling android studio and pulled my working github ...
            
        
       
    
            1
            vote
        
        
            0
            answers
        
        
            27
            views
        
    A new Android Studio project - "Plugin [id: 'com.android.application'] was not found in any of the following sources:"
                Normally, there would be a list of sources below the error message, but there's empty on my log.
Some answers mentioned the google() repository, but it's been in the list.
Here is a portion of the ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            84
            views
        
    gradle error Could not resolve all artifacts for configuration ':classpath'
                Android studio: Koala Feature Drop | 2024.1.2
JDK: 17.0.11
gradle version; 8.7
gradle plugin version: 8.5.2
these are my settings
i dont know what wrong with android studio. it can't even sync and ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            64
            views
        
    android Task :app:connectedDebugAndroidTest fails with error : caused by: org.bouncycastle.openssl.PEMException: malformed sequence in RSA private key
                i'm trying to run basic instrumented test on my android app , to test room database , when i lunch the test , the task
:app:connectedDebugAndroidTest 
always fails and throws the following error
...
            
        
       
    
            1
            vote
        
        
            0
            answers
        
        
            123
            views
        
    My APK now considered as virus by Google Drive
                I was using an old Android Studio and I decided to move to the latest stable one.
I had to rework all my apps to make them work with the gradle of the new Android Studio.
Bizarrely I now get the ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            33
            views
        
    Republish native libs to the old location
                I am working on a large C++ project and we are also building for Android. Recently we decided to update AGP to the latest version (8.7.2). We also have a bunch of python scripts to process our native ...
            
        
       
    
            0
            votes
        
        
            1
            answer
        
        
            123
            views
        
    I'm unable to match the java version with gradle within flutter
                I keep getting the error "Your project's Gradle version is incompatible with the Java version that Flutter is using for Gradle." no matter which versions of the JDK I select, kotlin version, ...