Hello all
This is the first time I ask something here. Using Gradle for ages, but usually is so smooth, you don’t have to worry about anything. However, this time I get a message, I wasn’t expecting.
I am using Android Studio, trying to integrate native support.
I have downloaded ndk,lldb and of course CMake. Following this docstring I am trying to wire the main CMakeLists.txt file. To do this I have added in the app file this:
externalNativeBuild { cmake { version "3.10.2" cppFlags "" path "CMakeLists.txt"
under Android{
When I am trying to sync my project I get :
ERROR: Gradle DSL method not found: ‘path()’
Possible causes:
The project ‘BoostIntegration’ may be using a version of the Android Gradle plug-in that does not contain the method (e.g. ‘testCompile’ was added in 1.1.0).
Upgrade plugin to version 3.5.0 and sync projectThe project ‘BoostIntegration’ may be using a version of Gradle that does not contain the method.
Open Gradle wrapper fileThe build file may be missing a Gradle plugin.
Apply Gradle plugin
I am using
Android Studio 3.5
Build #AI-191.8026.42.35.5791312, built on August 9, 2019
JRE: 1.8.0_202-release-1483-b03 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0
dependencies {
classpath 'com.android.tools.build:gradle:3.5.0'
Thank you for your time.