我开始使用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 Console显示:
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但也没有帮助。
此GitHub使用的原帖:
https://github.com/jaroslavas/Gstreamer-Android-Example
答案 0 :(得分:0)
试试这个例子https://github.com/GStreamer/gst-examples
快乐建筑=)