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
0
votes
1 answer

What is the best practice for using same project for both app and library in android?

I created android application and need to converted it to library. I changed module build.gradle file by changing id 'com.android.application' to id 'com.android.library' and it works great. But for adding new features a need to convert it again…
Costa Mirkin
  • 947
  • 3
  • 15
  • 39
0
votes
1 answer

How to configure Azure AD B2C for different environments in Android

I am using Azure AD B2C and need a different configuration file for each environment. I expect to have multiple B2C Tenants for my app. One for each environment. That means I need to alter my calls to reference different files. Currently I am…
lcj
  • 1,355
  • 16
  • 37
0
votes
1 answer

dependency com.android.tools.build:gradle:3.6.4 because no repositories are defined

I have already checked lots of questions related to this question but nothing working out Project dependency Build.gradle buildscript { repositories { jcenter() google() } dependencies { classpath 'com.android.tools.build:gradle:3.6.4' …
0
votes
0 answers

How to make Android .jar in Android Studio with Gradle 3.5.+?

I was making android .jar using following code task deleteJar(type: Delete) { delete 'build/outputs/my_library_name.jar' } task createJar(type: Copy) { from('build/intermediates/bundles/release/') into('build/outputs/') …
Learner
  • 1
  • 1
0
votes
1 answer

App crash with Minify true in Gradle Android

I trying to get the current date and time from Google. with the following code private class LongOperation extends AsyncTask { @Override protected String doInBackground(String... params) { try { …
0
votes
1 answer

Android Gradle error: w: Runtime JAR files in the classpath should have the same version. These files were found in the classpath:

I am working on an Android Kotlin project. I am trying to install the AppInspector plugin in my project. https://app.appspector.com/58276/setup-guide. I put in the required dependencies in the Gradle file and sync them. There was not an error. But I…
Wai Yan Hein
  • 13,651
  • 35
  • 180
  • 372
0
votes
1 answer

Gradle Not Synchronizing : ERROR: Read timed out

I am created a project in android but now when i open my project gradle starting synchronization and after 15-20 min i get Time Out error for org.gradle.api.resources.ResourceException: Could not get resource…
0
votes
1 answer

ERROR: Failed to resolve: fragment Affected Modules: app

I'm working with Android Studio version 3.5.3. The problem is when I want to create project with Java, I have the Error for Failing to resolve fragment and the same error for Activity. But I don't have the problem when I create project with Kotlin.…
Yoshimitsu
  • 4,343
  • 2
  • 22
  • 28
0
votes
3 answers

Circular dependency between the following tasks:

in my android app: in app/build.gradle: dependencies { annotationProcessor "org.androidannotations:androidannotations:$AAVersion" implementation fileTree(dir: 'libs', include: ['*.jar']) implementation…
Alexei
  • 14,350
  • 37
  • 121
  • 240
0
votes
1 answer

Update gradle plugin 3 with android SDK 28 proguard fail

After updating from version 2 to 3 of the plugin gradle, proguard shows now many warning. One of them is: library class dalvik.system.DelegateLastClassLoader extends or implements program class dalvik.system.PathClassLoader If I change the android…
esteban
  • 543
  • 4
  • 18
0
votes
3 answers

Manifest merger failed, when adding the butterknife library

dependencies { implementation 'com.jakewharton:butterknife:10.0.0' annotationProcessor 'com.jakewharton:butterknife-compiler:10.0.0' implementation 'com.squareup.picasso:picasso:2.71828' implementation fileTree(dir: 'libs', include:…
0
votes
1 answer

Jacoco 0.8.2 and Android Gradle plugin 3.2.0 test coverage

I just tracked down an issue I'm having with partial coverage reports due to Android Gradle plugin 3.2.0 Jacoco is only generating coverage reports for less than 10% of my project. If I revert back to 3.1.4, it behaves as expected. Is there any…
Tyler
  • 19,113
  • 19
  • 94
  • 151
0
votes
1 answer

gradle error - com.google.common.collect.ImmutableSet.toImmutableSet()Ljava/util/stream/Collector

I've seen this mentioned a couple of times but yet to find a solution - after upgrading Gradle to 4.10.2 and the Android gradle plugin to 3.2.1, I'm having a lot of difficulties trying to build an Android app. It appears to be an incompatibility…
0
votes
3 answers

Could not resolve dependency for 'com.google.firebase:firebase-auth:16.0.3'

I am trying to add firebase authentication to my project. I am getting following errors while syncing build.gradle: Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.google.firebase:firebase-auth:16.0.3. Unable to…
0
votes
0 answers

Android Gradle build fail when adding Java 8 support

In my Android project I'm using gradle 3.1 and I added minifyEnabled true and configure proguard-rules and when I build the project using ./gradlew clean build project builds with no errors. But then I added java 1.8 support into gradle and then the…
1 2 3
8 9