Questions tagged [android-build]

For questions related to the build process of Android Applications, for all build tools.

882 questions
18
votes
1 answer

Android studio: Parameter 'directory' is not a directory

When I try to build my project, I get such a mistake: FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:dataBindingGenBaseClassesDebug'. > Parameter 'directory' is not a directory
18
votes
2 answers

Android Gradle: rename/disable default build type

Can the pre-defined build-types somehow being renamed? We use some custom build types that represent our internal staging setup (DEV/TEST/LIVE) and do not need the build in buildTypes (release/debug). Can these somehow being renamed or disabled when…
whlk
  • 15,487
  • 13
  • 66
  • 96
18
votes
4 answers

How does the Android build process work?

I've found a good article on how the Android build process works, which shows the following process: However, I've also seen another article which says that it uses javac to convert all files to .class files, then the dx tool in the adk converts…
A J
  • 4,542
  • 5
  • 50
  • 80
17
votes
5 answers

Picking a specific build type in a dependency

Suppose I have an Android app with three build types: buildTypes { release { .... } optRelease { .... } debug { .... } } And I have a dependent module: dependencies { implementation…
EboMike
  • 76,846
  • 14
  • 164
  • 167
17
votes
3 answers

How the soong/android.bp build works?

Google introduced Soong build system the replacement of old makefile system. Have any idea about how it works? What is this Android.bp in the sources?
Midhun PM
  • 512
  • 1
  • 7
  • 24
17
votes
7 answers

Android studio build slowed down after adding new libraries?

My application uses old architecture components. I want to move to new android architecture components. For this purpose I added room related dependencies in the beginning, after that build was normal. But when I tried adding dependencies for…
Prashant
  • 4,474
  • 8
  • 34
  • 82
17
votes
5 answers

Disable Manifest Merger in Android Gradle Build

I am using the new gradle android buildsystem. The project consists of two android library projects and one main project. Using the ant build, the manifest merger must be enable in project.properties. But when using the gradle build system the…
endian
  • 4,761
  • 7
  • 32
  • 54
16
votes
9 answers

Ant build fails inside Eclipse

For years, I've used the Ant integration for Eclipse to build my Android projects as outlined by Google on this documentation page. It's my favorite way of building release builds, because I can simply hit "Run external tool" in Eclipse to start the…
Paul Lammertsma
  • 37,593
  • 16
  • 136
  • 187
16
votes
1 answer

Android gradle build: running assembleDebug makes release tasks of project dependencies being called

When running assembleDebug, the release related tasks of projects I depend on are called. e.g. I have a project called 'x' which depends on 'y'. When I gradle assembleDebug it calls y:mergeReleaseProguardFiles, packageReleaseAidl, etc... etc..
Guy
  • 12,250
  • 6
  • 53
  • 70
15
votes
8 answers

"Conversion to Dalvik format failed with error 1" -- on export only

I know this is a repeat question but I've read and tried every solution on this site and I'm still getting the error; also, I'm getting it ONLY when I export my signed apk from Eclipse. I'm able to build and run the unsigned apk. I have: Deleted…
Barry Fruitman
  • 12,316
  • 13
  • 72
  • 135
15
votes
3 answers

Android Custom Alert Dialog Display Error after changing the Build Version

I am developing a simple demo . Here in this demo, I am just creating one simple custom alert dialog . It works fine. It shows me the perfect result when i build application in 1.6, but when i change the android version from 1.6 to 2.2, it shows the…
Chirag
  • 56,621
  • 29
  • 151
  • 198
15
votes
3 answers

How to access app Module Classes from Library Classes in Android?

I created two modules in single android project. app module(which is default my app module) and another added library module. Now app module have many java classes. i want to access .Java class of app module in library module. Module app has a…
15
votes
9 answers

duplicate entry: com/android/volley/AuthFailureError.class while compiling project in android studio

I am using external libraries payu money sdk and linkedin-sdk, both uses volley libraries, which while compiling project gives duplicate entry of AuthFailureError.class Error:Execution failed for task…
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:…
15
votes
6 answers

NoClassDefFoundError on Calligraphy library

After adding compile 'com.android.support:support-v13:21.0.+' to build.gradle, I had some conflicts on building my app, so I had to add multiDexEnabled = true to defaultConfig inside build.gradle. Those conflict are gone, but i got another exception…
Arash GM
  • 10,316
  • 6
  • 58
  • 76