android-build

Where does local.properties go for android project?

﹥>﹥吖頭↗ 提交于 2019-12-28 04:00:07
问题 Getting this complaint from IntelliJ 13: 8:15:48 PM Gradle '<project>' project refresh failed: SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable. Build file '/<project>/build.gradle' line: 20 : Gradle settings I have tried to spam my local.properties in every directory I can think of but still getting this error. What gives? 回答1: The local.properties file goes in the project's root level, in the same folder as the

signed apk Parse error when parsing manifest

混江龙づ霸主 提交于 2019-12-24 07:14:35
问题 When I try to install my signed apk I get a parse error (see logcat). When I install the apk signed with default debug key everything is okay. this is the logcat output: 08-28 17:12:47.267 23828-23828/com.android.packageinstaller W/PackageInstaller: Parse error when parsing manifest. Discontinuing installation 08-28 17:12:47.267 23828-23828/com.android.packageinstaller W/PackageParser: Skipping dir: /mnt/shell/emulated/0/vertretungsplan-2.0.0.apk 08-28 17:12:47.287 23828-23828/com.android

where is the proguard mappings.txt file generated when using JACK?

拜拜、爱过 提交于 2019-12-24 03:27:53
问题 I have been trying to use the latest JACK and JILL build system to for my android project. I know that JACK process includes the proguard processing. But after that i couldn't locate the mappings.txt file for back-tracking stack-trace of bugs provided on google play developer console. Please help me LOCATE mappings.txt . Another related question is if the shrinkingResources still works while JACK because shrinkingResources requires minifyEnabled true but JACK requires minifyEnabled false .

Which one to choose as Project build target ? Google APIs or SDK platform

梦想与她 提交于 2019-12-24 00:36:29
问题 I have been searching but couldn't find the difference between both of these things. I have read other questions in which people have said that we should use Google Apis as build target when we want to integrate Google Maps Api or use other Google apis. The problem is that i am using maps on projects that were build on simple Android 4.4 not Google API (platform 4.4) and the maps are working just fine on my Galaxy s3. How are they possibly working? And if they are working then what is the

Android gradle build failed with Nullpointer Exception

与世无争的帅哥 提交于 2019-12-23 04:02:50
问题 I am trying to build a Android project in CentOS machine as part of Continuous Integration. Dev team builds in Windows and it works fine in their machine. In CentOS machine, I am seeing below error. Any idea what is going wrong. Below is the stacktrace. I have set proxy info in gradle.properties. I have setup Android build tools and platform tools. * What went wrong: A problem occurred configuring project ':app'. > java.lang.NullPointerException (no error message) * Try: Run with --info or -

Immutables-library generates the same immutable class twice

安稳与你 提交于 2019-12-22 11:33:47
问题 When using the immutables.io annotation processor in a multi-module android app, the build fails, when a package-info.java file is used. I've managed to build a minimal test-project on GitHub to reproduce the issue: ImmutablesPackageInfoIssue The project consists of 2 modules: app: android application: @Value.Immutable is used in AndroidIm.java lib: java module: @Value.Immutable is used in JavaIm.java So basically, using immutables.io in both modules works fine. But when we add a package-info

Android ZBar Exception only with Jenkins build

允我心安 提交于 2019-12-22 06:56:09
问题 I have an android project with a QR scan activity. I use the ZBar library for this: http://sourceforge.net/projects/zbar/files/AndroidSDK/ If the project is built on a PC or Mac with exlipse, the app works fine. If it's build by jenkins (same source from git) the app crashes. The Exception I get is: at controller.gui.activity.QRScanActivity.onCreate(Unknown Source) at android.app.Activity.performCreate(Activity.java:4465) at android.app.Instrumentation.callActivityOnCreate(Instrumentation

Could not find actionbarsherlock.apk

[亡魂溺海] 提交于 2019-12-21 19:43:52
问题 I'm trying to run my app on a real device from Eclipse. After adding actionbarsherlock as a reference, I can't get rid of this error: Could not find actionbarsherlock.apk . Here is the full console output: [2013-05-24 16:10:14 - MyApp] ------------------------------ [2013-05-24 16:10:14 - MyApp] Android Launch! [2013-05-24 16:10:14 - MyApp] adb is running normally. [2013-05-24 16:10:14 - MyApp] Performing com.myapp.activities.StopSelection activity launch [2013-05-24 16:11:26 - MyApp]

Android Databinding build fail after Gradle plugin update with migration to annotationProcessor

杀马特。学长 韩版系。学妹 提交于 2019-12-21 03:58:19
问题 To support Instant Run in my version of Android Studio, I needed to upgrade my Gradle plugin from version 2.2.3 to 2.3.3 I'm aware I'm supposed to migrate to annoationProcessor and I believe I've followed that guide correctly after doing so, the Android DataBinding code generation fails The migration guide linked earlier states that all I need is to Make sure you are on the Android Gradle 2.2 plugin or newer Remove the android-apt plugin from your build scripts Change all apt, androidTestApt

Building separate Android modules with dexpreopt disabled

一笑奈何 提交于 2019-12-20 10:57:54
问题 For my thesis, I'm modifying the android framework and building the source (4.1.1 Jelly Bean). I can do a full build, but because this is very time consuming (I'm developing on a ubuntu 12.04 64bit virtual machine) I'd like to build separate modules. For example: When doing changes to the location modules, it should be possible to just build the changed module, and make a new system image: mmm frameworks/base make snod But this doesn't work. Every time I try to boot, the new system image won