React-native-orientation: RN Orientation is not compatible with React Native 0.56 (Android)

Created on 16 Jul 2018  路  6Comments  路  Source: yamill/react-native-orientation

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

Most helpful comment

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'
            }
        }
    }
}

All 6 comments

@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?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

magicspon picture magicspon  路  7Comments

RafaelHovhannisyan picture RafaelHovhannisyan  路  3Comments

Mactub07 picture Mactub07  路  7Comments

sergio-solnet picture sergio-solnet  路  9Comments

robbiemoore picture robbiemoore  路  3Comments