ארכיון תגיות: Gradle

Dec 04

Using SWIG

Using SWIG     SWIG – Simplified Wrapper and Interface Generator:   When writing native code in our Android project, we need to set up the “glue” code between java and C++, this “glue” code is the JNI code. I wrote This JNI Article about JNI in Android, the problem with writing JNI code is …

המשיכו בקריאה »

Dec 04

Disabling Gradle auto build in Android Studio and set to use Make Files

Disabling Gradle auto build in Android Studio and set to use Make Files     Theoretical background:     To build using a custom Android MakeFile: If you would like to use a custom android MakeFile instead of using the default compilation of Gradle, we will have to:   1. Create a custom Android.mk file …

המשיכו בקריאה »

Dec 04

Building the Android project using Gradle

Building the Android project using Gradle         To build using Gradle: If you want to use the android NDK to build C++ code, all you have to do is: 1. In the build.gradle file add under android->defaultConfig the following element:   ndk {     moduleName "<your_module_name>"     //You can declare here other …

המשיכו בקריאה »

Dec 04

Building the Android project using Gradle or MakeFiles

Building the Android project using Gradle or MakeFiles     Theoretical Background:   The android build system uses Gradle, and it consists of an android plugin for Gradle. When we create a project a build.gradle (Module: app) file is created (under the folder app) and auto generated with the plugin: apply plugin: ‘com.android.application’ This plugin …

המשיכו בקריאה »