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.

RN Keep Awake is not compatible with React Native 0.56 (Android)

See original GitHub issue

This package will not compile with React Native 0.56. Due to Google’s mandate to target SDK 26 by 1 August 2018, React Native upgraded their target SDK. This is change in not compatible with react-native-keep-awake.

New apps will not be able to submit to the Google Play store as of 1 August 2018 unless they use React Natvie 0.56, so a fix to this issue is time sensitive.

Replication:

  1. Create a new react native app using react-native init
  2. Install react-native-keep-awake by following the instructions in this repo.
  3. Run the app on an android device by executing react-native run-android.
  4. This is the error message:
A problem occurred configuring project ':react-native-keep-awake'.
      > The SDK Build Tools revision (23.0.1) is too low for project ':react-native-keep-awake'. Minimum required is 25.0.0

package.json:

"dependencies": {
    "react": "16.4.1",
    "react-native": "0.56.0",
    "react-native-keep-awake": "^3.0.1"
  },

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
abartolocommented, Jul 14, 2018

@corbt Updated code locally to reflect merge request and everything worked!

@taranda Nice work!

1reaction
arpitjacobcommented, Jul 13, 2018

@corbt YES Works great, thanks 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

react-native-keep-awake - npm
Keep the screen from going to sleep. iOS and Android.. Latest version: 4.0.0, last published: 4 years ago.
Read more >
Upgrading to new versions - React Native
Upgrading to new versions of React Native will give you access to more APIs, views, developer tools and other goodies.
Read more >
KeepAwake - Expo Documentation
Expo is an open-source platform for making universal native apps for Android, iOS, and the web with JavaScript and React.
Read more >
Keep the Screen Awake/On for the Infinite Time in React Native
Example to keep screen awake/on for the infinite time in React Native using react-native-keep-awake library for Android and IOS both..
Read more >
React Native version mismatch - Stack Overflow
Rebuild the app ( react-native run-android or react-native run-ios ). Share.
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