android-build

Android Gradle Plugin 3.0.0: Multiple dex files define Lorg/xmlpull/mxp1/MXParser with XStream

拜拜、爱过 提交于 2019-11-28 09:08:44
问题 Included projects that bring their own xmlpullparser always needed some extra care in Android Studio since Android brings its own xmlpullparser. E.g. the popular XML mapper XStream required this exclude (1) (2) : compile('com.thoughtworks.xstream:xstream:1.4.7') { exclude group: 'xmlpull', module: 'xmlpull' //exclude xmlpull to avoid `Multiple dex files define`-error } Somewhere else I also have seen: compile('com.thoughtworks.xstream:xstream:1.4.7') { exclude group: 'xmlpull' exclude group:

Bulk Publishing of Android Apps

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-28 07:00:37
We have several apps that will be very similar in layout and code. The only difference is we will be switching out graphical elements, and making changes to a single constants file and strings file. Of course, theres several problems with this -- the first being namespace. Having an app with the same namespace will overwrite any other apps. What are some suggestions to doing this? Currently our namesapce is: com.company.appname I figured I could do: com.company.appname.appversion I've seen post about ant scripts that helps with this, but I'm wondering if theres more fluid solutions now. mmeyer

How to create build.xml for an Android project? [duplicate]

烂漫一生 提交于 2019-11-28 06:49:53
This question already has an answer here: How to build the Android sample projects using Ant? build.xml does not exist 4 answers I've been trying to run simple programs that I obtained directly from the Source Code download for the book 'Beginning Android 4'. However, I have lots of problems with the build.xml files (see previous questions, which are unanswered). My latest is, which comes from the a simple Label demo program: # ant debug Buildfile: /home/me/src/ANDROID/MyProjects/Label/build.xml BUILD FAILED Target "debug" does not exist in the project "LabelDemo". I then checked with other

Gradle Build too long

[亡魂溺海] 提交于 2019-11-28 05:35:13
问题 Gradle build now takes too long (literally it does not complete building after running for like 1 hour) after enabling MultiDex. I followed the steps given at https://developer.android.com/studio/build/multidex.html site to configure MultiDex in app. Below is an excerpt from my gradle console. :app:compileDevelopmentDebugNdk UP-TO-DATE :app:compileDevelopmentDebugSources :app:mergeDevelopmentDebugShaders UP-TO-DATE :app:compileDevelopmentDebugShaders UP-TO-DATE :app

Speed up Android project build time in IntelliJ IDEA

♀尐吖头ヾ 提交于 2019-11-28 05:20:27
I am wondering, if there is any way, how to set skip packaging and dexing in IntelliJ IDEA like in Eclipse and ADT. There is Additional VM Options field in Android DX Compiler section in IntelliJ Preferences , maybe this could be a way, how to set it. I would also appreciate another tips, how to speed up IntelliJ Android project build. In Eclipse preferences, the complete name of skip packaging and dexing you are referring is Skip packaging and dexing until export or launch. (Speeds up automatic builds on file save) , which is a feature added since ADT 12 in orde to address Eclipse incremental

Android source code compile error: “Try increasing heap size with java option '-Xmx<size>'”

帅比萌擦擦* 提交于 2019-11-28 04:43:55
Error happens when I try to compile Android source code(Sourcecode-version: 6.0.1; RAM: 6G; host system: ubuntu 14.04),log is below: including ./system/netd/Android.mk ... including ./system/security/keystore-engine/Android.mk ... including ./system/security/keystore/Android.mk ... including ./system/security/softkeymaster/Android.mk ... including ./system/tools/aidl/Android.mk ... including ./system/update_engine/Android.mk ... including ./system/vold/Android.mk ... including ./system/weaved/Android.mk ... including ./system/webservd/Android.mk ... including ./tools/external/fat32lib/Android

Android Build: Dex Jumbo Mode in Gradle

五迷三道 提交于 2019-11-28 04:38:27
I am using following line in android ant build (project.properties): dex.force.jumbo=true Now we are migrating from ant to Gradle. Is it possible to get jumbo mode active in Android Gradle build? You can modify your build.gradle file to include: android { dexOptions { jumboMode = true } } Modify build.gradle in your module to add: android { dexOptions { jumboMode = true } } After that run gradle clean in your project root I'm not sure if it possbile to set force jumbo in Gradle, but since Android Studio 0.2.4 you can enable it in Compiler -> Android DX Compiler -> Force Jumbo Mode. I was able

Getting out of memory issue after updating buildToolsVersion '23.0.1' in Android studio

爷,独闯天下 提交于 2019-11-28 04:27:05
I am getting out of memory issue very often after updating buildToolsVersion '22.0.1' to buildToolsVersion '23.0.1' I am really confused and dont know how to solve this issue, since this error showing only with buildTools version 23.0.1 . Whereas it is working fine when I change it to 22.0.1 . Please help me. I am posting the error which I am getting as follows, Uncaught translation error: java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: Java heap space Uncaught translation error: java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: Java heap space Uncaught

error: package com.google.android.gcm does not exist - After migrating to Gradle

被刻印的时光 ゝ 提交于 2019-11-28 04:05:56
问题 I have a problem with an old project which was developed in IntelliJ without Gradle. I wanted to migrate it to Android Studio and Gradle, but I am experiencing a lot of problems. Since the project was quite old, the old Google Play Services version was used. In Intellij I had just added libproject of the old gps to dependencies (google_play_services_5089000_r19) and everything worked fine. In Android Studio I managed to add other libraries by adding it as a library module and adding compile

How to build the Android sample projects using Ant? build.xml does not exist

时光怂恿深爱的人放手 提交于 2019-11-28 03:07:55
I believe I've followed the instructions in the Android SDK, and I'm now trying to build the sample LunarLander (random one picked) $ cd samples/android-11/LunarLander $ ant debug Buildfile: build.xml does not exist! Build failed I believe all PATHs are setup correctly. I've done this before in an older Android SDK release and I know I didn't encounter this error, so I'm pretty confused as to what's wrong. Oh, one more piece of info -- I have only installed the 3.0 platform package, so I'm not sure if that is an error or not. javanna You need to execute this command: android update project -