android-build

Speed up Android project build time in IntelliJ IDEA

蹲街弑〆低调 提交于 2019-11-27 00:54:11
问题 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. 回答1: 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

Out of memory issue after updating buildToolsVersion '23.0.1' in Android studio

只愿长相守 提交于 2019-11-27 00:25:48
问题 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 don't 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

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

我只是一个虾纸丫 提交于 2019-11-27 00:23:02
问题 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

Is it possible to declare git repository as dependency in android gradle?

◇◆丶佛笑我妖孽 提交于 2019-11-26 23:55:58
问题 I want to use master version of my lib from mavencentral. Is it possible to declare git repository as dependency in android gradle? 回答1: For me the best way is: https://jitpack.io Step 1. Add the JitPack repository to build.gradle at the end of repositories: repositories { // ... maven { url "https://jitpack.io" } } Step 2. Add the dependency in the form dependencies { compile 'com.github.User:Repo:Tag' } It is possible to build the latest commit on the master branch, for example :

Gradle, Android and the ANDROID_HOME SDK location

时间秒杀一切 提交于 2019-11-26 23:55:08
问题 edit: (aug-2016) That question is from November 2013 (while Android Studio was still in Developer Preview mode), Currently (AS v2.2, Aug-2016) during instalation AS asks to choose the SDK folder (or install on their default) and it automatically applies to which ever project you're opening. That means any possible workaround or fix is irrelevant as the issue is not reproducible anymore. original question: we have this project with several modules that is already configured and executes

Installation failed with message Invalid File

让人想犯罪 __ 提交于 2019-11-26 23:49:54
问题 Installation failed with message Invalid File: K:\project\app\build\intermediates\split-apk\with_ImageProcessor\debug\slices\slice_0.apk. It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing. WARNING: Uninstalling will remove the application data! Do you want to uninstall the existing application? i am running my project in android studio 2.3 beta 3 . 回答1: Click Build tab ---> Clean Project Click Build tab --->

failed to find target with hash string android-23

时光总嘲笑我的痴心妄想 提交于 2019-11-26 22:21:03
问题 When trying to build OpenStreetMapView from git://github.com/osmdroid/osmdroid, I get this error: failed to find target with hash string android-23: D:\Users\myusername\AppData\Local\Android How can I fix this? Previous questions similar to this suggest checking that android 23 is not installed, but in my case, it is. Below is some pertinent info: ANDROID_HOME is D:\Users\myusername\AppData\Local\Android\sdk D:\Users\myusername\AppData\Local\Android\sdk\platforms\ contains the directory

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

本小妞迷上赌 提交于 2019-11-26 22:18:24
问题 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 ':app:packageAllDebugClassesForMultiDex'. java.util.zip.ZipException: duplicate entry: com/android/volley/AuthFailureError.class" i have also added following code to exclude module, but still same error configurations{ all*.exclude module: 'com.android.volley' } please help 回答1: I stumbled upon

Run task before compilation using Android Gradle plugin

北城余情 提交于 2019-11-26 22:13:04
I have a very simple build.gradle file with the following content: buildscript { repositories { mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:0.4.1' } } apply plugin: 'android' android { buildToolsVersion "17.0.0" compileSdkVersion 17 sourceSets { main { manifest.srcFile 'AndroidManifest.xml' res.srcDirs = ['res'] assets.srcDirs = ['assets'] } } } task generateSources { doFirst { def script = "python GenerateSources.py".execute() script.in.eachLine {line -> println line} script.err.eachLine {line -> println "ERROR: " + line} script.waitFor() } } What I want is to

Android Studio: Plugin with id 'android-library' not found

允我心安 提交于 2019-11-26 21:35:59
I've been trying to get ActionBarSherlock to work and having some issue. One issue I've come across is the following message when trying to build it: Plugin with id 'android-library' not found Specifically: D:\Projects\Android\actionbarsherlock>D:\Projects\Android\gradlew --info build Starting Build Settings evaluated using empty settings script. Projects loaded. Root project using build file 'D:\Projects\Android\actionbarsherlock\build.gradle'. Included projects: [root project 'actionbarsherlock'] Evaluating root project 'actionbarsherlock' using build file 'D:\Projects\Android