I am trying to load thumbnail in android app using Glide but it is showing blank white thumbnail. I am using the following dependencies
implementation 'com.github.bumptech.glide:glide:4.11.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
and the buildsript in build.gradle(project) is as
buildscript {
repositories {
google()
jcenter()
}
In the adapter class in onBindViewHolder the Glide is used as follows
Glide.with(mContext).load(new File(videoFiles.get(position).getPath())).into(holder.thumbnail);
In Logcat it is showing this
There was 1 cause:
java.io.IOException(File unsuitable for memory mapping)
call GlideException#logRootCauses(String) for more detail
Cause (1 of 1): class java.io.IOException: File unsuitable for memory mapping
Cause (2 of 3): class com.bumptech.glide.load.engine.GlideException: Fetching data failed, class java.io.InputStream, LOCAL
There was 1 cause:
java.io.FileNotFoundException(Lec.mp4: open failed: ENOENT (No such file or directory))
call GlideException#logRootCauses(String) for more detail
Cause (1 of 1):
class java.io.FileNotFoundException: Lec.mp4: open failed: ENOENT (No such file or directory)
Cause (3 of 3): class com.bumptech.glide.load.engine.GlideException: Fetching data failed, class android.os.ParcelFileDescriptor, LOCAL