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.

[Android] <Button /> crashing the app for Android API 16

See original GitHub issue

Description

Using the button component crashes the app for android api 16.

React Native version:

System:
    OS: macOS 10.15.6
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
    Memory: 1.52 GB / 16.00 GB
    Shell: 5.0.11 - /usr/local/bin/bash
  Binaries:
    Node: 14.7.0 - /usr/local/bin/node
    Yarn: 1.22.4 - /usr/local/bin/yarn
    npm: 6.14.7 - /usr/local/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.10.0. - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: iOS 13.6, DriverKit 19.0, macOS 10.15, tvOS 13.4, watchOS 6.2
    Android SDK:
      API Levels: 23, 26, 27, 28, 29, 30
      Build Tools: 28.0.3, 29.0.2, 30.0.1
      System Images: android-16 | Google APIs Intel x86 Atom, android-29 | Google APIs Intel x86 Atom, android-30 | Google Play Intel x86 Atom
      Android NDK: Not Found
  IDEs:
    Android Studio: 4.0.1 4.0.1
    Xcode: 11.6/11E708 - /usr/bin/xcodebuild
  Languages:
    Java: 1.8.0_222 - /Users/akgunfu/.jenv/shims/javac
    Python: 2.7.16 - /usr/bin/python
  npmPackages:
    @react-native-community/cli: Not Found
    react: 16.13.1 => 16.13.1 
    react-native: 0.63.2 => 0.63.2 
  npmGlobalPackages:
    *react-native*: Not Found

Steps To Reproduce

  1. Create a test app npx react-native init Test
  2. Modify App.js like following const App: () => React$Node = () => { return <Button title={'test'}/> };

Expected Results

Should render the button.

Snack, code example, screenshot, or link to a repository:

Screen Shot 2020-08-24 at 18 44 22

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
safaiyehcommented, Oct 26, 2020

React Native master branch has been updated to only support API >= 21 closing as this will not be supported anymore

0reactions
safaiyehcommented, Aug 25, 2020

@gedeagas appreciate the PR!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Crashes - Android Developers
An app that is written using Java or Kotlin crashes if it throws an unhandled exception, represented by the Throwable class.
Read more >
Android app crashes on click of button in Android Studio
First - The cause of crashes, you will be able to see it in the tab of Log. Second - (You did not...
Read more >
How to Resolve App Crashes in Android Studio?
Solutions to fix App Crash · 1. Observe the App Crash · 2. Find the Stack Trace · 3. Investigation Techniques · 4....
Read more >
Release Notes - Helpshift for Android - Developer Guide
Fixed a crash caused by PendingIntent flag requirements expected on apps targeting Android 12 (API level 31). v7.11.0. September 2, 2021. Added support...
Read more >
AVD and SDK manager tools are crashing on linux [36991100]
4) When you press the OK button, the JVM crashes and the windows go away. ... Default location: /home/zeigler/dev/android-sdk-linux/tools/core or core.3128
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