Skip to content
SaeHie Park edited this page Mar 27, 2019 · 6 revisions

Android Studio

Want to open multiple instances of Android Studio

Resource Download

Debugging

Log to LogCat

#ifdef __ANDROID__
#include <android/log.h>
#endif 

...
__android_log_print(ANDROID_LOG_DEBUG, "sometag", "test int = %d", testInt);
...

Ref

Connect Android device with adb

Get this problem ?

$ adb shell
error: insufficient permissions for device: user in plugdev group; are your udev rules wrong?
See [http://developer.android.com/tools/device.html] for more information

Set this rule:

$ cat /etc/udev/rules.d/51-android.rules
SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", MODE="0666", GROUP="plugdev"
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0666", GROUP="plugdev"

04e8 for Samsung 18d1 for Google

Clone this wiki locally