魅力程序猿

  • 首页
  • Java
  • Android
  • APP
    • 扑克计分器
    • Video Wallpaper
  • 联系我
  • 关于我
  • 资助
道子
向阳而生
  1. 首页
  2. Android
  3. 正文

NDK工程运行出错1

2016年9月23日 7840点热度 0人点赞 4条评论

错误如下:

Information:Gradle tasks [:app:assembleRelease]
Error:Execution failed for task ':app:compileReleaseNdk'.
> Error: NDK integration is deprecated in the current plugin. Consider trying the new experimental plugin. For details, see http://tools.android.com/tech-docs/new-build-system/gradle-experimental. Set "$USE_DEPRECATED_NDK=true" in gradle.properties to continue using the current NDK integration.

1134

解决方法1

1、在project目录下创建gradle.properties文件

2、在文件中加入: $USE_DEPRECATED_NDK=true Android.useDeprecatedNdk=true

3、Sync project with gradle

解决方法2

android {
    sourceSets.main.jni.srcDirs = []
}
标签: app:compileReleaseNdk Set "$USE_DEPRECATED_NDK=true"
最后更新:2016年9月23日

daozi

这个人很懒,什么都没留下

点赞
< 上一篇
下一篇 >

文章评论

  • https://sherillgriffie.wordpress.com/

    You have made some decent points there. I looked on the web to
    learn more about the issue and found most people will go
    along with your views on this site.

    2017年5月27日
    回复
  • razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
    取消回复
    搜索
    联系方式

    QQ群:179730949
    QQ群:114559024
    欢迎您加入Android大家庭
    本人QQ:136049925

    赐我一丝安慰
    给我一点鼓励

    COPYRIGHT © 2023 魅力程序猿. ALL RIGHTS RESERVED.

    Theme Kratos Made By Seaton Jiang

    豫ICP备15000477号