Android Set build.gradle problem
Sebastian Dröge
sebastian at centricular.com
Sat Sep 8 09:30:48 UTC 2018
On Sat, 2018-09-08 at 14:45 +0530, Shubham Shrivastava wrote:
> startup failed:
> build file '/home/bitcomm-
> 31/AndroidStudioProjects/GstAndroid/app/build.gradle': 28: unexpected
> token: /home/bitcomm-31/Downloads/gstreamer-1.0-android-universal-
> 1.14.2/armvx86/share/gst-android @ line 28, column 28.
> GSTREAMER_ROOT_ANDROID '/home/bitcomm-31/Downloads/gstreamer-
> 1.0-android-universal-1.14.2/armvx86/share/gst-android'
> ^
>
> 1 error
>
>
> Please tell how to set in android build.gradle or in globally in
> bashrc file in linux.
Take a look at the tutorials here:
https://cgit.freedesktop.org/gstreamer/gst-docs/tree/examples/tutorials/android/android-tutorial-1
Specifically this part of build.gradle:
> externalNativeBuild {
> ndkBuild {
> def gstRoot
>
> if (project.hasProperty('gstAndroidRoot'))
> gstRoot = project.gstAndroidRoot
> else
> gstRoot = System.env.GSTREAMER_ROOT_ANDROID
>
> if (gstRoot == null)
> throw new GradleException('GSTREAMER_ROOT_ANDROID must be set, or "gstAndroidRoot" must be defined in your gradle.properties in the top level directory of the unpacked universal GStreamer Android binaries')
>
> arguments "NDK_APPLICATION_MK=jni/Application.mk", "GSTREAMER_JAVA_SRC_DIR=src", "GSTREAMER_ROOT_ANDROID=$gstRoot", "GSTREAMER_ASSETS_DIR=src/assets"
>
> targets "tutorial-1"
>
> // All archs except MIPS and MIPS64 are supported
> abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86'
> // x86_64 abis disabled because of https://bugzilla.gnome.org/show_bug.cgi?id=795454
> }
> }
--
Sebastian Dröge, Centricular Ltd · https://www.centricular.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20180908/d01304da/attachment.sig>
More information about the gstreamer-devel
mailing list