Solutions

Solutions for different problems, might not contain code

  1. Home
  2. chevron_right
  3. Solutions
  4. (Page 2)

Android Gradle Dependencies by Flavors

Solutions
In a previous post about Gradle Flavors and Build Types, we mentioned that we can set different dependencies inside dependencies{} block by flavors, by build type or both combined. Below we will…

Error:Execution failed for task ‘:Application:transformClassesWithDexFor

Solutions
Error:Execution failed for task ':Application:transformClassesWithDexForMyFlavorName'. > com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home/bin/java'' finished with non-zero exit value 2 I had this error after updating the project to the latest Build…

GSON & Realm String array

Solutions
You might know about Realm, a fancy and practical storage option that one can use on Android. Realm is quite fast and it is really easy to work with but…

Android Custom Edit Text Cursor Not Visible

Solutions
Story I created a new simple project with a custom edit text without any logic (it just extends EditText). The code is the following: CustomEditText.java package com.example.customedittextcursor; import android.content.Context; import android.util.AttributeSet;…

Android Debugging is not working

Solutions
PROBLEM You add breakpoints and you cannot debug your code. CAUSE The problem might be that you have ProGuard enabled in the gradle file. buildTypes { release { minifyEnabled true }…