Android Gradle Plugin 3.0+ sync issue

Cross references Gradle sync issue on Debian OS due to user does not have permission Gradle proxy configuration * What went wrong: A problem occurred configuring root project 'idp-main'. > Could not resolve all files for configuration ':classpath'.    > Could not find gradle.jar (com.android.tools.build:gradle:3.0.1).      Searched in the following locations:          https://jcenter.bintray.com/com/android/tools/build/gradle/3.0.1/gradle-3.0.1.jar    > Could …

Continue reading Android Gradle Plugin 3.0+ sync issue

Advertisements

Gradle sync issue on Debian OS due to user does not have permission

Cross references Android Gradle Plugin 3.0+ sync issue Gradle proxy configuration I have written an article about all the proxies that should be configured properly in order for gradle working behind a network proxy (See Gradle proxy configuration). However, sometimes even though you are pretty sure that all the proxy settings, i.e. the gradle.properties, bash …

Continue reading Gradle sync issue on Debian OS due to user does not have permission

Gradle proxy configuration

Cross references Gradle sync issue on Debian OS due to user does not have permission Android Gradle Plugin 3.0+ sync issue Basically, there are TWO kind of proxies you need to configure for your gradle to work properly behind a proxy, i.e. fetching the online dependencies. proxy for gradle proxy for maven Let's assume that …

Continue reading Gradle proxy configuration

Cannot launch AVD in emulator on Debian OS

Problem In the recent android studio update, google uses a libstdc++ that is incompatible with the intel driver installed on the system. This will cause an error like below: Cannot launch AVD in emulator. Output: libGL error: unable to load driver: i965_dri.so libGL error: driver pointer missing libGL error: failed to load driver: i965 libGL …

Continue reading Cannot launch AVD in emulator on Debian OS

Install vim on macOS High Sierra using source code

Vim articles My vim related articles Mac Vim Usage – Basics Mac Vim Usage – Advanced Mac Vim Usage – Customization Install vim on macOS High Sierra using source code Install vim from source code Using git to clone the source code and change directory to vim/src, build the source code using make and then …

Continue reading Install vim on macOS High Sierra using source code

Android JNI – NIO and Reflection Support

NIO Support The NIO-related entry points allow native code to access java.nio direct buffers. The contents of a direct buffer can, potentially, reside in native memory outside of the ordinary garbage-collected heap. For information about direct buffers, please see New I/O APIs and the specification of the java.nio.ByteBuffer class. Three new functions introduced in JDK/JRE 1.4 allow JNI code to create, …

Continue reading Android JNI – NIO and Reflection Support

Android Build Commands

Install apk   In case that you have both simulator and device connected but you want to install the app on device, then use the global option "-d" just right after the "adb" command will help. Update existing apk on device. Uninstall apk Run instrumented tests Run all tests Run a particular test class Run …

Continue reading Android Build Commands

Android JNI – Array Operations

Array OperationsGetArrayLength Returns the number of elements in the array. NewObjectArray Constructs a new array holding objects in class elementClass. All elements are initially set to initialElement. GetObjectArrayElement Returns an element of an Object array. SetObjectArrayElement Sets an element of an Object array. New<PrimitiveType>Array Routines A family of operations used to construct a new primitive array object. Below describes the specific primitive …

Continue reading Android JNI – Array Operations