Tag: android-studio

Execution failed for task ':app:shrinkReleaseMultiDexComponents'

I am getting following error when generating signed apk in Android Studio. :app:shrinkReleaseMultiDexComponents FAILED Error:Execution failed for task ‘:app:shrinkReleaseMultiDexComponents’. > java.io.IOException: The output jar [E:\SVN_studio\100’s\trunk\app\build\intermediates\multi-dex\release\componentClasses.jar] must be specified after an input jar, or it will be empty. Information:BUILD FAILED Information:1 error Information:Total time: 35.975 secs Information:159 warnings here is my build.gradle file apply plugin: ‘com.android.application’ […]

Manifest permission in Android Studio

I want to know if I can add permissions to the Manifest in Android Studio in the same way as in eclipse. What I mean is the permission tab that is generating for you automatically instead of putting it manually. The Question here is if there is an option that makes it automatically instead of […]

Android Studio Emulator not loading Windows 10

I have a fresh install of android studio on Windows 10, with all the packages for android api 22. When I run the emulator I get the following message C:\Users\admin\AppData\Local\Android\sdk\tools\emulator.exe -avd foo -netspeed full -netdelay none emulator: device fd:928 HAX is working and emulator runs in fast virt mode I can see the emulator in […]

How To Stop A Service

How To Stop A Service At A Specific Time Of The Day ? I have been able to start a service at specific time of every day but I want to do the exact same thing to stop but I don’t know how. Here is the code I use to start the service using AlarmManager. […]

UNEXPECTED TOP-LEVEL EXCEPTION: com.android.dex.DexException

I am trying to integrate barcodefraglibv2 into my android app in AndroidStudio. I tried to copy libs core.jar and barcodelib.jar into libs directory. However when I try to run application, I get following error Error:Execution failed for task ‘:Blok:dexDebug’. > com.android.ide.common.internal.LoggedErrorException: Failed to run command: /home/backman/android/sdk/build-tools/android-4.4.2/dx –dex –output /home/backman/AndroidStudioProjects/Blok/Blok/build/dex/debug /home/backman/AndroidStudioProjects/Blok/Blok/build/classes/debug /home/backman/AndroidStudioProjects/Blok/Blok/build/dependency-cache/debug /home/backman/AndroidStudioProjects/Blok/Blok/build/pre-dexed/debug/core-bcdbe5f84dd399255abb34d14ce9def109db2534.jar Error Code: 2 […]

android studio 2.2 how to apply dagger2 without android-apt plugin

my project build.gradle buildscript { repositories { jcenter() } dependencies { classpath ‘com.android.tools.build:gradle:2.2.0-alpha3’ classpath ‘com.google.dagger:dagger-compiler:2.2’ classpath ‘com.google.guava:guava:19.0’ // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { jcenter() } } task clean(type: Delete) { delete rootProject.buildDir } my module build.gradle android […]

Android Studio, Git and three ways merge

On Android Studio, I created a new branch from the master and commited the new branch two times. Then I checkedout the master and commited it one time. So I have two branches with two distinct endpoints and a common parent. Now I am trying a three ways merge: right click on the new branch, […]

How to upgrade appengine-java-sdk installed in .gradle folder

When I build my Android Studio project, it says : ******************************************************** There is a new version of the SDK available. ———– Latest SDK: Release: 1.9.15 Timestamp: Tue Oct 21 21:33:59 EDT 2014 API versions: [1.0] ———– Your SDK: Release: 1.9.14 Timestamp: Thu Oct 16 16:07:33 EDT 2014 API versions: [1.0] ———– Please visit https://developers.google.com/appengine/downloads for […]

Method invocation highlighed error in Android Studio

Im a little bit confused in Android Studio. I didint seen this kind of errors in Eclipse before. Example: FragmentManager fragmentManager = getFragmentManager(); FragmentTransaction tf = fragmentManager.beginTransaction(); Fragment oldFragment = fragmentManager.findFragmentByTag(AddDialogFragment.TAG); this code is working fine, but fragmentManager.beginTransaction(); gets highlighted and says: Method invocation ‘fragmentManager.beginTransaction’ may produce ‘java.lang.NullPointerException’ less… (Ctrl+F1) This inspection reports those conditions […]

Android build will not merge manifests from libraries

We have multiple projects, depending on a many Android lib modules. To avoid duplicated xml tags in the apps manifests, we put the relevant receivers, services and activities in their respective modules. Till today, we used: Android Studio: 2.2.1 gradle: 2.1.3 buildToolsVersion: 23.0.3 Today we’ve updated to: Android Studio: 2.3 gradle: 2.3.0 buildToolsVersion: 25.0.0 Up […]

Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.