Skip to content

Fatal Crash: Expected Android API level 21+ but was 30 #30101

Closed

Description

@lorenc-tomasz

Hi,
when I was targeting the SDK 30, i got Fatal Crash: Expected Android API level 21+ but was 30.

React-Native: 0.63.3

The workaround was to use recet okhttp. implementation("com.squareup.okhttp3:okhttp:4.9.0")

Activity

  1. added
    Platform: Android
    Needs: Environment Info
    and removed on Oct 2, 2020
  2. github-actions commented on Oct 2, 2020

    @github-actions
    ⚠️ Missing Environment Information
    ℹ️ Your issue may be missing information about your development environment. You can obtain the missing information by running react-native info in a console.
  3. lorenc-tomasz commented on Oct 3, 2020

    @lorenc-tomasz
    Author

    The above issue It's fixed from okhttp 3.14.7

    React Native now uses the OKHTTP_VERSION=3.12.12 that will crash on Android 11.

    Look into changelog here: https://square.github.io/okhttp/changelog_3x/#version-3147

  4. added
    Needs: Attention
    and removed on Oct 3, 2020
  5. lorenc-tomasz commented on Oct 3, 2020

    @lorenc-tomasz
    Author

    @grabbou Could you please look into that, please?

  6. safaiyeh commented on Oct 3, 2020

    @safaiyeh
    Contributor

    Hey @lorenc-tomasz thanks for the issue! I'll submit a PR for this

  7. removed
    Needs: Attention
    Needs: Environment Info
    on Oct 3, 2020
  8. lorenc-tomasz commented on Oct 3, 2020

    @lorenc-tomasz
    Author

    Thank you :)

  9. safaiyeh commented on Oct 3, 2020

    @safaiyeh
    Contributor
  10. fabOnReact commented on Mar 4, 2021

    @fabOnReact
    Contributor

    react native 0.63.4 bumped the okhttp dependency

    https://github.com/react-native-community/releases/blob/master/CHANGELOG.md#v0634
    #29741
    #30104 (comment)

    This issue is solved

  11. lorenc-tomasz commented on Mar 4, 2021

    @lorenc-tomasz
    Author

    Still I had to bump version to 3.14.7 to resolve the issue, but based on master it can be marked as resolved.

  12. locked as resolved and limited conversation to collaborators on Mar 4, 2022
  13. added
    Resolution: Locked
    on Mar 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Platform: AndroidResolution: Locked

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions