Giter Club home page Giter Club logo

Comments (7)

bryancisler avatar bryancisler commented on June 13, 2024 9

Fork and clone the project. Go to the android/src/main/java/com/createthumbnail/CreateThumbnailModule.hava file.

Go to line 191 and replace the code

   Bitmap image = retriever.getFrameAtTime(time * 1000, MediaMetadataRetriever.OPTION_CLOSEST_SYNC);
      retriever.release();
      if (image == null) {
          throw new IllegalStateException("File doesn't exist or not supported");
      }
      return image; 

to this

 Bitmap image = retriever.getFrameAtTime(time * 1000, MediaMetadataRetriever.OPTION_CLOSEST_SYNC);
try {
    retriever.release();
} catch (Exception e) { // Catching Exception class as it's unclear what specific exception you're facing
    // Handle or log the exception here
    e.printStackTrace();
}

if (image == null) {
    throw new IllegalStateException("File doesn't exist or not supported");
}
return image;

from react-native-create-thumbnail.

AlekoG avatar AlekoG commented on June 13, 2024 8

Same thing:
Task :react-native-create-thumbnail:compileDebugJavaWithJavac FAILED

After upgrading to 33 its not building.

from react-native-create-thumbnail.

humanzai avatar humanzai commented on June 13, 2024 2

Opened a PR #100 with a fix
Relates to #96

from react-native-create-thumbnail.

joaohedy avatar joaohedy commented on June 13, 2024

Same issue.
Using React Native 0.70.6
Tried the previous stable version and now 2.0.0-rc.2
I managed to return to 31 and it worked fine. but other libraries require 33.

So If no solution is available, I need to find another library that works. :-(

from react-native-create-thumbnail.

padulamathias avatar padulamathias commented on June 13, 2024

Hello,

From Aug 31 API 33 is the minimum supported for sending updates to the Play Store.

I am having the same issue using the last version of react-native-create-thumbnail.

React Native: 0.71.6

from react-native-create-thumbnail.

xgenem avatar xgenem commented on June 13, 2024

Using the version 2.0.0-rc.2. Problem still persists.

from react-native-create-thumbnail.

souvik-ghosh avatar souvik-ghosh commented on June 13, 2024

duplicate of #76. fixed in the latest version

from react-native-create-thumbnail.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.