Android Studio can’t open Android Device Monitor

Laura Suciu
Problem Recently I had this issue: my Android Device Monitor didn’t open and and an error log file was generated every time I was tring to open it, under Android – sdk – tools – lib – monitor-x86_64 – configuration. Also, I have to...
Read More

Android AdMob With Firebase

Laura Suciu
About Firebase First of all, you have to know that using AdMob with Firebase is optional, at least for now, and you can still integrate AdMob by importing compile ‘com.google.android.gms:play-services’ (like in this tutorial). But even if it is optional, it is recommended, as...
Read More

Android Gradle Dependencies by Flavors

Laura Suciu
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 see an example for each situation. By flavors <flavorName>Compile apply...
Read More

Android About ConstraintLayout

Laura Suciu
DID YOU KNOW about ConstraintLayout?   Definition ConstraintLayout is a new type of layout introduced by Android, similar to RelativeLayout but more flexible, and it is used to position UI elements relative to other UI elements by using constraints. A constraint represent...
Read More

Android Free/Paid Versions Tutorial

Laura Suciu
There are situations when you might decide that you need to create 2 versions for your application: a free one and a paid one. So, in this tutorial, which is just a simple example (we will just set different colors...
Read More

Android ApplicationId vs PackageName

Laura Suciu
You might wonder what is the difference between package name we have in AndroidManifest.xml file and ApplicationId we see in build.gradle. They seem to be the same thing, but actually they are 2 different things. So if you didn’t know...
Read More

Android Build Types and Flavors

Laura Suciu
In this tutorial we will talk about Build Types and Flavors, for what are they used, what is the difference between them and what they have in common. Build Types When you work on a project, at some point you...
Read More

Get screen size

Catalin Prata
So if you ever need the screen width and height on Android, you can use the following snippet: Get screen size on Android Java /** * Returns the size of the screen in pixels (width and height) * * @return...
Read More

Error:Execution failed for task ‘:Application:transformClassesWithDexFor

Laura Suciu
Error:Execution failed for task ‘:Application:transformClassesWithDexForMyFlavorName’. &gt; 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 1 2 Error:Execution failed for task ‘:Application:transformClassesWithDexForMyFlavorName’. &gt; 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...
Read More