Just update Android Studio 4.2.1, but fail to run with error of: Missing essential plugin: org.jetbrains.android Please reinstall Android Studio from scratch. Here how I fix it in my case, Android Studio 4.…
When you create a Android Virtual Device, you have to select a system image from a list of available images. Some marked Google Play, and some marked Google APIs, so what's the difference? A system image labeled with Google APIs includes access …
With Android Studio updated (currently 3.6.2), when you view layout xml file, the original design/code option (on lower-left corner) removed. So how to view its xml code? Answer: The option is now moved to upper-right corner, you can view it in Code/S…
With latest Android Studio, I change the targetSdkVersion and compileSdkVersion of my old exercise to 28. And I also have to use updated com.android.support:appcompat-v7 and com.android.support.constraint:constraint-layout. After fail in rebuild, it…
Sometimes you will find some predefined layout in other examples, such as android.R.layout.simple_list_item_1 like this: String[] suggestion = getResources().getStringArray(R.array.suggestion); ArrayAdapter<String> adapter = …
The video show how to set Java version on Studio 3.3.1. By default, the Java language version used to compile your project is based on your project's compileSdkVersion (because different versions of Android support different versions of Java). If …
To change Gradle plugin to specified version, you can: - the File > Project Structure > Project menu in Android Studio, - or edit the top-level build.gradle file.
In case you forget the location of Android SDK was installed during the installation of Android Studio. You can find it at: > Android Studio Menu > File > Project Structure > It's show in Android SDK Location box
Follow the steps to capture screen of Android Emulator or connected Android device, using Android Studio. It work for me on Android Studio 3.2.1. Run your app on a connected device or emulator. If using a connected device, be sure you have enabled USB…
Android can reclaim memory from your app or kill your app entirely if necessary to free up memory for critical tasks. To help balance the system memory and avoid the system's need to kill your app process, you can implement the ComponentCallbacks2…
Dex In Process (introduced from Android 2.1) is a feature that can improve build times, as well as Instant Run performance. To take advantage of Dex In Process, you’ll need to modify your gradle.properties file and increase the amount of memory alloca…
What's New in Android Studio 3.0: Android Studio 3.0 brings a ton of new features and improvements, including Kotlin support, Android O APIs, Java 8 language features support, external APK debugging, Instant Apps modules and refactoring, an integr…
This post show how to Download and install Android Studio 3.0 Canary 1 on 64-bit Ubuntu 17.04, over Windows 10/Oracle VirtualBox, Firstly, Install Ubuntu 17.04 on Windows 10/Oracle VirtualBox . Before install Android Studio on 64-bit Ubuntu 17.04, in…
To get the vendor ID/product ID of attached USB devices in Linux, you can use the command lsusb. This video show how to, tested on Ubuntu 17.05 over Windows 10/Oracle VirtualBox 5.1 reference: Ubuntu Manual - lsusb
If you install Android Studio on 64-bit Linux and reported with error: Unable to run mksdcard SDK tool Most probably some 32-bit libraries are missed. If you are running a 64-bit version of Ubuntu, you need to install some 32-bit libraries with the fo…