Android Set build.gradle problem

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Android Set build.gradle problem

Shubham Shrivastava
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.

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Android Set build.gradle problem

Sebastian Dröge-3
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


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (981 bytes) Download Attachment