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
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,349
  • 2
  • 16
  • 39
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

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,479
  • 2
  • 15
  • 41
1
vote
1 answer

Project doesn't build after upgrading to android gradle plugin 3.0.0+

after migrating to Android 3.0 I've changed gradle configurations in my projects. In one of them I get errors while trying to do the build: Execution failed for task ':app:compileDebugKotlin'. e:…
1
vote
0 answers

Gradle 3.0 No resource found from other module in project

I have upgraded Android Gradle plugin to 3.0. I have multiple modules in my project. So for different buildTypes (say, release) in module, I have also added releaseImplementation project(':otherModule') in main App module gradle. In some layout xml…
1
vote
0 answers

Gradle 3.0.0 build problems

So I've updated to gradle 3.0.0 (IDE also) and it started to get me into all sort of problems. First of all I had to enable multiDex: implementation project multidex vailError:Execution failed for task …
1
vote
0 answers

AndroidAnnotations not compatible with DataBinding since Android Studio 3.0

UPDATE It turned out that the issue is not with AndroidAnnotations. There is a bug in the gradle plugin 3.0 that does not find generated classes when compiling DataBinding views. There is an issue on the Android issuetracker. ORIGINAL POST After…
1
vote
1 answer

using ig-json-parser with annotationProcessor from android studio 3.0

In the new version of gradle, the 'android-apt'-pligin is no longer compatible. now you have to user 'annotationProcessor' instatof 'apt' so far so good. I do the folowing: Remove the class path for the apt from the build.gradle (Project:…
1
vote
1 answer

How to override versionCode for ABI filters with gradle plugin 3.0.0-beta1?

I have the following defined in my build.gradle for overriding the versionCode based on the ABI. import com.android.build.OutputFile android.applicationVariants.all { variant -> variant.outputs.each { output -> def defaultCode =…
Mark
  • 2,192
  • 16
  • 33
0
votes
0 answers

Proccess unexpectedly exit

I have Android Gradle Plugin Version: 4.1.0 and Gradle Version: 6.5 When I try to run the application then I am getting the error Process unexpectedly exit. But when I change the above value to Android Gradle Plugin Version: 3.3.2 and Gradle…
Android
  • 105
  • 6
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
1 answer

After setup app flavouring i got this ERROR "install_failed_conflicting_provider" while run the app/

It works perfectly. I can view pdf BUT now i can't install others flavors in my phone because of this error: Installation did not succeed. The application could not be installed: INSTALL_FAILED_CONFLICTING_PROVIDER Installation failed due to:…