Adding React-Native-Admob in React-Native

I am trying to add React-Native-Admob 2.0.0-beta.5 into React-Native v0.55.4 for Android.

compileSdkVersion =26 
buildToolsVersion ="27.0.3"
targetSdkVersion = 26
supportLibVersion = "26.1.0"
minSdkVersion = 18

And React-Native-Admob has

compileSdkVersion 23
buildToolsVersion "23.0.1"
defaultConfig {
     minSdkVersion 16
     targetSdkVersion 22
    }

And when i Compile the error Exception occur

The SDK Build Tools revision (23.0.1) is too low for project ':react-native-admob'. Minimum required is 25.0.0

I can't downgrade my project's SDK, other package uses that SDK.

You don't need to downgrade, you need to upgrade. Dependencies were probably added in the SDK that admob relies on. You can download the specified version packages for the SDK through Android studio and then set your SDK version in the file to the appropriate version necessary for admob.

Edit I see that you are saying that admob is using version 23. You may need to submit an issue with them on GitHub for this.

Comments

Popular posts from this blog

Meaning of `{}` for return expression

Get current scroll position of ScrollView in React Native

flutter websocket connection issue