Apply plugin: ' Com.android.application ' Android {compilesdkversion defaultconfig {applicationid ' Com.exam Ple.lenovo.cmakedemo "Minsdkversion targetsdkversion versioncode 1 Versionname" 1.0 " Testinstrumentationrunner "Android.support.test.runner.AndroidJUnitRunner"Externalnativebuild {cmake {cppflags "-std=c++14-frtti-fexceptions"} }} buildtypes {release {minifyenabled false proguardfiles getdefaultproguardfile (' Proguar D-android.txt '), ' Proguard-rules.pro '}}Externalnativebuild {cmake {path "CMakeLists.txt"}}}dependencies {androidtestcompile (' com.android.support:support-annotations:26.1.0 ') {force = true}Implementation Filetree (dir: ' Libs ', include: [' *.jar ']) implementation ' com.android.support:appcompat-v7:26.1.0 ' im Plementation ' com.android.support.constraint:constraint-layout:1.1.2 ' testimplementation ' junit:junit:4.12 ' Androidtestimplementation ' com.android.support.test:runner:1.0.2 ' androidtestimplementation ' com.android.support.test.espresso:espresso-core:3.0.2 '}
Build.gradle in Android Studio