Questions tagged [android-gradle-3.0]

Use this tag for questions specifically related to the version 3 of the Android Gradle Plugin, for generic questions use the android-gradle tag.

Version 3 of the Android Gradle Plugin is Android's standard build system. It is used as backing-build-system by Android Studio.

123 questions
61
votes
13 answers

commons-logging defines classes that conflict with classes now provided by Android after Android Studio Update

I have updated Android Studio to version 3 and now seems unable to compile my project previously compiled without errors. The error message is the follow Error:Error: commons-logging defines classes that conflict with classes now provided by…
60
votes
16 answers

java.lang.NoSuchMethodError: No static method getFont(Landroid/content/Context;ILandroid/util/TypedValue;ILandroid/widget/TextView;)

After I updated my Android Studio to 3.0 I am getting No static method getFont() error. The project on which I am working is on github, https://github.com/ik024/GithubBrowser // Top-level build file where you can add configuration options common to…
ik024
  • 3,566
  • 7
  • 38
  • 61
35
votes
1 answer

Android Gradle Implementation vs CompileOnly Performance

The docs mention that implementation provides significant build time improvements over compile/api. What about compileOnly? My use case is a multi-module (sorry I don't like Gradle's multi-project terminology) project, where I have an Android app,…
Eliezer
  • 7,209
  • 12
  • 56
  • 103
25
votes
9 answers

Failed to find Build Tools revision 30.0.1

My Android Studio setup is as follows : Android Studio Version : 4.0 (May 2020 Build) Android Gradle Plugin Version : 4.0.0 Gradle Version : 6.1.1 But it gives me this error : Failed to find Build Tools revision 30.0.1 I checked in the SDK tools…
Raulp
  • 7,758
  • 20
  • 93
  • 155
25
votes
2 answers

Could not find method api() for arguments [directory 'libs']

Open File This is my gradle file: apply plugin: 'com.android.application' android { compileSdkVersion 27 buildToolsVersion "27.0.1" defaultConfig { applicationId "com.landdrops.cricketfantacy.androidbottom" …
Sushan Dhital
  • 271
  • 1
  • 3
  • 9
24
votes
5 answers

java.lang.UnsupportedOperationException: Can't convert value at index 5 to color: type=0x5

My app is crashing after updating to Android Studio 3 RC1 (Gradle 4, Android Gradle plugin 3 RC2). This is the error I am having: java.lang.RuntimeException: Unable to start activity ComponentInfo{*****}: android.view.InflateException: Binary XML…
21
votes
3 answers

The CompileOptions.bootClasspath property has been deprecated

After upgrading to Gradle 4.x, I get the warning The CompileOptions.bootClasspath property has been deprecated and is scheduled to be removed in Gradle 5.0. Please use the CompileOptions.bootstrapClasspath property instead. in one of my projects.…
Simon Warta
  • 10,850
  • 5
  • 40
  • 78
20
votes
8 answers

Android Studio 3.0 Unsigned Apk Not Installing

After upgrading to android studio 3.0 the debug apk is saying App not istalled. The package appears to be corrupted
A J
  • 4,542
  • 5
  • 50
  • 80
15
votes
2 answers

AGP Upgrade Assistant window not opening in Android Studio

When I press Tools > AGP Upgrade Assistant button, nothing happens. I am using Arctic Fox 2020.3.1 Patch 4. I also tried this on Bumblebee 2021.1.1 and the same problem occurs. Other maybe relevant info Fluter Android Studio plugin 63.2.1 Dart…
15
votes
4 answers

Android: Firebase remoteConfig getString() method is removing quotes from string inside default.xml

i have the following remote config_default.xml file LOCAL_JSON [{"title":"TitleA","path":"pathA","image_url":" Some URL…
13
votes
2 answers

Active build variant does not have a test artifact

I have created a new build type called 'bitrise' based on the 'debug' build variant. The instrumented androidTests build and run fine when using the 'debug' build variant however when I switch over to my new 'bitrise' build variant I get the…
11
votes
1 answer

org.gradle.execution.TaskSelectionException: Task 'wrapper' not found in project ':app'

I open my project after a few days and I started getting this error org.gradle.execution.TaskSelectionException: Task 'wrapper' not found in project ':app'. I tried to Clean Project and Invalidate Caches/Restart option But still no luck. project…
11
votes
5 answers

Failed to transform file '45907c80e09917e1b776adf038505958' to match attributes {artifactType=jar} using transform AarTransform

I am using Android 3.0 canary 4 and making an app. Everything was working fine until yesterday, but today when i opened the project, it gave me an error F:\test projects\SellIT\app\build.gradle Error:Failed to resolve: Failed to transform file…
10
votes
1 answer

DataBindingInfo.java being regenerated at every code change

I'm working on fairly large, multi module Android project which is using Data Binding, Dagger 2 and Java mixed with Kotlin. After the slightest change in the project "code" files (.java and .kt files including activities, custom classes etc) there…
10
votes
4 answers

Android Gradle Plugin 3.0 Build Error

Experiencing issues migrating to Android gradle plugin 3.0. build.gradle file on the root of project buildscript { repositories { jcenter() google() } dependencies { classpath…
1
2 3
8 9