studio

Android: AdbCommandRejectedException getting properties for device

Problem From Android Studio, the connection to the device for debugging was not getting established. The ADB logs gave the repeated error, PropertyFetcher: AdbCommandRejectedException getting properties for device ????????????: insufficient permissions for device Solution As described in the documentation, Using Hardware Devices, a file /etc/udev/rules.d/51-android.rules was created. Using the lsusb -v command, the vendor id …

Android: AdbCommandRejectedException getting properties for device Read More »

Unable to establish a connection to adb

1.0 Problem After opening an Android project in Studio running under Ubuntu 15.04 Linux, the following error was displayed, Unable to establish a connection to adb. This usually happens if you have an incompatible version of adb running already. Try reopening Studio after killing any existing adb daemon. 2.0 Analysis Running the ps -ef | …

Unable to establish a connection to adb Read More »

Invalid Gradle JDK configuration found

1.0 Problem After starting Android studio, running on Ubuntu 15.04 Linux, the following error was reported: Invalid Gradle JDK configuration found. Open Gradle Settings. Platform SDK does not point to valid SDK (/usr/lib/jvm/jdk1.8.0_40). 2.0 Solution The problem was solved by clicking in Android Studio, File -> Project Structure -> SDK Location. Under JDK location, enter …

Invalid Gradle JDK configuration found Read More »

Importing an Android Studio project in Git

1.0 Introduction Importing an Android Studio project into Git is easy. First create the project or import an existing project in Android Studio. In this case a placeholder project HelloWorld was created. The directory listing of the project root directory looks like this. $ ls -lsa total 60 4 drwxrwxr-x 6 user1 user1 4096 Mar …

Importing an Android Studio project in Git Read More »