Build android tutorials error while using v1.24.1. "ndk-build/tools/windows/sed: can't read |: Invalid argument"

Hello team,

We were able to build android tutorials with following setup:

  • gstreamer-1.0-android-universal-1.22.7
  • android ndk 21.0.6113669
  • gradle-7.3.3-all
  • Window 10

After having changed to later version, these android tutorials seem not be able to build.

  • gstreamer-1.0-android-universal-1.24.1
  • android ndk 25c (25.2.9519653)
  • gradle-7.3.3-all
  • Window 10

The full build error log:

Summary

gradlew assembleDebug
Task :app:buildNdkBuildDebug[arm64-v8a][app] FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:app:buildNdkBuildDebug[arm64-v8a][app]’.
    Build command failed.
    Error while executing process F:\Devtools\Android-Sdk\ndk\25.2.9519653\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=F:\Workspace\jni\Android.mk APP_ABI=arm64-v8a NDK_ALL_ABIS=arm64-v8a NDK_DEBUG=1 APP_PLATFORM=android-21 NDK_OUT=F:\Workspace\build\intermediates\cxx\Debug\1y1k31s6/obj NDK_LIBS_OUT=F:\Workspace\build\intermediates\cxx\Debug\1y1k31s6/lib NDK_APPLICATION_MK=jni/Application.mk GSTREAMER_JAVA_SRC_DIR=src GSTREAMER_ROOT_ANDROID=F:\Devtools\gstreamer-1.0-android-universal-1.24.1 GSTREAMER_ASSETS_DIR=src/assets app}
    GStreamer : [GEN] => gst-android-build/arm64-v8a/gstreamer_android.c
    #include <gst/gst.h>
    #include <gio/gio.h>

    #define GST_G_IO_MODULE_DECLARE(name)
    extern void G_PASTE(g_io_, G_PASTE(name, _load)) (gpointer data)

    #define GST_G_IO_MODULE_LOAD(name)
    G_PASTE(g_io_, G_PASTE(name, _load)) (NULL)

    /* Declaration of static plugins */
    GST_PLUGIN_STATIC_DECLARE(coreelements); GST_PLUGIN_STATIC_DECLARE(coretracers); GST_PLUGIN_STATIC_DECLARE(adder); GST_PLUGIN_STATIC_DECLARE(app); GST_PLUGIN_STATIC_DECLARE(audioconvert); GST_PLUGIN_STATIC_DECLARE(audiomixer); GST_PLUGIN_STATIC_DECLARE(audiorate); GST_PLUGIN_STATIC_DECLARE(audioresample); GST_PLUGIN_STATIC_DECLARE(audiotestsrc); GST_PLUGIN_STATIC_DECLARE(compositor); GST_PLUGIN_STATIC_DECLARE(gio); GST_PLUGIN_STATIC_DECLARE(overlaycomposition); GST_PLUGIN_STATIC_DECLARE(pango); GST_PLUGIN_STATIC_DECLARE(rawparse); GST_PLUGIN_STATIC_DECLARE(typefindfunctions); GST_PLUGIN_STATIC_DECLARE(videoconvertscale); GST_PLUGIN_STATIC_DECLARE(videorate); GST_PLUGIN_STATIC_DECLARE(videotestsrc); GST_PLUGIN_STATIC_DECLARE(volume); GST_PLUGIN_STATIC_DECLARE(autodetect); GST_PLUGIN_STATIC_DECLARE(videofilter); GST_PLUGIN_STATIC_DECLARE(insertbin); GST_PLUGIN_STATIC_DECLARE(switchbin); GST_PLUGIN_STATIC_DECLARE(fallbackswitch); GST_PLUGIN_STATIC_DECLARE(livesync); GST_PLUGIN_STATIC_DECLARE(rsinter); GST_PLUGIN_STATIC_DECLARE(rstracers); GST_PLUGIN_STATIC_DECLARE(threadshare); GST_PLUGIN_STATIC_DECLARE(togglerecord); GST_PLUGIN_STATIC_DECLARE(alpha); GST_PLUGIN_STATIC_DECLARE(alphacolor); GST_PLUGIN_STATIC_DECLARE(audiofx); GST_PLUGIN_STATIC_DECLARE(cairo); GST_PLUGIN_STATIC_DECLARE(cutter); GST_PLUGIN_STATIC_DECLARE(debug); GST_PLUGIN_STATIC_DECLARE(deinterlace); GST_PLUGIN_STATIC_DECLARE(dtmf); GST_PLUGIN_STATIC_DECLARE(effectv); GST_PLUGIN_STATIC_DECLARE(equalizer); GST_PLUGIN_STATIC_DECLARE(gdkpixbuf); GST_PLUGIN_STATIC_DECLARE(imagefreeze); GST_PLUGIN_STATIC_DECLARE(interleave); GST_PLUGIN_STATIC_DECLARE(level); GST_PLUGIN_STATIC_DECLARE(multifile); GST_PLUGIN_STATIC_DECLARE(replaygain); GST_PLUGIN_STATIC_DECLARE(shapewipe); GST_PLUGIN_STATIC_DECLARE(smpte); GST_PLUGIN_STATIC_DECLARE(spectrum); GST_PLUGIN_STATIC_DECLARE(videobox); GST_PLUGIN_STATIC_DECLARE(videocrop); GST_PLUGIN_STATIC_DECLARE(videomixer); GST_PLUGIN_STATIC_DECLARE(accurip); GST_PLUGIN_STATIC_DECLARE(aes); GST_PLUGIN_STATIC_DECLARE(aiff); GST_PLUGIN_STATIC_DECLARE(audiobuffersplit); GST_PLUGIN_STATIC_DECLARE(audiofxbad); GST_PLUGIN_STATIC_DECLARE(audiolatency); GST_PLUGIN_STATIC_DECLARE(audiomixmatrix); GST_PLUGIN_STATIC_DECLARE(autoconvert); GST_PLUGIN_STATIC_DECLARE(bayer); GST_PLUGIN_STATIC_DECLARE(coloreffects); GST_PLUGIN_STATIC_DECLARE(closedcaption); GST_PLUGIN_STATIC_DECLARE(debugutilsbad); GST_PLUGIN_STATIC_DECLARE(fieldanalysis); GST_PLUGIN_STATIC_DECLARE(freeverb); GST_PLUGIN_STATIC_DECLARE(frei0r); GST_PLUGIN_STATIC_DECLARE(gaudieffects); GST_PLUGIN_STATIC_DECLARE(geometrictransform); GST_PLUGIN_STATIC_DECLARE(inter); GST_PLUGIN_STATIC_DECLARE(interlace); GST_PLUGIN_STATIC_DECLARE(isac); GST_PLUGIN_STATIC_DECLARE(ivtc); GST_PLUGIN_STATIC_DECLARE(legacyrawparse); GST_PLUGIN_STATIC_DECLARE(proxy); GST_PLUGIN_STATIC_DECLARE(removesilence); GST_PLUGIN_STATIC_DECLARE(segmentclip); GST_PLUGIN_STATIC_DECLARE(smooth); GST_PLUGIN_STATIC_DECLARE(speed); GST_PLUGIN_STATIC_DECLARE(soundtouch); GST_PLUGIN_STATIC_DECLARE(timecode); GST_PLUGIN_STATIC_DECLARE(videofiltersbad); GST_PLUGIN_STATIC_DECLARE(videoframe_audiolevel); GST_PLUGIN_STATIC_DECLARE(videosignal); GST_PLUGIN_STATIC_DECLARE(webrtcdsp); GST_PLUGIN_STATIC_DECLARE(ladspa); GST_PLUGIN_STATIC_DECLARE(rsaudiofx); GST_PLUGIN_STATIC_DECLARE(rsvideofx); GST_PLUGIN_STATIC_DECLARE(playback); GST_PLUGIN_STATIC_DECLARE(uriplaylistbin); GST_PLUGIN_STATIC_DECLARE(subparse); GST_PLUGIN_STATIC_DECLARE(ogg); GST_PLUGIN_STATIC_DECLARE(theora); GST_PLUGIN_STATIC_DECLARE(vorbis); GST_PLUGIN_STATIC_DECLARE(opus); GST_PLUGIN_STATIC_DECLARE(adaptivedemux2); GST_PLUGIN_STATIC_DECLARE(alaw); GST_PLUGIN_STATIC_DECLARE(amrnb); GST_PLUGIN_STATIC_DECLARE(amrwbdec); GST_PLUGIN_STATIC_DECLARE(apetag); GST_PLUGIN_STATIC_DECLARE(audioparsers); GST_PLUGIN_STATIC_DECLARE(auparse); GST_PLUGIN_STATIC_DECLARE(avi); GST_PLUGIN_STATIC_DECLARE(dv); GST_PLUGIN_STATIC_DECLARE(flac); GST_PLUGIN_STATIC_DECLARE(flv); GST_PLUGIN_STATIC_DECLARE(flxdec); GST_PLUGIN_STATIC_DECLARE(icydemux); GST_PLUGIN_STATIC_DECLARE(id3demux); GST_PLUGIN_STATIC_DECLARE(isomp4); GST_PLUGIN_STATIC_DECLARE(jpeg); GST_PLUGIN_STATIC_DECLARE(lame); GST_PLUGIN_STATIC_DECLARE(matroska); GST_PLUGIN_STATIC_DECLARE(mpg123); GST_PLUGIN_STATIC_DECLARE(mulaw); GST_PLUGIN_STATIC_DECLARE(multipart); GST_PLUGIN_STATIC_DECLARE(png); GST_PLUGIN_STATIC_DECLARE(speex); GST_PLUGIN_STATIC_DECLARE(taglib); GST_PLUGIN_STATIC_DECLARE(vpx); GST_PLUGIN_STATIC_DECLARE(wavenc); GST_PLUGIN_STATIC_DECLARE(wavpack); GST_PLUGIN_STATIC_DECLARE(wavparse); GST_PLUGIN_STATIC_DECLARE(xingmux); GST_PLUGIN_STATIC_DECLARE(y4menc); GST_PLUGIN_STATIC_DECLARE(adpcmdec); GST_PLUGIN_STATIC_DECLARE(adpcmenc); GST_PLUGIN_STATIC_DECLARE(assrender); GST_PLUGIN_STATIC_DECLARE(bz2); GST_PLUGIN_STATIC_DECLARE(codecalpha); GST_PLUGIN_STATIC_DECLARE(codectimestamper); GST_PLUGIN_STATIC_DECLARE(dash); GST_PLUGIN_STATIC_DECLARE(dvbsubenc); GST_PLUGIN_STATIC_DECLARE(dvbsuboverlay); GST_PLUGIN_STATIC_DECLARE(dvdspu); GST_PLUGIN_STATIC_DECLARE(hls); GST_PLUGIN_STATIC_DECLARE(id3tag); GST_PLUGIN_STATIC_DECLARE(ivfparse); GST_PLUGIN_STATIC_DECLARE(midi); GST_PLUGIN_STATIC_DECLARE(mxf); GST_PLUGIN_STATIC_DECLARE(openh264); GST_PLUGIN_STATIC_DECLARE(opusparse); GST_PLUGIN_STATIC_DECLARE(pcapparse); GST_PLUGIN_STATIC_DECLARE(pnm); GST_PLUGIN_STATIC_DECLARE(rfbsrc); GST_PLUGIN_STATIC_DECLARE(siren); GST_PLUGIN_STATIC_DECLARE(smoothstreaming); GST_PLUGIN_STATIC_DECLARE(subenc); GST_PLUGIN_STATIC_DECLARE(videoparsersbad); GST_PLUGIN_STATIC_DECLARE(y4mdec); GST_PLUGIN_STATIC_DECLARE(jpegformat); GST_PLUGIN_STATIC_DECLARE(gdp); GST_PLUGIN_STATIC_DECLARE(rsvg); GST_PLUGIN_STATIC_DECLARE(openjpeg); GST_PLUGIN_STATIC_DECLARE(spandsp); GST_PLUGIN_STATIC_DECLARE(sbc); GST_PLUGIN_STATIC_DECLARE(zbar); GST_PLUGIN_STATIC_DECLARE(androidmedia); GST_PLUGIN_STATIC_DECLARE(cdg); GST_PLUGIN_STATIC_DECLARE(claxon); GST_PLUGIN_STATIC_DECLARE(dav1d); GST_PLUGIN_STATIC_DECLARE(rsclosedcaption); GST_PLUGIN_STATIC_DECLARE(ffv1); GST_PLUGIN_STATIC_DECLARE(fmp4); GST_PLUGIN_STATIC_DECLARE(mp4); GST_PLUGIN_STATIC_DECLARE(gif); GST_PLUGIN_STATIC_DECLARE(hsv); GST_PLUGIN_STATIC_DECLARE(lewton); GST_PLUGIN_STATIC_DECLARE(rav1e); GST_PLUGIN_STATIC_DECLARE(json); GST_PLUGIN_STATIC_DECLARE(rspng); GST_PLUGIN_STATIC_DECLARE(regex); GST_PLUGIN_STATIC_DECLARE(textwrap); GST_PLUGIN_STATIC_DECLARE(textahead); GST_PLUGIN_STATIC_DECLARE(asfmux); GST_PLUGIN_STATIC_DECLARE(dtsdec); GST_PLUGIN_STATIC_DECLARE(mpegpsdemux); GST_PLUGIN_STATIC_DECLARE(mpegpsmux); GST_PLUGIN_STATIC_DECLARE(mpegtsdemux); GST_PLUGIN_STATIC_DECLARE(mpegtsmux); GST_PLUGIN_STATIC_DECLARE(voaacenc); GST_PLUGIN_STATIC_DECLARE(a52dec); GST_PLUGIN_STATIC_DECLARE(asf); GST_PLUGIN_STATIC_DECLARE(dvdsub); GST_PLUGIN_STATIC_DECLARE(dvdlpcmdec); GST_PLUGIN_STATIC_DECLARE(realmedia); GST_PLUGIN_STATIC_DECLARE(x264); GST_PLUGIN_STATIC_DECLARE(libav); GST_PLUGIN_STATIC_DECLARE(tcp); GST_PLUGIN_STATIC_DECLARE(rtsp); GST_PLUGIN_STATIC_DECLARE(rtp); GST_PLUGIN_STATIC_DECLARE(rtpmanager); GST_PLUGIN_STATIC_DECLARE(soup); GST_PLUGIN_STATIC_DECLARE(udp); GST_PLUGIN_STATIC_DECLARE(dtls); GST_PLUGIN_STATIC_DECLARE(netsim); GST_PLUGIN_STATIC_DECLARE(rist); GST_PLUGIN_STATIC_DECLARE(rtmp2); GST_PLUGIN_STATIC_DECLARE(rtpmanagerbad); GST_PLUGIN_STATIC_DECLARE(rtponvif); GST_PLUGIN_STATIC_DECLARE(sctp); GST_PLUGIN_STATIC_DECLARE(sdpelem); GST_PLUGIN_STATIC_DECLARE(srtp); GST_PLUGIN_STATIC_DECLARE(srt); GST_PLUGIN_STATIC_DECLARE(webrtc); GST_PLUGIN_STATIC_DECLARE(nice); GST_PLUGIN_STATIC_DECLARE(rtspclientsink); GST_PLUGIN_STATIC_DECLARE(aws); GST_PLUGIN_STATIC_DECLARE(hlssink3); GST_PLUGIN_STATIC_DECLARE(ndi); GST_PLUGIN_STATIC_DECLARE(rsonvif); GST_PLUGIN_STATIC_DECLARE(raptorq); GST_PLUGIN_STATIC_DECLARE(reqwest); GST_PLUGIN_STATIC_DECLARE(rsrtp); GST_PLUGIN_STATIC_DECLARE(rsrtsp); GST_PLUGIN_STATIC_DECLARE(webrtchttp); GST_PLUGIN_STATIC_DECLARE(rswebrtc); GST_PLUGIN_STATIC_DECLARE(opengl); GST_PLUGIN_STATIC_DECLARE(ipcpipeline); GST_PLUGIN_STATIC_DECLARE(opensles); GST_PLUGIN_STATIC_DECLARE(encoding); GST_PLUGIN_STATIC_DECLARE(goom); GST_PLUGIN_STATIC_DECLARE(goom2k1); GST_PLUGIN_STATIC_DECLARE(audiovisualizers);

    /* Declaration of static gio modules */
    @G_IO_MODULES_DECLARE@

    /* Call this function to load GIO modules */
    static void
    gst_android_load_gio_modules (void)
    {
    GTlsBackend *backend;
    const gchar *ca_certs;

    @G_IO_MODULES_LOAD@

    ca_certs = g_getenv (“CA_CERTIFICATES”);

    backend = g_tls_backend_get_default ();
    if (backend && ca_certs) {
    GTlsDatabase *db;
    GError *error = NULL;

    db = g_tls_file_database_new (ca_certs, &error);
    if (db) {
      g_tls_backend_set_default_database (backend, db);
      g_object_unref (db);
    } else {
      g_warning ("Failed to create a database from file: %s",
          error ? error->message : "Unknown");
    }
    

    }
    }

    /* This is called by gst_init() */
    void
    gst_init_static_plugins (void)
    {
    @PLUGINS_REGISTRATION@
    gst_android_load_gio_modules ();
    }

    gstreamer-1.0-android-universal-1.24.1/arm64/share/gst-android/ndk-build/tools/windows/sed: can’t read |: Invalid argument
    gstreamer-1.0-android-universal-1.24.1/arm64/share/gst-android/ndk-build/tools/windows/sed: can’t read F:\Devtools\gstreamer-1.0-android-universal-1.24.1/arm64/share/gst-android/ndk-build/tools/windows/sed: No such file or directory
    gstreamer-1.0-android-universal-1.24.1/arm64/share/gst-android/ndk-build/tools/windows/sed: can’t read s/@PLUGINS_REGISTRATION@/ GST_PLUGIN_STATIC_REGISTER(coreelements); GST_PLUGIN_STATIC_REGISTER(coretracers); GST_PLUGIN_STATIC_REGISTER(adder); GST_PLUGIN_STATIC_REGISTER(app); GST_PLUGIN_STATIC_REGISTER(audioconvert); GST_PLUGIN_STATIC_REGISTER(audiomixer); GST_PLUGIN_STATIC_REGISTER(audiorate); GST_PLUGIN_STATIC_REGISTER(audioresample); GST_PLUGIN_STATIC_REGISTER(audiotestsrc); GST_PLUGIN_STATIC_REGISTER(compositor); GST_PLUGIN_STATIC_REGISTER(gio); GST_PLUGIN_STATIC_REGISTER(overlaycomposition); GST_PLUGIN_STATIC_REGISTER(pango); GST_PLUGIN_STATIC_REGISTER(rawparse); GST_PLUGIN_STATIC_REGISTER(typefindfunctions); GST_PLUGIN_STATIC_REGISTER(videoconvertscale); GST_PLUGIN_STATIC_REGISTER(videorate); GST_PLUGIN_STATIC_REGISTER(videotestsrc); GST_PLUGIN_STATIC_REGISTER(volume); GST_PLUGIN_STATIC_REGISTER(autodetect); GST_PLUGIN_STATIC_REGISTER(videofilter); GST_PLUGIN_STATIC_REGISTER(insertbin); GST_PLUGIN_STATIC_REGISTER(switchbin); GST_PLUGIN_STATIC_REGISTER(fallbackswitch); GST_PLUGIN_STATIC_REGISTER(livesync); GST_PLUGIN_STATIC_REGISTER(rsinter); GST_PLUGIN_STATIC_REGISTER(rstracers); GST_PLUGIN_STATIC_REGISTER(threadshare); GST_PLUGIN_STATIC_REGISTER(togglerecord); GST_PLUGIN_STATIC_REGISTER(alpha); GST_PLUGIN_STATIC_REGISTER(alphacolor); GST_PLUGIN_STATIC_REGISTER(audiofx); GST_PLUGIN_STATIC_REGISTER(cairo); GST_PLUGIN_STATIC_REGISTER(cutter); GST_PLUGIN_STATIC_REGISTER(debug); GST_PLUGIN_STATIC_REGISTER(deinterlace); GST_PLUGIN_STATIC_REGISTER(dtmf); GST_PLUGIN_STATIC_REGISTER(effectv); GST_PLUGIN_STATIC_REGISTER(equalizer); GST_PLUGIN_STATIC_REGISTER(gdkpixbuf); GST_PLUGIN_STATIC_REGISTER(imagefreeze); GST_PLUGIN_STATIC_REGISTER(interleave); GST_PLUGIN_STATIC_REGISTER(level); GST_PLUGIN_STATIC_REGISTER(multifile); GST_PLUGIN_STATIC_REGISTER(replaygain); GST_PLUGIN_STATIC_REGISTER(shapewipe); GST_PLUGIN_STATIC_REGISTER(smpte); GST_PLUGIN_STATIC_REGISTER(spectrum); GST_PLUGIN_STATIC_REGISTER(videobox); GST_PLUGIN_STATIC_REGISTER(videocrop); GST_PLUGIN_STATIC_REGISTER(videomixer); GST_PLUGIN_STATIC_REGISTER(accurip); GST_PLUGIN_STATIC_REGISTER(aes); GST_PLUGIN_STATIC_REGISTER(aiff); GST_PLUGIN_STATIC_REGISTER(audiobuffersplit); GST_PLUGIN_STATIC_REGISTER(audiofxbad); GST_PLUGIN_STATIC_REGISTER(audiolatency); GST_PLUGIN_STATIC_REGISTER(audiomixmatrix); GST_PLUGIN_STATIC_REGISTER(autoconvert); GST_PLUGIN_STATIC_REGISTER(bayer); GST_PLUGIN_STATIC_REGISTER(coloreffects); GST_PLUGIN_STATIC_REGISTER(closedcaption); GST_PLUGIN_STATIC_REGISTER(debugutilsbad); GST_PLUGIN_STATIC_REGISTER(fieldanalysis); GST_PLUGIN_STATIC_REGISTER(freeverb); GST_PLUGIN_STATIC_REGISTER(frei0r); GST_PLUGIN_STATIC_REGISTER(gaudieffects); GST_PLUGIN_STATIC_REGISTER(geometrictransform); GST_PLUGIN_STATIC_REGISTER(inter); GST_PLUGIN_STATIC_REGISTER(interlace); GST_PLUGIN_STATIC_REGISTER(isac); GST_PLUGIN_STATIC_REGISTER(ivtc); GST_PLUGIN_STATIC_REGISTER(legacyrawparse); GST_PLUGIN_STATIC_REGISTER(proxy); GST_PLUGIN_STATIC_REGISTER(removesilence); GST_PLUGIN_STATIC_REGISTER(segmentclip); GST_PLUGIN_STATIC_REGISTER(smooth); GST_PLUGIN_STATIC_REGISTER(speed); GST_PLUGIN_STATIC_REGISTER(soundtouch); GST_PLUGIN_STATIC_REGISTER(timecode); GST_PLUGIN_STATIC_REGISTER(videofiltersbad); GST_PLUGIN_STATIC_REGISTER(videoframe_audiolevel); GST_PLUGIN_STATIC_REGISTER(videosignal); GST_PLUGIN_STATIC_REGISTER(webrtcdsp); GST_PLUGIN_STATIC_REGISTER(ladspa); GST_PLUGIN_STATIC_REGISTER(rsaudiofx); GST_PLUGIN_STATIC_REGISTER(rsvideofx); GST_PLUGIN_STATIC_REGISTER(playback); GST_PLUGIN_STATIC_REGISTER(uriplaylistbin); GST_PLUGIN_STATIC_REGISTER(subparse); GST_PLUGIN_STATIC_REGISTER(ogg); GST_PLUGIN_STATIC_REGISTER(theora); GST_PLUGIN_STATIC_REGISTER(vorbis); GST_PLUGIN_STATIC_REGISTER(opus); GST_PLUGIN_STATIC_REGISTER(adaptivedemux2); GST_PLUGIN_STATIC_REGISTER(alaw); GST_PLUGIN_STATIC_REGISTER(amrnb); GST_PLUGIN_STATIC_REGISTER(amrwbdec); GST_PLUGIN_STATIC_REGISTER(apetag); GST_PLUGIN_STATIC_REGISTER(audioparsers); GST_PLUGIN_STATIC_REGISTER(auparse); GST_PLUGIN_STATIC_REGISTER(avi); GST_PLUGIN_STATIC_REGISTER(dv); GST_PLUGIN_STATIC_REGISTER(flac); GST_PLUGIN_STATIC_REGISTER(flv); GST_PLUGIN_STATIC_REGISTER(flxdec); GST_PLUGIN_STATIC_REGISTER(icydemux); GST_PLUGIN_STATIC_REGISTER(id3demux); GST_PLUGIN_STATIC_REGISTER(isomp4); GST_PLUGIN_STATIC_REGISTER(jpeg); GST_PLUGIN_STATIC_REGISTER(lame); GST_PLUGIN_STATIC_REGISTER(matroska); GST_PLUGIN_STATIC_REGISTER(mpg123); GST_PLUGIN_STATIC_REGISTER(mulaw); GST_PLUGIN_STATIC_REGISTER(multipart); GST_PLUGIN_STATIC_REGISTER(png); GST_PLUGIN_STATIC_REGISTER(speex); GST_PLUGIN_STATIC_REGISTER(taglib); GST_PLUGIN_STATIC_REGISTER(vpx); GST_PLUGIN_STATIC_REGISTER(wavenc); GST_PLUGIN_STATIC_REGISTER(wavpack); GST_PLUGIN_STATIC_REGISTER(wavparse); GST_PLUGIN_STATIC_REGISTER(xingmux); GST_PLUGIN_STATIC_REGISTER(y4menc); GST_PLUGIN_STATIC_REGISTER(adpcmdec); GST_PLUGIN_STATIC_REGISTER(adpcmenc); GST_PLUGIN_STATIC_REGISTER(assrender); GST_PLUGIN_STATIC_REGISTER(bz2); GST_PLUGIN_STATIC_REGISTER(codecalpha); GST_PLUGIN_STATIC_REGISTER(codectimestamper); GST_PLUGIN_STATIC_REGISTER(dash); GST_PLUGIN_STATIC_REGISTER(dvbsubenc); GST_PLUGIN_STATIC_REGISTER(dvbsuboverlay); GST_PLUGIN_STATIC_REGISTER(dvdspu); GST_PLUGIN_STATIC_REGISTER(hls); GST_PLUGIN_STATIC_REGISTER(id3tag); GST_PLUGIN_STATIC_REGISTER(ivfparse); GST_PLUGIN_STATIC_REGISTER(midi); GST_PLUGIN_STATIC_REGISTER(mxf); GST_PLUGIN_STATIC_REGISTER(openh264); GST_PLUGIN_STATIC_REGISTER(opusparse); GST_PLUGIN_STATIC_REGISTER(pcapparse); GST_PLUGIN_STATIC_REGISTER(pnm); GST_PLUGIN_STATIC_REGISTER(rfbsrc); GST_PLUGIN_STATIC_REGISTER(siren); GST_PLUGIN_STATIC_REGISTER(smoothstreaming); GST_PLUGIN_STATIC_REGISTER(subenc); GST_PLUGIN_STATIC_REGISTER(videoparsersbad); GST_PLUGIN_STATIC_REGISTER(y4mdec); GST_PLUGIN_STATIC_REGISTER(jpegformat); GST_PLUGIN_STATIC_REGISTER(gdp); GST_PLUGIN_STATIC_REGISTER(rsvg); GST_PLUGIN_STATIC_REGISTER(openjpeg); GST_PLUGIN_STATIC_REGISTER(spandsp); GST_PLUGIN_STATIC_REGISTER(sbc); GST_PLUGIN_STATIC_REGISTER(zbar); GST_PLUGIN_STATIC_REGISTER(androidmedia); GST_PLUGIN_STATIC_REGISTER(cdg); GST_PLUGIN_STATIC_REGISTER(claxon); GST_PLUGIN_STATIC_REGISTER(dav1d); GST_PLUGIN_STATIC_REGISTER(rsclosedcaption); GST_PLUGIN_STATIC_REGISTER(ffv1); GST_PLUGIN_STATIC_REGISTER(fmp4); GST_PLUGIN_STATIC_REGISTER(mp4); GST_PLUGIN_STATIC_REGISTER(gif); GST_PLUGIN_STATIC_REGISTER(hsv); GST_PLUGIN_STATIC_REGISTER(lewton); GST_PLUGIN_STATIC_REGISTER(rav1e); GST_PLUGIN_STATIC_REGISTER(json); GST_PLUGIN_STATIC_REGISTER(rspng); GST_PLUGIN_STATIC_REGISTER(regex); GST_PLUGIN_STATIC_REGISTER(textwrap); GST_PLUGIN_STATIC_REGISTER(textahead); GST_PLUGIN_STATIC_REGISTER(asfmux); GST_PLUGIN_STATIC_REGISTER(dtsdec); GST_PLUGIN_STATIC_REGISTER(mpegpsdemux); GST_PLUGIN_STATIC_REGISTER(mpegpsmux); GST_PLUGIN_STATIC_REGISTER(mpegtsdemux); GST_PLUGIN_STATIC_REGISTER(mpegtsmux); GST_PLUGIN_STATIC_REGISTER(voaacenc); GST_PLUGIN_STATIC_REGISTER(a52dec); GST_PLUGIN_STATIC_REGISTER(asf); GST_PLUGIN_STATIC_REGISTER(dvdsub); GST_PLUGIN_STATIC_REGISTER(dvdlpcmdec); GST_PLUGIN_STATIC_REGISTER(realmedia); GST_PLUGIN_STATIC_REGISTER(x264); GST_PLUGIN_STATIC_REGISTER(libav); GST_PLUGIN_STATIC_REGISTER(tcp); GST_PLUGIN_STATIC_REGISTER(rtsp); GST_PLUGIN_STATIC_REGISTER(rtp); GST_PLUGIN_STATIC_REGISTER(rtpmanager); GST_PLUGIN_STATIC_REGISTER(soup); GST_PLUGIN_STATIC_REGISTER(udp); GST_PLUGIN_STATIC_REGISTER(dtls); GST_PLUGIN_STATIC_REGISTER(netsim); GST_PLUGIN_STATIC_REGISTER(rist); GST_PLUGIN_STATIC_REGISTER(rtmp2); GST_PLUGIN_STATIC_REGISTER(rtpmanagerbad); GST_PLUGIN_STATIC_REGISTER(rtponvif); GST_PLUGIN_STATIC_REGISTER(sctp); GST_PLUGIN_STATIC_REGISTER(sdpelem); GST_PLUGIN_STATIC_REGISTER(srtp); GST_PLUGIN_STATIC_REGISTER(srt); GST_PLUGIN_STATIC_REGISTER(webrtc); GST_PLUGIN_STATIC_REGISTER(nice); GST_PLUGIN_STATIC_REGISTER(rtspclientsink); GST_PLUGIN_STATIC_REGISTER(aws); GST_PLUGIN_STATIC_REGISTER(hlssink3); GST_PLUGIN_STATIC_REGISTER(ndi); GST_PLUGIN_STATIC_REGISTER(rsonvif); GST_PLUGIN_STATIC_REGISTER(raptorq); GST_PLUGIN_STATIC_REGISTER(reqwest); GST_PLUGIN_STATIC_REGISTER(rsrtp); GST_PLUGIN_STATIC_REGISTER(rsrtsp); GST_PLUGIN_STATIC_REGISTER(webrtchttp); GST_PLUGIN_STATIC_REGISTER(rswebrtc); GST_PLUGIN_STATIC_REGISTER(opengl); GST_PLUGIN_STATIC_REGISTER(ipcpipeline); GST_PLUGIN_STATIC_REGISTER(opensles); GST_PLUGIN_STATIC_REGISTER(encoding); GST_PLUGIN_STATIC_REGISTER(goom); GST_PLUGIN_STATIC_REGISTER(goom2k1); GST_PLUGIN_STATIC_REGISTER(audiovisualizers);/g: No such file or directory
    gstreamer-1.0-android-universal-1.24.1/arm64/share/gst-android/ndk-build/tools/windows/sed: can’t read |: Invalid argument
    gstreamer-1.0-android-universal-1.24.1/arm64/share/gst-android/ndk-build/tools/windows/sed: can’t read F:\Devtools\gstreamer-1.0-android-universal-1.24.1/arm64/share/gst-android/ndk-build/tools/windows/sed: No such file or directory
    gstreamer-1.0-android-universal-1.24.1/arm64/share/gst-android/ndk-build/tools/windows/sed: can’t read s/@G_IO_MODULES_LOAD@/ GST_G_IO_MODULE_LOAD(openssl);/g: No such file or directory
    gstreamer-1.0-android-universal-1.24.1/arm64/share/gst-android/ndk-build/tools/windows/sed: can’t read |: Invalid argument
    gstreamer-1.0-android-universal-1.24.1/arm64/share/gst-android/ndk-build/tools/windows/sed: can’t read F:\Devtools\gstreamer-1.0-android-universal-1.24.1/arm64/share/gst-android/ndk-build/tools/windows/sed: No such file or directory
    gstreamer-1.0-android-universal-1.24.1/arm64/share/gst-android/ndk-build/tools/windows/sed: can’t read s/@G_IO_MODULES_DECLARE@/ GST_G_IO_MODULE_DECLARE(openssl);/g: No such file or directory
    gstreamer-1.0-android-universal-1.24.1/arm64/share/gst-android/ndk-build/tools/windows/sed: can’t read >: Invalid argument
    gstreamer-1.0-android-universal-1.24.1/arm64/share/gst-android/ndk-build/tools/windows/sed: can’t read gst-android-build/arm64-v8a/gstreamer_android.c: No such file or directory
    make: *** [F:\Devtools\gstreamer-1.0-android-universal-1.24.1/arm64/share/gst-android/ndk-build//gstreamer-1.0.mk:215: genstatic_arm64-v8a] Error 2

  • Try:
    Run with --stacktrace option to get the stack trace.
    Run with --info or --debug option to get more log output.
    Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use ‘–warning-mode all’ to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See Command-Line Interface

BUILD FAILED in 21s
3 actionable tasks: 2 executed, 1 up-to-date

We used the same guide from Installing for Android development (gstreamer.freedesktop.org). But I think this guide is outdated.

How can I fix the build, please?

Update:
I tried build android tutorials on Ubuntu LTS v22. The build was success, but when deployed to smart phone, the android app freezed.

  • gstreamer-1.0-android-universal-1.24.1
  • android ndk 25c (25.2.9519653)
  • gradle-7.3.3-all
  • Ubuntu: 22.04
  • Device: Samsung S22
E  Failed to open APK '/data/app/~~DMnzdQrGgYoMVn5mnSazHA==/com.mml.dummyapp_kotlin-7QhJglvK4ZbYX3k1LhSksg==/base.apk' I/O error
2022-09-26 16:12:40.817  8427-8606  android.vendin   pid-8427  E  Failed to open APK '/data/app/~~DMnzdQrGgYoMVn5mnSazHA==/com.mml.dummyapp_kotlin-7QhJglvK4ZbYX3k1LhSksg==/base.apk' I/O error
2022-09-26 16:12:40.821  8427-8606  ResourcesManager pid-8427  E  failed to add asset path '/data/app/~~DMnzdQrGgYoMVn5mnSazHA==/com.mml.dummyapp_kotlin-7QhJglvK4ZbYX3k1LhSksg==/base.apk'
java.io.IOException: Failed to load asset path /data/app/~~DMnzdQrGgYoMVn5mnSazHA==/com.mml.dummyapp_kotlin-7QhJglvK4ZbYX3k1LhSksg==/base.apk
 at android.content.res.ApkAssets.nativeLoad(Native Method)
 at android.content.res.ApkAssets.<init>(ApkAssets.java:291)
 at android.content.res.ApkAssets.loadFromPath(ApkAssets.java:140)
 at android.app.ResourcesManager.loadApkAssets(ResourcesManager.java:374)
 at android.app.ResourcesManager.access$000(ResourcesManager.java:67)
 at android.app.ResourcesManager$ApkAssetsSupplier.load(ResourcesManager.java:146)
 at android.app.ResourcesManager.createAssetManager(ResourcesManager.java:451)
 at android.app.ResourcesManager.createResourcesImpl(ResourcesManager.java:538)
 at android.app.ResourcesManager.findOrCreateResourcesImplForKeyLocked(ResourcesManager.java:587)
 at android.app.ResourcesManager.createResources(ResourcesManager.java:866)
 at android.app.ResourcesManager.getResources(ResourcesManager.java:938)
 at android.app.ActivityThread.getTopLevelResources(ActivityThread.java:2225)
 at android.app.ApplicationPackageManager.getResourcesForApplication(ApplicationPackageManager.java:1672)
 at android.app.ApplicationPackageManager.getDrawable(ApplicationPackageManager.java:1437)
 at android.app.ApplicationPackageManager.loadUnbadgedItemIcon(ApplicationPackageManager.java:2950)
 at android.app.ApplicationPackageManager.loadItemIcon(ApplicationPackageManager.java:2929)
 at android.content.pm.PackageItemInfo.loadIcon(PackageItemInfo.java:271)
 at android.app.ApplicationPackageManager.getApplicationIcon(ApplicationPackageManager.java:1501)
 at fva.a(PG:5)
 at fvg.l(PG:1)
 at qt.aci(PG:46)
 at fuj.k(PG:3)
 at fua.f(PG:3)
 at fua.i(PG:3)
 at fve.i(Unknown Source:0)
 at fvh.d(Unknown Source:10)
 at fvh.e(PG:3)
 at ftr.apply(PG:168)
 at ahmn.e(PG:2)
 at ahmo.run(PG:9)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
 at jjd.run(PG:17)
 at java.lang.Thread.run(Thread.java:923)
2022-09-26 16:14:08.111 13577-13577 studio.deploy  pid-13577   E  InstallClient: Could not copy '/data/local/tmp/.studio/tmp/31c79e06/install_server' to '/data/data/com.mml.dummyapp_kotlin/code_cache/install_server-31c79e06: out='', err='run-as: unknown package: com.mml.dummyapp_kotlin
run-as: unknown package: com.mml.dummyapp_kotlin                     '
2022-09-26 16:14:08.129 13577-13577 studio.deploy  pid-13577     E  run-as: unknown package: com.mml.dummyapp_kotlin
2022-09-26 16:14:08.158 13577-13577 studio.deploy  pid-13577     E  Could not get package user id: run-as: unknown package: com.mml.dummyapp_kotlin
2022-09-26 16:14:08.181 13577-13577 studio.deploy  pid-13577     E  Could not find apks for this package: com.mml.dummyapp_kotlin

facing the same issue in windows. i have submitted a bug on

1 Like