是否仍然可以在Nativescript中从外部存储SD卡选择图像?

是否仍然可以在Nativescript中从外部存储SD卡选择图像?,nativescript,nativescript-angular,imagepicker,Nativescript,Nativescript Angular,Imagepicker,我使用Nativescript imagepicker插件在android中选择图像,该插件在从内部存储选择图像时效果很好,但在从外部存储SD卡选择图像时返回空字符串,我到处搜索解决方案、解决方法甚至其他插件,但仍然不走运。是否仍然可以在Nativescript中从外部存储SD卡选择图像 selectImage() { let that = this; let context = imagepicker.create({ mode

我使用Nativescript imagepicker插件在android中选择图像,该插件在从内部存储选择图像时效果很好,但在从外部存储SD卡选择图像时返回空字符串,我到处搜索解决方案、解决方法甚至其他插件,但仍然不走运。是否仍然可以在Nativescript中从外部存储SD卡选择图像

selectImage() {
        let that = this;
    
        let context = imagepicker.create({
            mode: "single" // use "multiple" for multiple selection
        });
    
        context
            .authorize()
            .then(function () {                    
                return context.present();
            })
            .then(function (selection) {
                if (imageNumber == 1)
                    that.imageOneSrc = selection.length > 0 ? selection[0]['_android'] : "~/app/images/camera.png";
                
                selection.forEach(function (element) {
                    element.options.width = that.secondaryImageWidth;
                    element.options.height = that.secondaryImageHeight;
                });
    
            }).catch(function (e) {
                // process error                    
                    that.imageOneSrc = "~/app/images/camera.png";                    
            });
    }