NdkJniDemo icon indicating copy to clipboard operation
NdkJniDemo copied to clipboard

build.gradle问题

Open JakeWoki opened this issue 8 years ago • 2 comments

看了你的代码,其中的build.gradle和普通做法一样,但是我看官方介绍说有不同,不知道两者有什么不同,如果知道麻烦说下。谢谢! 官方说明:http://tools.android.com/tech-docs/new-build-system/gradle-experimental 官方demo:https://github.com/googlesamples/android-ndk

JakeWoki avatar Sep 06 '16 01:09 JakeWoki

官方的demo 使用的是gradle 插件

classpath 'com.android.tools.build:gradle-experimental:0.7.0'

这个demo 中使用的本地ndk直接编译,没有依赖gradle 插件 。在 gradle.property 中 有这个配置

android.useDeprecatedNdk=true

现在官方给的demo这种使用方式还不完善,比如在项目中如果再使用其他插件,greenDao 类似的,就会出现无法兼容的问题,还有很多其他的坑。

个人愚见啊

imesong avatar Sep 08 '16 10:09 imesong

@imesong 谢谢

JakeWoki avatar Sep 08 '16 12:09 JakeWoki