更新了android studio并因Gstreamer构建失败 [英] Updated android studio and got fail with Gstreamer build

查看:164
本文介绍了更新了android studio并因Gstreamer构建失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

已使用新的android gradle插件更新到Android Studio 3.0.0. 当内置项目收到消息时:

Updated to Android Studio 3.0.0 with new android gradle plugin. While buildin project got message:

What went wrong:
Execution failed for task `':app:externalNativeBuildDebug'`.

Expected output file at `gst-build-arm64-v8a/libgstreamer_android.so` for target `gstreamer_android` but there was none

,但是libgstreamer_android.so库文件已经存在.对于本机代码,我使用ndk-build.有人遇到这个问题吗?

but libgstreamer_android.so library file is already there. For native code I use ndk-build. Does anyone have this issue?

推荐答案

添加到我们android模块字段目标的build.gradle文件中.

Add to build.gradle file of our android module field targets.

android { 
  defaultConfig { 
    externalNativeBuild { 
      ndkBuild { 
        targets "name_of_native_module_in_android_mk_file" 
      } 
  ... 
}

不要添加gstreamer_android.

这篇关于更新了android studio并因Gstreamer构建失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆