Android Studio Ndk: Compile With Ndk-build And Get Native Support With Gradle Experimental
In order to get indexing in the Android Studio editor I should add the following code in build.gradle: ndk { moduleName 'MyModule' CFlags.add('-I${file('src
Solution 1:
You can set up the experimental plugin to run your buildNative task instead of the built-in compile and link tasks:
tasks.all {
task ->
if (task.name.startsWith('compile') && task.name.contains('MainC')) {
task.enabled = false
}
if (task.name.startsWith('link')) {
task.enabled = false
}
if (task.name.endsWith('SharedLibrary') ) {
task.dependsOn buildNative
}
}
Post a Comment for "Android Studio Ndk: Compile With Ndk-build And Get Native Support With Gradle Experimental"