invertase / react-native-google-mobile-ads

React Native Google Mobile Ads enables you to monetize your app with AdMob.
https://docs.page/invertase/react-native-google-mobile-ads
Other
625 stars 121 forks source link

[🐛] App crash minSdkversion miss-match library have 21 and RN@0.74.1 have 23 #586

Open dharmendra841434 opened 3 weeks ago

dharmendra841434 commented 3 weeks ago

What happened?

Configure project :react-native-google-mobile-ads :react-native-google-mobile-ads package.json found at C:\Users\Dhruv\Desktop\blackCoffer\vk\tubetools\node_modules\react-native-google-mobile-ads\package.json :react-native-google-mobile-ads package.json found at C:\Users\Dhruv\Desktop\blackCoffer\vk\tubetools\node_modules\react-native-google-mobile-ads\package.json :react-native-google-mobile-ads:version set from package.json: 13.6.0 (13,6,0 - 13006000) :react-native-google-mobile-ads:android.compileSdk using custom value: 34 :react-native-google-mobile-ads:android.targetSdk using custom value: 34 :react-native-google-mobile-ads:android.minSdk using custom value: 23 :react-native-google-mobile-ads:reactNativeAndroidDir C:\Users\Dhruv\Desktop\blackCoffer\vk\tubetools\node_modules\react-native\android

Task :react-native-google-mobile-ads:processDebugManifest package="io.invertase.googlemobileads" found in source AndroidManifest.xml: C:\Users\Dhruv\Desktop\blackCoffer\vk\tubetools\node_modules\react-native-google-mobile-ads\android\src\main\AndroidManifest.xml. Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported, and the value is ignored. Recommendation: remove package="io.invertase.googlemobileads" from the source AndroidManifest.xml: C:\Users\Dhruv\Desktop\blackCoffer\vk\tubetools\node_modules\react-native-google-mobile-ads\android\src\main\AndroidManifest.xml.

Task :react-native-google-mobile-ads:compileDebugKotlin w: file:///C:/Users/Dhruv/Desktop/blackCoffer/vk/tubetools/node_modules/react-native-google-mobile-ads/android/src/main/java/io/invertase/googlemobileads/OnNativeEvent.kt:6:68 'constructor Event<T : Event<(raw) Event<*>>!>(Int)' is deprecated. Deprecated in Java

Platforms

Android, but have not tested behavior on iOS

React Native Info

"react-native": "0.74.1",

Are your using Typescript?

package.json

{
  "name": "tubetools",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "android": "react-native run-android",
    "ios": "react-native run-ios",
    "lint": "eslint .",
    "start": "react-native start",
    "test": "jest"
  },
  "dependencies": {
    "react": "18.2.0",
    "react-native": "0.74.1",
    "react-native-google-mobile-ads": "^13.6.0"
  },
  "devDependencies": {
    "@babel/core": "^7.20.0",
    "@babel/preset-env": "^7.20.0",
    "@babel/runtime": "^7.20.0",
    "@react-native/babel-preset": "0.74.83",
    "@react-native/eslint-config": "0.74.83",
    "@react-native/metro-config": "0.74.83",
    "@react-native/typescript-config": "0.74.83",
    "@types/react": "^18.2.6",
    "@types/react-test-renderer": "^18.0.0",
    "babel-jest": "^29.6.3",
    "eslint": "^8.19.0",
    "jest": "^29.6.3",
    "prettier": "2.8.8",
    "react-test-renderer": "18.2.0",
    "typescript": "5.0.4"
  },
  "engines": {
    "node": ">=18"
  }
}

app.json

{
  "name": "tubetools",
  "displayName": "tubetools",
  "react-native-google-mobile-ads": {
    "android_app_id": "ca-app-pub-xxxxxxxx~xxxxxxxx"
  }
}

ios/Podfile

No response

android/build.gradle

No response

android/app/build.gradle

No response

android/settings.gradle

No response

AndroidManifest.xml

No response

omarsaade commented 1 week ago

same issue