Hi,
I am quoting below from similar issue created.
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.
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:
Run the app on an android device by executing react-native run-android.
This is the error message:
* What went wrong:
A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugApk'.
> A problem occurred configuring project ':react-native-orientation'.
> The SDK Build Tools revision (23.0.1) is too low for project ':react-native-orientation'. Minimum required is 25.0.0
Solution provided here potential solution suggested
@yamill @stoneman1 Anyone else seeing this issue?
@abartolo Currently react-native-orientation is no compatible with react-native 0.56, pull-request #312 should solve the problem.
@andrerfneves Thanks I will point until its merged.
Until #312 is merged, you can add this to the bottom of your android/build.gradle file, which will force this module to be compiled with the specified SDK version:
subprojects {
afterEvaluate {project ->
if (project.hasProperty("android")) {
android {
compileSdkVersion 26
buildToolsVersion '26.0.3'
}
}
}
}
When will this be fixed?
This repo dead , use the fork https://github.com/wonday/react-native-orientation-locker
Most helpful comment
Until #312 is merged, you can add this to the bottom of your
android/build.gradlefile, which will force this module to be compiled with the specified SDK version: