我使用带有nativescript-videorecorder的记录功能得到未定义的错误“ FileProvider”

我需要帮助。

TypeError: Cannot read property 'FileProvider' of undefined

当我尝试记录时出现错误。

  • 代码:
const options: VideoRecorderOptions = {
            hd: true,saveToGallery: true
        }
        const videorecorder = new VideoRecorder(options)
        videorecorder.record().then((data) => {
            console.log(data.file)
        }).catch((err) => {
            console.log(err)
        })
speedstar119 回答:我使用带有nativescript-videorecorder的记录功能得到未定义的错误“ FileProvider”

这似乎是Android X兼容性问题,插件作者将不得不更新插件以支持{N} 6.x及更高版本。

android.support.v4.content.FileProvider现在为androidx.core.content.FileProvider。您可以更新代码,然后在本地进行编译。

本文链接:https://www.f2er.com/3169403.html

大家都在问