question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[🐛] Activity error

See original GitHub issue

Description

When I try to call launchCamera, I get an error. If I pass an option object as argument, it returns Activity error in response.errorMessage. If I don’t pass an option object, it returns Attempt to invoke interface method 'void.facebook.react.bridge.Callback.invoke(java.lang.Object[])' on a null object reference. But launchMediaLibrary works as expected.

How to repeat issue and example

  • calls launchCamera with or without options object

Solution

No idea.

Additional Information

  • Image Picker version: 3.1.4
  • React Native version: 0.61.5
  • Platform: iOS and Android
  • Development Operating System: MacOS

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
thiago-santscommented, Apr 27, 2021

I think there’s something to do with this issue, but I’m not sure.

1reaction
cody-wingertcommented, Apr 27, 2021

I had to downgrade the compileSdkVersion and targetSdkVersion from 30 to 29 and the errors magically stopped. I tested on a physical device - Google Pixel 2. Upgrading the buildToolsVersion to 31 did not work for me. Camera and Gallery are both working fine now.

Before

ext { buildToolsVersion = “30.0.3” minSdkVersion = 21 compileSdkVersion = 30 targetSdkVersion = 30 }

After

ext { buildToolsVersion = “30.0.3” minSdkVersion = 21 compileSdkVersion = 29 targetSdkVersion = 29 }

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error type 3 Error: Activity class {} does not exist - Stack Overflow
I faced a similar problem after refactoring. This is what i did to resolve this issue: Cleaned the Project; Deleted the Build directory;...
Read more >
Activity Error - Bugs and Support - Zwift Forums
Hi, i don't know if i'm right here … i'm new to Zwift. Today i made the “PACK Social Ride + San Luca...
Read more >
Fixing a bug in our Account Activity API - Twitter Help Center
We recently discovered a bug in our Account Activity API (AAAPI). ... AAAPI to access your account, the bug may have impacted your...
Read more >
Android Studio 4.0.1 Weird Bug: Launcher Activity Does Not ...
Unable to start the launcher activity. One workaround is to uninstall the app COMPLETELY from the device running below command line on terminal:....
Read more >
"Activity Monitor Job". java.lang.NullPointerException - Bugs
Build Identifier: helios service release 2 all day, this message appear me while working An internal error occurred during: "Activity Monitor Job".
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found