here is code to execute gradle based shared lib cpp ----- #include #include using namespace std; extern "C" { JNIEXPORT jstring JNICALL Java_com_seo_Sample1_stringMethod (JNIEnv *env, jobject obj, jstring string) { const char *name = (*env).GetStringUTFChars(string, NULL); char msg[60] = "Hello "; jstring result; strcat(msg, name); (*env).ReleaseStringUTFChars(string, name); puts(msg); result = (*env).NewStringUTF(msg); return result; } } Java ----- /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.seo; /** * * @author vpilaka */ public class...