Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error in ANDROID SDK 33 #98

Closed
hdh0319 opened this issue Aug 29, 2023 · 7 comments
Closed

Build error in ANDROID SDK 33 #98

hdh0319 opened this issue Aug 29, 2023 · 7 comments
Labels
bug Something isn't working

Comments

@hdh0319
Copy link

hdh0319 commented Aug 29, 2023

This pakcage support Android sdk 33? An error occurs during build.

@hdh0319 hdh0319 added the bug Something isn't working label Aug 29, 2023
@AlekoG
Copy link

AlekoG commented Aug 30, 2023

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

After upgrading to 33 its not building.

@joaohedy
Copy link

joaohedy commented Aug 31, 2023

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. :-(

@bryancisler
Copy link

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;

@padulamathias
Copy link

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

@humanzai
Copy link

humanzai commented Sep 6, 2023

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

@xgenem
Copy link

xgenem commented Nov 20, 2023

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

@souvik-ghosh
Copy link
Owner

duplicate of #76. fixed in the latest version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

8 participants