Tag: android-gradle

Gradle error: Minimum supported Gradle version is 3.3. Current version is 3.2

When I today update Android Studio it write: Minimum supported Gradle version is 3.3. Current version is 3.2 how can I solve this problem? Here is my build.gradle // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { jcenter() } dependencies { classpath ‘com.android.tools.build:gradle:2.3.0’ // NOTE: Do […]

Cannot install debug and release version on same device

I have configured build variants in my project with applicationIdSuffix so that I can install both debug and release versions on my device. here is my build.gradle (relevant parts): buildTypes { debug { buildConfigField “String”, “BASE_URL”, ‘”http://dev.xyz.com”‘ applicationIdSuffix “.debug” } release { buildConfigField “String”, “BASE_URL”, ‘”http://api.xyz.com”‘ minifyEnabled false proguardFiles getDefaultProguardFile(‘proguard-android.txt’), ‘proguard-rules.pro’ } } But when […]

class file for android.support.v4.widget.DrawerLayoutImpl not found on travis support-v4 21.0

We are trying to run tests on travis CI. We have a class which uses android.support.v4.widget.DrawerLayout. When we use android support v4 library build.gradle-> targetSdkVersion: 19 `compile ‘com.android.support:support-v4:20.0.0’` .travis.yml – build-tools-19.1.0 – android-19 – extra-android-support – extra-google-google_play_services – extra-google-m2repository we donot get this error but on using build.gradle -> targetSdkVersion: 21 com.android.support:support-v4:21.0.+ .travis.yml – build-tools-21.0.1 […]

Building Android Studio project on Jenkins? android.compileSdkVersion is missing

I’m trying to set up my first Android project to build on Jenkins. I’m running Jenkins 1.6.2 with version 1.24 of the Gradle plugin. Running on Windows 7 Professional SP1. I’ve installed Android Studio and the Java7 JDK on my build machine, and a checked-out version of the software builds just fine, through Android Studio […]

How to upload multiple android archives (one for each flavor)

I am trying to upload multiple artifacts per project w/ the maven gradle plugin: http://www.gradle.org/docs/current/userguide/maven_plugin.html Multiple artifacts per project Maven can only deal with one artifact per project. This is reflected in the structure of the Maven POM. We think there are many situations where it makes sense to have more than one artifact […]

How to switch/change testInstrumentationRunner dynamically with gradle

My project has 2 different groups of tests. One group runs only with the default AndroidJUnitRunner the other has to be run with a custom implementation TestRunner extends MonitoringInstrumentation. Currently I switch the testInstrumentationRunner by editing the build.gradle each time I need to run the other group of tests: android{ defaultConfig { //testInstrumentationRunner “my.custom.TestRunner” testInstrumentationRunner […]

Android studio build slowed down after adding new libraries?

My application uses old architecture components. I want to move to new android architecture components. For this purpose I added room related dependencies in the beginning, after that build was normal. But when I tried adding dependencies for Lyfecycles, LiveData and ViewModel, as mentioned here. Application build process slowed down considerably, 5 mins and more […]

Why isn't Android Support Library version 22 available?

Today I noticed that Android API 22 is available so I changed target SDK of my app to 22. When I did that, Gradle started complaining that support libraries cannot have versions lower than the target SDK version. I checked Support Library revisions link and it does show that version 22 of “v4 support library” […]

How do I suppress warnings when compiling an android library with gradle?

In my application I have a library developed by a 3rd party that unfortunately contains quite a few lint and javac warnings. I’d like to ignore both these types of warnings since they can’t be fixed by our team and they are polluting our build logs. I have tried adding the following to the libraries […]

Create new Gradle based Android project in IntelliJ IDEA

The title pretty much says it all. I would like to create a new Gradle based Android project in IntelliJ IDEA (13 EAP) like I can do in Android Studio. I’ve tried creating a new Android Project in IntelliJ but it uses the “old” build system, while creating a new Gradle Project creates a generic […]

Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.