android-build

Android Studio 2.1.1 running old .apk file

。_饼干妹妹 提交于 2019-12-06 04:58:27
问题 Start of with, I tried all the suggestions in SO and none helped me. Suggestion1,Suggestion2,Suggestion3. I'm doing some debugging (Just running the app on my device through Android Studio ) and I noticed that time after time, changes that I made in the app does not applied to the .apk AS is running. The only solution I know is to delete the app from my device and then running again and it compiles with the changes I made in the code. Alternatively, I restart Android Studio and it fixes that

Gradle: Execution failed for task compileReleaseAidl

喜你入骨 提交于 2019-12-05 16:04:14
I'm having problems updating to Gradle 1.8 in android studio. When i compile i get this error: Gradle: Execution failed for task ':App Code:compileReleaseAidl'. > Could not call IncrementalTask.taskAction() on task ':App Code:compileReleaseAidl' This is my build.gradle: buildscript { repositories { mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:0.6.+' classpath 'com.newrelic.agent.android:agent-gradle-plugin:2.397.0' } } repositories { mavenCentral() maven { url 'http://www.bugsense.com/gradle/' } } apply plugin: 'android' apply plugin: 'newrelic' dependencies {

Android ZBar Exception only with Jenkins build

半城伤御伤魂 提交于 2019-12-05 09:46:48
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.java:1049) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1920) at android.app

Uninstalling selected parts of Android SDK on the command line

我只是一个虾纸丫 提交于 2019-12-05 06:57:54
This is related to "Uninstall old Android SDK versions" , except I'd want to do it on a headless Linux CI server (short on disk space). Does the android command line tool provide options for removing older parts of the SDK? With a quick look, the only things it can delete are AVDs. Did I overlook something? Alternatively, I guess I could just manually delete stuff from under SDK_HOME. But what things are safe to delete? Other candidates than these? I only need to support API level 14 and up, so I suppose I can delete stuff under platforms/ like android-3 and android-4 . docs (800MB), samples

Android build tools 1.1.0, unit test folder?

偶尔善良 提交于 2019-12-05 05:29:52
I recently installed the latest tools from google to my android project: buildscript { repositories { jcenter() mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:1.1.0' } } allprojects { repositories { jcenter() } } apply plugin: 'com.android.application' android { compileSdkVersion 21 buildToolsVersion "21.1.2" compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } defaultConfig { applicationId "com.xxx" minSdkVersion 10 targetSdkVersion 21 versionCode 200 versionName "2.0" testInstrumentationRunner "android.support

How can Android project compile when imported class is missing in SDK?

拥有回忆 提交于 2019-12-05 01:49:34
OK, perhaps it is very simple, but I just can not figure it out right now. I have imported google sample project Card Reader in Android Studio 1.5.1, it compiles at compileSdkVerison 23, it works on my Mobile. Then I walked through the SDK while came to source code to android.nfc.tech.BasicTagTechnology , I found TransceiveResult inside android.nfc.tech.BasicTagTechnology#transceive couldn't not be resolved then I found the class TransceiveResult is missing in my D:\Android\sdk\platforms\android-23\android.jar , but presents in Android source code here D:\Android\sdk\sources\android-23\android

Android build error com.google.firebase:firebase-core:17.0.0

馋奶兔 提交于 2019-12-05 01:01:31
I have to problem when build. i add build firebase core 16.0.0, but when build, this is build firebase core 17.0.0. why it build 17.0.0.I check android https://firebase.google.com/docs/android/setup#available_libraries , now version 16.0.0, i have to remove build project, but this is not success. Can you help me? Thanks. when i increase version build classpath 'com.google.gms:google-services:4.0.1' // google-services plugin and dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') implementation 'com.android.support:appcompat-v7:27.1.1' implementation 'com.android.support

Android Gradle: rename/disable default build type

守給你的承諾、 提交于 2019-12-04 22:48:08
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 calling assemble ? Kevin Brotcke import com.android.builder.core.BuilderConstants android.variantFilter { variant -> def build = variant.buildType.name if (build == BuilderConstants.DEBUG || build == BuilderConstants.RELEASE) { variant.setIgnore(true) } } Note that the very first time importing the project Android Studio will pick any variant named

android.os.ServiceManager not found while building

我的梦境 提交于 2019-12-04 17:18:07
I am getting following error while building android source, where i have added my custom app which uses android.os.ServiceManager. cannot find symbol symbol : class ServiceManager location: package android.os import android.os.ServiceManager; Why am I facing this error, actually this import can be found in many other app in android source. I am building the android source as in http://source.android.com/source/building.html and also followed this post The import android.os.ServiceManager cannot be resolved answers. and for more info, I am building in [android root]/packages/app/ directory

Could not find actionbarsherlock.apk

旧街凉风 提交于 2019-12-04 12:19:17
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] Uploading MyApp.apk onto device '0A3AA80D1402500E' [2013-05-24 16:11:26 - MyApp] Installing MyApp.apk... [2013