I do not consider this question as a duplicate of this and this question, since they basically answered this link and cannot be adapted for later versions of AS.
I can find good information on how to integrate Android NDK with Eclipse , but now Eclipse and ADT are deprecated by Google.
When following the instructions for installing the project for the experimental gradle plugin, I get numerous errors in the editor type cannot Resolve symbol for all new additions, as well as the error posted below after the assembly.
The build.gradle project in the project.
buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle-experimental:0.2.0' } } allprojects { repositories { jcenter() } } task clean(type: Delete) { delete rootProject.buildDir }
And build.gradle in the application
apply plugin: 'com.android.model.application' model{ android { compileSdkVersion = 22 buildToolsVersion = "23.0.1" defaultConfig.with { applicationId = "se.einarsundgren.gstreamandroiddemo" minSdkVersion.apiLevel = 22 targetSdkVersion.apiLevel = 22 versionCode = 1 versionName = "1.0" buildConfigFields.with { create() { type = "int" name = "VALUE" value = "1" } } } android.buildTypes { release { minifyEnabled = false proguardFiles += file('proguard-rules.pro') } } android.productFlavors { create("flavor1") { applicationId = 'com.app' } } android.sources{ main { java { source { srcDir 'src' } } } } android.ndk { moduleName = "native" } } } dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:22.2.0' }
Error that occurs when cleaning and restoring a project:
Error: There was a problem setting up the root project "GstreamAndroidDemo".
Failed to resolve all dependencies for configuration: classpath. Failed to resolve com.android.tools.build: gradle-experimental: 0.2.0. Requires:: GstreamAndroidDemo: undefined Unable to resolve com.android.tools.build:gradle-experimental_b.2.0. Failed to get the resource https://jcenter.bintray.com/com/android/tools/build/gradle-experimental/0.2.0/gradle-experimental-0.2.0.pom '. GET failed ' https://jcenter.bintray.com/com/android/tools/build/gradle-experimental/0.2.0/gradle-experimental-0.2.0.pom '. peer not authenticated
How to integrate NDK with a project in Android Studio? Previously related questions have answers valid for an earlier version (pre 1.3), and the instructions cannot be adapted for AS 1.4
source share