android-build

How to solve Android Libraries custom attributes and package name remapping during build?

情到浓时终转凉″ 提交于 2019-11-30 07:36:58
Over time our Android project has expanded a great deal, and these days we are creating multiple branded APKs from the same source tree. This has become challenging due to the package naming requirements of Android. We have all of our shared code in an Android Library project, which is included in the main application project. Plus we have Android library 'overlays' for branded resources that get applied for each brand. When we want to build a brand, we include a few extra properties for that brand that end up including the 'overlay' Android libraries before the main shared code Android

What is the difference between some “Android Development/SDK tools”?

我的未来我决定 提交于 2019-11-30 02:06:52
问题 What is the difference between the Android Development Tools and the Android SDK Tools and the Android SDK Platform-tools and the Android SDK Build-tools? And why not merge some of them into fewer groups? The 4 tools confused me when I downgrading/upgrading them. 回答1: Well, the Android Development Tools(ADT) is a plugin that is used in combination with Eclipse to develop apps.There is an ADT bundle that is a package that contains everything you need to start creating apps. However the SDK

How to update Gradle dependencies to their latest version

假装没事ソ 提交于 2019-11-30 00:06:54
Is there an easy way to get gradle to update dependencies to their latest available version? For build reproducibility all my dependencies are defined with a version number like this in my build.gradle file: dependencies { compile 'namespace:package1:version' compile 'namespace:package2:version' compile 'namespace:package3:version' } Periodically I want to update every package to their latest version. Typically this is the first thing I do for a new sprint after making a release. It's a real pain doing this manually for each package. Ideally I would like a command to update the build.gradle

Difference between eng and user-debug build in Android

旧城冷巷雨未停 提交于 2019-11-29 22:59:28
I would like to know the difference between the two build_flavor 's viz. eng & user-debug The difference between eng and user build flavors is quiet evident. But eng and user-debug is confusing me somewhat. What are the additional Debug facilities provided in eng that are not present in user-debug? For eg. If I take only the Kernel being built: Will the Debugging levels differ for the eng and user-debug builds? I am facing an issue where the user-debug build is booting up on the android phone. But the eng build is not and the build_flavor is the only difference between the two builds. Any help

How to convert an Eclipse Android project to use Ant for build?

荒凉一梦 提交于 2019-11-29 20:46:40
I have an Android project in Eclipse I would like to convert to be built with Ant instead. How can I achieve this? I have tried exporting an Ant build file but I'm pretty sure that's not going to work (nor does it when running ant with the exported file). I do not know much about Ant either so some explanation would also help. EDIT: now I seem to have managed to create the needed build file but I need to add the projects libs like admob.jar to be seen by ant and used to build. as I am getting the following error -dex: [echo] Converting compiled files and external libraries into C:\Users\Jason

NoClassDefFoundError on Calligraphy library

帅比萌擦擦* 提交于 2019-11-29 17:02:52
问题 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 (on opening the app) for the missing calligraphy library: java.lang.NoClassDefFoundError: uk.co.chrisjenx.calligraphy.R$attr at uk.co.chrisjenx.calligraphy.CalligraphyConfig$Builder.<init>(CalligraphyConfig.java:150) at com.taxiyaab.android.util

Android separate string values for release and debug builds

不羁的心 提交于 2019-11-29 16:52:29
问题 Every time i release my app i change all my url strings and some keys from testing to production. The way I do it is just comment out the testing strings before i release. Is there a better way to handle strings based on the build type ? 回答1: Assuming you use Android Studio, by default the system creates a basic release and debug flavor. So if you add a debug and release folder in the app/src folder of your project you can declare separate values there. So your structure should be like this:

GC overhead limit exceeded when building android source

狂风中的少年 提交于 2019-11-29 15:07:02
问题 ****[ 35% 11837/33004] build out/target/common/obj/JAVA_LIBRARIES/sdk_v21_intermediates/classes.jack FAILED:/bin/bash -c " (mkdir -p out/target/common/obj/JAVA_LIBRARIES/sdk_v21_intermediates/) && (java -Xmx3500m -jar out/host/linux-x86/framework/jill.jar --output out/target/common/obj/JAVA_LIBRARIES/sdk_v21_intermediates/classes.jack.tmpjill.jack prebuilts/sdk/21/android.jar) && (mkdir -p out/target/common/obj/JAVA_LIBRARIES/sdk_v21_intermediates/classes.jack.tmpjill.res) && (unzip -qo

Cannot access ActivityCompatApi23 class

人走茶凉 提交于 2019-11-29 14:05:49
I am having runtime problems with my gradle file. I added this compile 'com.google.android:flexbox:0.3.1' as a compile time dependency to my Gradle file. I encountered an error and added this in my project level Gradle file. maven { url "https://maven.google.com" } Which finally looked liked this after adding the above allprojects { repositories { jcenter() maven { url "https://maven.google.com" } } } After adding the above in my app level Gradle file I am now encountering a different error when I am trying to run my app. So I did the following as per some answers from SO. Tried a Clean and

How to just build Android system image

廉价感情. 提交于 2019-11-29 13:52:24
问题 I made some small changes in framework/base, and did a "mm" under that folder. Now I don't want to run "make" on the project root because the makefile including process is very slow. Is there a quick way to just build the system image without going through the lengthy including process? 回答1: If your changes effect other applications, use make systemimage , otherwise use make snod . Notice: make systemimage will check dependency during compile progress, while make snod will not do this check,