Questions tagged [android-gradle-2.0]

Use this tag for questions specifically related to the version 2 of the Android Gradle Plugin, for generic questions use the android-gradle tag.

Version 2 of the Android Gradle Plugin is Android's standard build system. It is used as backing-build-system by Android Studio.

26 questions
15
votes
4 answers

instant run java.lang.OutOfMemoryError: GC overhead limit exceeded

I have upgraded to Android Studio 2.1 and I got this error while I am trying to build & run my corporate big project: Execution failed for task ':app:transformClassesWithDexForMyAppDebug'. com.android.build.api.transform.TransformException:…
14
votes
4 answers

Time taken on first run with AS 2.0 and gradle 2.0

Recently i have upgraded Android Studio from 1.5 to 2.0. With that i am using gradle 2.0.0 classpath 'com.android.tools.build:gradle:2.0.0' But there seems some issue with it, whenever i am running my app for first time, it is showing while/black…
Ravi
  • 34,851
  • 21
  • 122
  • 183
9
votes
2 answers

Android: buildTypes applicationIdSuffix error

I want to setup a project to build two different apks that can be installed on the same device - one of them a production apk and the second one a debug apk. To do this I've defined in the build.gradle: buildTypes { release { } …
6
votes
1 answer

How to set transitive = true for local .aar library?

I am using android cuckoo.aar local android library in my DemoApp project. This cuckoo library also using many other libraries e.g( retrofit,recyclerview, rx-android, rx-java) through Gradle dependencies. When I am importing this cuckoo library in…
5
votes
1 answer

Is necessary to import support-v4 and appcompat-v7 to use them?

I'm using AppCompatActivity and some more things like fragments etc... These are some of the imports of my activity: import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import…
5
votes
1 answer

issue with gradle 2.0.0 and DataBinding

Recently i have updated Android studio from 1.5.1 to 2.0, after updation it asked me to use latest gradle i.e. com.android.tools.build:gradle:2.0.0 dependencies { classpath 'com.android.tools.build:gradle:2.0.0' classpath…
Ravi
  • 34,851
  • 21
  • 122
  • 183
4
votes
0 answers

Android Studio launches wrong Activity when merging AndroidManifest from ProductFlavorBuildType hybrid directory

I'm using Android Studio 2.1.3 (Mac OS X) and com.android.tools.build:gradle:2.1.3. I've already tried invalidating cache and restarting and clean builds. I have a project with many ProductFlavors, all of which use the same starting activity save…
Oded
  • 954
  • 12
  • 16
4
votes
1 answer

-App taking 30 seconds to startup after using of new instant run feature in android studio 2.0?

The problem is my application showing white screen for 30 seconds or more than that then launch the launcher activity. I am Using Android studio 2.0 and gradel 2.0.0. Also tried searching any solution for 4 hours but didn't find anything. Even I…
Biswajit
  • 1,829
  • 1
  • 18
  • 33
3
votes
1 answer

Build a fat aar which will include other sub modules as jar/aar using Gradle

I have a top level android library module (containing res folder) dependent on other library sub modules(no res). I want to build a fat aar of the top level module which should include the jar of the sub modules as well as any other aar dependency…
2
votes
2 answers

How to add SonarQube Plugin in Build.Gradle and take the reports of current project

I tried downloading SonarQube and followed each steps based on this link, SonarQube Setup and add SonarQube plugins in build.gradle Was able to execute SonarQube from Command but while I am adding the plugins of SonarCube in Build.Gradle it is…
Achiever
  • 1,626
  • 10
  • 30
  • 54
2
votes
2 answers

Android Studio cannot resolve symbol from imported module

I have an android app that worked great. I have imported the ActiveAndroid project as a module because I did a change on the Model's file (I added a setId method, and that's why I can't use the gradle's version). I was using Android Studio 1.5 and…
1
vote
1 answer

Resource assembly failing

I've been working on a personal project, but in the past few days builds haven't been updating my R.java. I'm not sure what could be causing it. I haven't seen any syntax errors in the XML resources, but the the one time it did work was when I…
Kavorite
  • 41
  • 1
  • 3
1
vote
1 answer

Build not working anymore with build tools 24

I have a quite complex project with several dependencies. Unfortunately the build does not work anymore since I updated to the latest build tool version. I'm getting lots of errors because appcompat and maps dependency is not found anymore... This…
stefan
  • 1,336
  • 3
  • 21
  • 46
1
vote
0 answers

FreeBuilder library in Android Studio project

I'm trying to use FreeBuilder library. It is a library for the implementation of the Builder design pattern. When I build the project no error are shown and the project is build successfully, but I connot run it because of some errors on generated…
Mark
  • 399
  • 4
  • 12
0
votes
3 answers

Error:Execution failed for task : java.util.zip.ZipException: duplicate entry: android/support/v4/graphics/BitmapCompat.class

when i fix the most common issue i get this problem Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'. com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry:…
1
2