码迷,mamicode.com
首页 > 移动开发 > 详细

android studio(2.0)NDK开发配置

时间:2016-01-07 20:18:01      阅读:2455      评论:0      收藏:0      [点我收藏+]

标签:

android studio 版本:2.0
gradle 版本:2.8

详情看gradle配置:

eclipse项目导出
=============================================================================================
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath ‘com.android.tools.build:gradle:1.5.0
}
}
apply plugin: ‘com.android.application‘

dependencies {
compile fileTree(dir: ‘libs‘, include: ‘*.jar‘)
}

android {
compileSdkVersion 19
buildToolsVersion "23.0.2"
sourceSets {
main {
manifest.srcFile ‘AndroidManifest.xml‘
java.srcDirs = [‘src‘]
resources.srcDirs = [‘src‘]
aidl.srcDirs = [‘src‘]
renderscript.srcDirs = [‘src‘]
res.srcDirs = [‘res‘]
assets.srcDirs = [‘assets‘]
jni.srcDirs =[]
//jniLibs.srcDir ‘src/libs‘
jniLibs.srcDirs = [‘libs‘]
}
instrumentTest.setRoot(‘tests‘)
debug.setRoot(‘build-types/debug‘)
release.setRoot(‘build-types/release‘)
}

}
=============================================================================================

技术分享



android studio(2.0)NDK开发配置

标签:

原文地址:http://www.cnblogs.com/july2015/p/5110989.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!