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

Unable to build project with upgrade to android gradle 3.0

I am trying to update android JavaVersion.VERSION_1_7 to JavaVersion.VERSION_1_8. I am using Android Studio 3.0 Beta 2 from canary branch. It looks like I did things by the book , but I am unable to compile my project with the new setup. I have…
ABS
  • 1,101
  • 10
  • 27
2
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:…
2
votes
1 answer

Android Issue::More than one file was found with OS independent path 'androidsupportmultidexversion.txt' "error"

I am getting this issue while compiling my project I have tried a few solutions for that and that is More than one file was found with OS independent path 'META-INF/LICENSE' On gradle:3.0.0 More than one file was found with OS independent path…
2
votes
0 answers

Program type already present: android.support.v4.media.MediaMetadataCompat$Builder

After a long time when I open the android studio project, it started giving the following error: Program type already present: android.support.v4.media.MediaMetadataCompat$Builder I don't know what I suppose to do. In the meantime, I have upgraded…
2
votes
2 answers

Why gradle 3.2.1 generate unnecessary/duplicated empty folder in aar file?

environment: android studio 3.3 gradle 3.2.1 When build library proejct using with gradle 3.2.1(android studio 3.3) aar file include empty folder at root directory like below image. I think that folders unnecessary because that files…
2
votes
1 answer

While updating compileSdkVersion & targetSdkVersion to 26 - duplicate value for resource 'attr/fontFamily' with config

I'm updating my apps compile & target SDK version from 23 to 26 (Android 8.0). But after update, getting following error: error: duplicate value for resource 'attr/fontFamily' with config '. Having following support libraries now in…
2
votes
0 answers

copy file in android template changed the file content

I modify the Android Studio's project-template, in the recipe.xml file, I add one line: and when I create new Android project, the Key indeed was created, but actually the file was…
jason.yu
  • 59
  • 5
2
votes
1 answer

Android NDK build

While trying to build my android ndk project getting following error. Android studio version 3.1.3 FAILURE: Build failed with an exception. What went wrong: Execution failed for task ':app:ndkBuild'. Process 'command…
woodpecker
  • 211
  • 4
  • 8
2
votes
0 answers

Android emulator wait to boot and install apk

I try to develop script to launch armeabi-v7a emulator and execute gradle connectedAndroidTest task to run android device tests targeted to my app. I wrote script which successfully check required emulator target and download and install it if it…
busylee
  • 2,540
  • 1
  • 16
  • 35
2
votes
0 answers

Android / Gradle - Artifacts (aar) with dependencies

I have deployed an artifact (aar) with dagger dependency to my local artifactory. When I use the artifact in a project, it crashes at run-time due to the following exception. Caused by: java.lang.ClassNotFoundException: Didn't find class…
gopalanrc
  • 254
  • 3
  • 11
2
votes
0 answers

Getting unresolved reference error in Kotlin Android Library Project

I am getting unresolved reference error in Kotlin Android Library project. 1.) standard_kotlin_lib.jar --> contains: Kotlin classes, META-INF/standard_kotlin_lib.kotlin_module 2.) A.aar --> compiles only standard_kotlin_lib.jar file. After…
2
votes
5 answers

AAPT2 error: this error happened as soon as I updated my android studio to the latest version

I tried "multiDexEnabled true" as well as "android.enableAapt2=false", but the error continues to come. There seems to be some build problem. What is it? org.gradle.api.tasks.TaskExecutionException: Execution failed for task…
Reevanth Lama
  • 37
  • 1
  • 1
  • 4
2
votes
1 answer

Data-binding went stuck after Android Studio 3.1 Canary 6+ (updated 12.21.2018)

I have updated all in Canary 6 of AS 3.1, see here, including data-binding to v2. Now, something will stuck in wrong, that a lot standard "android:xxxx" cannot be bound, also some customized bind-adapters either. See here Cannot find the setter…
2
votes
0 answers

How can I list which dependencies count against the dex limit for an androidTest apk in AGP 3.0?

I upgraded to AGP 3.0, but then got a com.android.dex.DexIndexOverflowException for the androidTest apk. I didn't have this issue with gradle 2.3.3. How can I get a dependency report for exactly which dependencies are being added only to an…
ZakTaccardi
  • 12,212
  • 15
  • 59
  • 107
2
votes
2 answers

How to set .apk file name and package in build.gradle? Android Gradle plugin 3.0

According to my CI requirements I'm trying to achieve two things: set apk file name in format: .apk set folder for generated .apk file: app/build/outputs/apk/myBuild.apk I used android gradle plugin 2.3 and got following script to manage task…
Taxist Samael
  • 1,157
  • 1
  • 9
  • 23
1 2 3
8 9