Gstreamer:启动进程 'command '/android-ndk-r13b/ndk-build''

Gstreamer: starting process 'command '/android-ndk-r13b/ndk-build''

我在开始使用 Android Studio 与 Gstreamer 一起工作时遇到了很多问题。到目前为止,我已经使用了 Android Studio 2.2.3 和 Gstreamer gstreamer-1.0-android-universal-1.10.2 库。

这是我收到的错误:

Error:Execution failed for task ':app:ndkBuild'.
A problem occurred starting process 'command '/android-ndk-r13b/ndk-build''

至于 Gradle 控制台显示:

Executing tasks: [:app:generateDebugSources, :app:mockableAndroidJar, :app:prepareDebugUnitTestDependencies, :app:generateDebugAndroidTestSources, :app:compileDebugSources, :app:compileDebugUnitTestSources, :app:compileDebugAndroidTestSources]

Configuration on demand is an incubating feature.
C:\Users\Ong Heng Gnee\AndroidStudioProjects\Gstreamer-Android-example-master\Gstreamer-Android-example-master\app\build/libs
C:\Users\Public\Android\Sdk\ndk-bundle
Incremental java compilation is an incubating feature.
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:checkDebugManifest
:app:prepareDebugDependencies
:app:compileDebugAidl UP-TO-DATE
:app:compileDebugRenderscript UP-TO-DATE
:app:generateDebugBuildConfig UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources UP-TO-DATE
:app:mergeDebugResources UP-TO-DATE
:app:processDebugManifest UP-TO-DATE
:app:processDebugResources UP-TO-DATE
:app:generateDebugSources UP-TO-DATE
:app:mockableAndroidJar UP-TO-DATE
:app:preDebugUnitTestBuild UP-TO-DATE
:app:prepareDebugUnitTestDependencies
:app:preDebugAndroidTestBuild UP-TO-DATE
:app:prepareDebugAndroidTestDependencies
:app:compileDebugAndroidTestAidl UP-TO-DATE
:app:processDebugAndroidTestManifest UP-TO-DATE
:app:compileDebugAndroidTestRenderscript UP-TO-DATE
:app:generateDebugAndroidTestBuildConfig UP-TO-DATE
:app:generateDebugAndroidTestResValues UP-TO-DATE
:app:generateDebugAndroidTestResources UP-TO-DATE
:app:mergeDebugAndroidTestResources UP-TO-DATE
:app:processDebugAndroidTestResources UP-TO-DATE
:app:generateDebugAndroidTestSources UP-TO-DATE
:app:incrementalDebugJavaCompilationSafeguard UP-TO-DATE
:app:ndkBuild FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:ndkBuild'.
> A problem occurred starting process 'command '/android-ndk-r13b/ndk-build''

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 0.985 secs

我使用了默认的 ndk-bundle,但也没有帮助。

原始 post 使用自此 GitHub:

https://github.com/jaroslavas/Gstreamer-Android-Example

试试这个例子https://github.com/GStreamer/gst-examples

  1. 你需要使用ndk r12b
  2. 使用最新的稳定版https://gstreamer.freedesktop.org/data/pkg/android/1.10.2/
  3. 设置 gstAndroidRoot
  4. 从控制台构建、组装调试等

快乐大厦=)