Pushwoosh / pushwoosh-react-native-sample

5 stars 0 forks source link

Could not determine the dependencies of task ':pushwoosh-geozones-react-native-plugin:compileDebugAidl' #10

Open aymank900 opened 1 year ago

aymank900 commented 1 year ago

Hii

i'm using react native and i'm trying to install pushwoosh-geozones-react-native-plugin when i install it i get an error

* What went wrong:
Could not determine the dependencies of task ':pushwoosh-geozones-react-native-plugin:compileDebugAidl'.
> In project 'app' a resolved Google Play services library dependency depends on another at an exact version (e.g. "[17.0.
  0, 18.0.99]", but isn't being resolved to that version. Behavior exhibited by the library will be unknown.

react native : v0.70.1 os: android

aymank900 commented 1 year ago

i found a solution here

https://9to5answer.com/in-project-39-app-39-a-resolved-google-play-services-library-dependency-depends-on-another-at-an-exact-version

Solution 2
There's a [known bug](https://github.com/invertase/react-native-firebase/issues/1676) with Google Services 4.2.0 that may cause this. Downgrading your google-services version to 4.1.0 in your project's build.gradle may resolve the issue

buildscript {
    dependencies {
        classpath 'com.google.gms:google-services:4.1.0' //decreased from 4.2.0
    }
}
aymank900 commented 1 year ago

With this solution when I allow location on Android 32 the app crashes

wfhm commented 1 year ago

Hi @aymank900 ,

It looks like there is another module that adds Google Play Services library to the project, and the version used is incompatible with the version range specified in our Geozones plugin. Could you please run the gradle dependencies terminal command in the Android project directory (project_root/android) and provide us with the output?

aymank900 commented 1 year ago

Hii

thanks for you support

`> Task :react-native-gradle-plugin:compileKotlin w: C:\Users\Home\Documents\WORK\Wazcam4\node_modules\react-native-gradle-plugin\src\main\kotlin\com\facebook\react\ReactExtension.kt: (10, 37): 'BaseVariant' is deprecated. Deprecated in Java w: C:\Users\Home\Documents\WORK\Wazcam4\node_modules\react-native-gradle-plugin\src\main\kotlin\com\facebook\react\ReactExtension.kt: (119, 30): 'BaseVariant' is deprecated. Deprecated in Java w: C:\Users\Home\Documents\WORK\Wazcam4\node_modules\react-native-gradle-plugin\src\main\kotlin\com\facebook\react\ReactExtension.kt: (135, 26): 'BaseVariant' is deprecated. Deprecated in Java w: C:\Users\Home\Documents\WORK\Wazcam4\node_modules\react-native-gradle-plugin\src\main\kotlin\com\facebook\react\ReactExtension.kt: (157, 32): 'BaseVariant' is deprecated. Deprecated in Java w: C:\Users\Home\Documents\WORK\Wazcam4\node_modules\react-native-gradle-plugin\src\main\kotlin\com\facebook\react\ReactExtension.kt: (163, 31): 'BaseVariant' is deprecated. Deprecated in Java w: C:\Users\Home\Documents\WORK\Wazcam4\node_modules\react-native-gradle-plugin\src\main\kotlin\com\facebook\react\ReactExtension.kt: (171, 36): 'BaseVariant' is deprecated. Deprecated in Java w: C:\Users\Home\Documents\WORK\Wazcam4\node_modules\react-native-gradle-plugin\src\main\kotlin\com\facebook\react\ReactPlugin.kt: (114, 48): 'reactRoot: DirectoryProperty' is deprecated. reactRoot was confusing and has been replace with root to point to your root project and reactNativeDir to point to the folder of the react-native NPM package w: C:\Users\Home\Documents\WORK\Wazcam4\node_modules\react-native-gradle-plugin\src\main\kotlin\com\facebook\react\TaskConfiguration.kt: (10, 37): 'ApplicationVariant' is deprecated. Deprecated in Java w: C:\Users\Home\Documents\WORK\Wazcam4\node_modules\react-native-gradle-plugin\src\main\kotlin\com\facebook\react\TaskConfiguration.kt: (11, 37): 'BaseVariant' is deprecated. Deprecated in Java w: C:\Users\Home\Documents\WORK\Wazcam4\node_modules\react-native-gradle-plugin\src\main\kotlin\com\facebook\react\TaskConfiguration.kt: (12, 37): 'LibraryVariant' is deprecated. Deprecated in Java w: C:\Users\Home\Documents\WORK\Wazcam4\node_modules\react-native-gradle-plugin\src\main\kotlin\com\facebook\react\TaskConfiguration.kt: (27, 51): 'BaseVariant' is deprecated. Deprecated in Java w: C:\Users\Home\Documents\WORK\Wazcam4\node_modules\react-native-gradle-plugin\src\main\kotlin\com\facebook\react\TaskConfiguration.kt: (130, 12): 'ApplicationVariant' is deprecated. Deprecated in Java w: C:\Users\Home\Documents\WORK\Wazcam4\node_modules\react-native-gradle-plugin\src\main\kotlin\com\facebook\react\TaskConfiguration.kt: (131, 12): 'LibraryVariant' is deprecated. Deprecated in Java w: C:\Users\Home\Documents\WORK\Wazcam4\node_modules\react-native-gradle-plugin\src\main\kotlin\com\facebook\react\TaskConfiguration.kt: (251, 14): 'BaseVariant' is deprecated. Deprecated in Java

Configure project :react-native-google-mobile-ads :react-native-google-mobile-ads package.json found at C:\Users\Home\Documents\WORK\Wazcam4\node_modules\react-native-google-mobile-ads\package.json :react-native-google-mobile-ads package.json found at C:\Users\Home\Documents\WORK\Wazcam4\node_modules\react-native-google-mobile-ads\package.json :react-native-google-mobile-ads:version set from package.json: 8.2.0 (8,2,0 - 8002000) :react-native-google-mobile-ads:android.compileSdk using custom value: 31 :react-native-google-mobile-ads:android.targetSdk using custom value: 31 :react-native-google-mobile-ads:android.minSdk using custom value: 21 :react-native-google-mobile-ads:reactNativeAndroidDir C:\Users\Home\Documents\WORK\Wazcam4\node_modules\react-native\android

Configure project :react-native-reanimated Native libs debug enabled: false Android gradle plugin: 7.2.1 Gradle: 7.4 building Reanimated2 WARNING:Software Components will not be created automatically for Maven publishing from Android Gradle Plugin 8.0. To opt-in to the future behavior, set the Gradle property android.disableAutomaticComponentCreation=true in the gradle.properties file or use the new publishing DSL.

The Kotlin Gradle plugin was loaded multiple times in different subprojects, which is not supported and may break the build. This might happen in subprojects that apply the Kotlin plugins with the Gradle 'plugins { ... }' DSL if they specify explicit versions, even if the versions are equal. Please add the Kotlin plugin to the common parent project or the root project, then remove the versions in the subprojects. If the parent project does not need the plugin, add 'apply false' to the plugin line. See: https://docs.gradle.org/current/userguide/plugins.html#sec:subprojects_plugins_dsl The Kotlin plugin was loaded in the following projects: ':react-native-google-mobile-ads', ':react-native-safe-area-context'

Task :dependencies`