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.

106 questions
59
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,328
  • 5
  • 31
  • 58
55
votes
9 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…
29
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
  • 6,606
  • 9
  • 54
  • 100
23
votes
4 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
  • 8,469
  • 4
  • 32
  • 62
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
Anirban
  • 4,066
  • 5
  • 47
  • 74
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…
12
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
  • 141
  • 1
  • 1
  • 9
11
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
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…
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…
8
votes
2 answers

Variant debug has no output with type INSTANT_RUN_MERGED_MANIFESTS

What I want to do & the problem I updated my Android Studio and Android Gradle Plugin to 3.0.0 and my Gradle Wrapper to 4.2.1 and want to build & deploy my Android Gradle project on a device via IDE. Building succeeds When I try to deploy my :app…
8
votes
2 answers

isMinifyEnabled() is deprecated. What is the alternative?

I use the below code to automatically generate pro guard mapping file apparently according to product flavors. buildTypes { release { minifyEnabled true shrinkResources true proguardFiles…
Sai
  • 12,738
  • 15
  • 70
  • 106
7
votes
2 answers

Random test failure with native crash

I am running espresso test suite against my application on emulator. I see random crashes with following logcat output: 06-26 08:58:51.129 info WebViewFactory Loading com.android.webview version 44.0.2403.119 (code 246011960) 06-26 08:58:51.136…
AK42
  • 831
  • 7
  • 12
1
2 3 4 5 6 7 8