Android NDK in Android studio >=1.4 -
i not consider question duplicate of this , this questions since answered this link , not adaptable later versions of as.
i can find information on how integrate android ndk eclipse, eclipse , adt considered deprecated google.
when following instructions setup project experimental gradle plugin numerous errors in editor of type cannot resolve symbol
new additions error posted below after build.
the build.gradle in 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 app
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' }
the error when cleaning , rebuilding project:
error:a problem occurred configuring root project 'gstreamandroiddemo'.
could not resolve dependencies configuration ':classpath'. not resolve com.android.tools.build:gradle-experimental:0.2.0. required by: :gstreamandroiddemo:unspecified not resolve com.android.tools.build:gradle-experimental:0.2.0. not resource 'https://jcenter.bintray.com/com/android/tools/build/gradle-experimental/0.2.0/gradle-experimental-0.2.0.pom'. not 'https://jcenter.bintray.com/com/android/tools/build/gradle-experimental/0.2.0/gradle-experimental-0.2.0.pom'. peer not authenticated
how integrate ndk project in android studio? linked questions have answers valid earlier version (pre 1.3) , instructions not adaptable 1.4
that setting can point location of ndk not included in later versions.
yes, is, @ least on android studio 1.4.1 on linux:
how integrate ndk project in android studio?
as far aware, follow the instructions.
update: regard gradle-experimental
problems, 0.2.0 , newer versions show in jcenter
when view their web site. make sure have followed rest of instructions, such using gradle 2.5.
Comments
Post a Comment