RN Keep Awake is not compatible with React Native 0.56 (Android)
See original GitHub issueThis 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:
- Create a new react native app using
react-native init
- Install react-native-keep-awake by following the instructions in this repo.
- Run the app on an android device by executing
react-native run-android
. - 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:
- Created 5 years ago
- Reactions:4
- Comments:12 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@corbt Updated code locally to reflect merge request and everything worked!
@taranda Nice work!
@corbt YES Works great, thanks 👍