Top "Android-gradle-plugin" questions

The Android Gradle Plugin is Android's standard build system.

Error:com.android.builder.dexing.DexArchiveBuilderException: Failed to process guava-21.0.jar Android 3.1 Dev Channel

After updating my dependency versions in AndroidStudio3.1, I started getting the following error: Information:Gradle tasks [:app:assembleDebug] Error:com.…

android android-gradle-plugin guava android-studio-3.0
ViewModelProviders is deprecated in 1.1.0

Looking at the Google docs for ViewModel, they show the below sample code on how to get a ViewModel: val …

android android-gradle-plugin android-architecture-components android-viewmodel
How to fix "unexpected element <queries> found in <manifest>" error?

All of a sudden, I am getting this build error in my Android project: unexpected element <queries> found …

android flutter android-gradle-plugin android-manifest manifest
How to generate buildConfigField with String type

In my Android Studio project there are two build configuration with some buildConfigField: buildTypes { def SERVER_URL = "SERVER_URL" def …

android android-gradle-plugin
Error:Execution failed for task ':android:transformClassesAndResourcesWithProguardForRelease'

Every time I am getting this error when running my project. I can do a Clean and then Run again, …

android build android-gradle-plugin android-proguard
Gradle is failing on syncing my project in the new Android Studio 2.0

I have just upgraded (i.e., installed a full new version) my Android Studio from 1.5 to 2.0. The upgrade seemed to …

android android-gradle-plugin android-studio-2.0
Gradle Could not find method compile() for arguments

i have a hello world full screen android studio 1.5.1 app that i added a gradle/eclipse-mars subproject to. no other …

android gradle android-gradle-plugin subproject
API 'variant.getExternalNativeBuildTasks()' is obsolete and has been replaced with 'variant.getExternalNativeBuildProviders()

Using Android Studio 3.3 Canary 11 with the gradle plugin version 3.3.0-alpha11. It throws the following error when trying to sync gradle …

android firebase android-studio android-gradle-plugin fabric.io
Error:(26, 0) Gradle DSL method not found: 'runProguard()'

I'm using android studio 0.9.3 with gradle 'com.android.tools.build:gradle:0.14.+' apply plugin: 'com.android.application' android { compileSdkVersion 19 buildToolsVersion …

android android-gradle-plugin
Android X: tools:replace specified at line: for attribute, but no new value specified

I have tried many solutions on this website but still, the problem is not solved. The issue is due to …

java android android-gradle-plugin android-manifest androidx