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
2
votes
2 answers

Execution failed for task ':app:compileDebugJavaWithJavac' MD5 hash for the file

this error causes after moved project from one system to another I do not about what was happening wrong with my project I've also Clean our project but nothing is happens. I've also removed the dependencies from my libs folder This is my…
2
votes
2 answers

Error in android Studio 3.0 when I sync gradle. Error:Cause: unable to find valid certification path to requested target

I got the following Error in android Studio 3.0,when I sync gradle. Gradle 'Projectname' project refresh failed. Error:Cause: unable to find valid certification path to requested target
2
votes
4 answers

Android Studio 3.0 dependency error

I'm trying out Android Studio 3.0 Canary 9 with an existing project, and I'm getting this error trying to sync the build files: Error:Failed to resolve: commons-logging:commons-logging:1.1.1 I am not adding commons-logging as a dependency, so it…
1
vote
1 answer

Error cannot resolve class ' library' in xml file

I want this library but keep getting error in the layout ' cannot resolve class devs.mulham.horizontalcalendar.HorizontalCalendarView ' and 'Class referenced in the layout file, devs.mulham.horizontalcalendar.HorizontalCalendarView , was not found…
1
vote
0 answers

Error Type com.github.ybq.android.spinkit.R is defined multiple times, because of aar library

I have integrated a third party SDK (aar file), which uses com.github.ybq.android.spinkit inside of it. This aar library, does not declare com.github.ybq.android.spinkit as gradle depency and this causes an issue, when we try to create a release…
1
vote
1 answer

Is correct start Kotlin coroutines from Activity java file?

Android Studio 3.4 classpath 'com.android.tools.build:gradle:3.4.2' in Kotlin file: TransportService.kt import kotlinx.coroutines.* import retrofit2.Response @JvmStatic fun doLoginFromJava( email: String, …
Alex
  • 1,857
  • 4
  • 17
  • 34
1
vote
1 answer

update to com.android.tools.build:gradle:3.4.1 -> jRuntimeException: android.databinding.tool.util.LoggedErrorException: Found data binding errors

Android Studio 3.4.1. In my android project in build.gradle: // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { ext.ANDROIDX_TEST = '1.2.0-alpha05' ext.ESPRESSO_VERSION =…
Alexei
  • 14,350
  • 37
  • 121
  • 240
1
vote
1 answer

Gradle Error when try to add dependency for Zxing scanner

I tried to add a dependency "me.dm7.barcodescanner:zxing:1.9.8" for the barcode scanner functionality. It populates Gradle error as given in image click
S Mugunthan kumar
  • 177
  • 1
  • 2
  • 11
1
vote
0 answers

How to modify the apk name use java in android gradle plugin 3.+

We know that Android Gradle Plugin 3.0 modifies the Api https://developer.android.com/studio/build/gradle-plugin-3-0-0-migration, we need to modify the apk name with the following code in build.gradle: // If you use each() to iterate through the…
1
vote
0 answers

uploadArchives configuration resolution fails with Android Plugin 3.1.2

I am attempting to create and Android Library project with the latest Android Gradle plugin and am having a hard time understanding the error it is giving me. My setup is a java module, android library module and a second android library module.…
Jared
  • 1,449
  • 2
  • 19
  • 40
1
vote
1 answer

Android Manifest Merge issue - Removing google ads gradle dependency doesn't remove its AndroidManifest.xml nodes

I am having two product flavors in the project (1) free (2) pro I am including google ads library only to the free product flavor as below freeCompile 'com.google.android.gms:play-services-ads:11.4.2' Now I want to replace it with another ad…
1
vote
1 answer

Android multi project test dependency setup breaks with Android Gradle Plugin 3.0.0 in Android Studio 3.0

I am trying to migrate from Android gradle plugin 2.3.3 to 3.0. I have a 2 projects set up where tests in ProjectB uses the test classes present in src/test/java from ProjectA. I utilizes the following setup to achieve this while using android…
1
vote
2 answers

Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.android.support:design:26.1.0

I am getting this error while sync gradle project. Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.android.support:design:26.1.0 can anyone help me? apply plugin: 'com.android.application' android…
user8089855
1
vote
1 answer

Force configuration in the dependency in gradle android application

I need to force the configuration in the gradle in my android application and my gradle verision is 3.0.1. the below is the old way of doing it and i need the equivalent of Gradle 3.0. releaseCompile project(path: ':androidLibrary', configuration:…
Prabhakaran
  • 1,264
  • 2
  • 20
  • 47
1
vote
1 answer

Android Gradle 3 facebook-login:4.29.0 dex merge error Program type already present

Hey I am trying to add the newest version of facebook-login:4.29.0 to my app. In doing so I updated to Gradle 3. I cannot resolve this dex merge. It only happens if I include the facebook-login library. Maybe I did something with the gradle 3…
StarWind0
  • 1,554
  • 2
  • 17
  • 46
1 2 3
8 9