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
8
votes
4 answers

> Could not create task ':app:compileDebugKotlin'. > Could not create task ':app:dataBindingGenBaseClassesDebug'

When i build the app i got error > Could not create task ':app:compileDebugKotlin'. > Could not create task ':app:dataBindingGenBaseClassesDebug'. > Cannot use @TaskAction annotation on method DataBindingGenBaseClassesTask.writeBaseClasses() because…
8
votes
2 answers

How to publish all flavor variants to maven with Android Gradle plugin 3.0.0?

Earlier I have used android gradle plugin v2.2.2, now I am migrating to 3.0. The below code publishes(uploadArchives task) all my variants to maven without any issues with 2.14.1. But as soon I upgrade to 3.0 nothing is been published. If I remove…
Ponsuyambu
  • 7,876
  • 5
  • 27
  • 41
8
votes
2 answers

Variant debug has no output with type INSTANT_RUN_MERGED_MANIFESTS

What I want to do & the problem I updated my Android Studio and Android Gradle Plugin to 3.0.0 and my Gradle Wrapper to 4.2.1 and want to build & deploy my Android Gradle project on a device via IDE. Building succeeds When I try to deploy my :app…
8
votes
2 answers

isMinifyEnabled() is deprecated. What is the alternative?

I use the below code to automatically generate pro guard mapping file apparently according to product flavors. buildTypes { release { minifyEnabled true shrinkResources true proguardFiles…
Sai
  • 15,188
  • 20
  • 81
  • 121
7
votes
2 answers

Random test failure with native crash

I am running espresso test suite against my application on emulator. I see random crashes with following logcat output: 06-26 08:58:51.129 info WebViewFactory Loading com.android.webview version 44.0.2403.119 (code 246011960) 06-26 08:58:51.136…
mesh
  • 849
  • 9
  • 16
7
votes
1 answer

New error after update to gradle-tool to 3.1.0-beta3 or 3.2.0-alpha03

Just a normal project with "prod" and "mock" flavors in app/build.gradle: sourceSets { main.java.srcDirs += "blabla bla" test.java.srcDirs += "blabla bla" androidTest.java.srcDirs += "blabla bla" …
7
votes
2 answers

android.support.v4.animation missing in API 26

I am facing an issue: android.support.v4.animation.* is missing and I cannot find any solution. Android Plugin upgrade to 3.0 requires buildToolsVersion and compileSDKVersion to 26+ and this package is missing.
Akshay Mahajan
  • 2,064
  • 1
  • 17
  • 20
6
votes
0 answers

Adding test sourceSets has stopped working in Android Gradle Plugin 3.1.1

I have a project split up into many modules. One module called ':testcore' contains some common classes used by tests. The project is in this structure: :app :libraryone :testcore :librarytwo :testcore ... To make…
6
votes
1 answer

Avoid 'Variant Selection Conflicts' warning when using android test plugin without release variant

What I want to do & the problem I updated my Android Studio and Android Gradle Plugin to 3.0.1 and my Gradle Wrapper to 4.1 and can build & deploy my Android Gradle project in release variant on a device via IDE. However, the following 'Gradle…
5
votes
0 answers

output.packageApplication.outputDirectory.toPath() - not build

Android Studio 3.5 classpath 'com.android.tools.build:gradle:3.6.0-beta01' in app/build.gradle: def releaseOutputFileName = "${rootProject.name}_${defaultConfig.versionName}.apk" def packageAppOutputDirPath =…
Alexei
  • 14,350
  • 37
  • 121
  • 240
4
votes
3 answers

Process 'command './node_modules/expokit/detach-scripts/run-exp.sh'' finished with non-zero exit value 127

When I build my Android app using AppCenter I get the following error message. Has anyone seen this and if so how did they solve the issue? What went wrong: Execution failed for task ':app:bundleDevMinSdkDevKernelReleaseExpoAssets'. Process…
user3284707
  • 3,033
  • 3
  • 35
  • 69
4
votes
2 answers

Avoid api and always use implementation?

Building a multi module Android app using Gradle plugin 3, instead of declaring a dependency with compile one should use implementation or api. The latter basically works like compile. Using implementation, the dependency is hidden from any module…
Oderik
  • 2,242
  • 2
  • 16
  • 25
4
votes
0 answers

Aapt2 error : Using ormlite and while running OrmLiteConfigUtil getting below error after upgrading to Android studio 3 and gradle 3

Normally i am able to build my project but whenever there is a database change i need to run OrmLiteConfigUtil and after running it i get error as below. it never succeeds. I tried exploring other question and found below solution but still it…
4
votes
2 answers

Gradle 3.0 Build Error : Execution failed for task ':app:transformClassesWithDesugarForDebug'

Migrated the project to 'com.android.tools.build:gradle:3.0.1'. Since then I have been getting this error from gradle Exception in thread "main" java.lang.RuntimeException: Method code too large! at org.objectweb.asm.MethodWriter.a(Unknown…
3
votes
1 answer

composite builds broken on android or did I do this wrong?

In 10 minutes, I created an empty android library and an empty android application in this git repository https://github.com/deanhiller/compositeAndroid As seen in my last commit, I quickly convert the android application do depend on the library…
Dean Hiller
  • 19,235
  • 25
  • 129
  • 212
1
2
3
8 9