Closed zabojad closed 1 month ago
Here is what I get when I compile for Android:
> Configure project :react-native-notifications
WARNING: DSL element 'dexOptions' is obsolete and should be removed.
It will be removed in version 8.0 of the Android Gradle plugin.
Using it has no effect, and the AndroidGradle plugin optimizes dexing automatically.
25 actionable tasks: 15 executed, 10 up-to-date
info 💡 Tip: Make sure that you have set up your development environment correctly, by running npx react-native doctor. To read more about doctor command visit: https://github.com/react-native-community/cli/blob/main/packages/cli-doctor/README.md#doctor
FAILURE: Build failed with an exception.
* What went wrong:
Some problems were found with the configuration of task ':app:processDebugGoogleServices' (type 'GoogleServicesTask').
- Type 'com.google.gms.googleservices.GoogleServicesTask' field 'quickstartFile' without corresponding getter has been annotated with @InputFile, @Optional.
Reason: Annotations on fields are only used if there's a corresponding getter for the field.
Possible solutions:
1. Add a getter for field 'quickstartFile'.
2. Remove the annotations on 'quickstartFile'.
For more information, please refer to https://docs.gradle.org/8.8/userguide/validation_problems.html#ignored_annotations_on_field in the Gradle documentation.
- Type 'com.google.gms.googleservices.GoogleServicesTask' field 'intermediateDir' without corresponding getter has been annotated with @OutputDirectory.
Reason: Annotations on fields are only used if there's a corresponding getter for the field.
Possible solutions:
1. Add a getter for field 'intermediateDir'.
2. Remove the annotations on 'intermediateDir'.
For more information, please refer to https://docs.gradle.org/8.8/userguide/validation_problems.html#ignored_annotations_on_field in the Gradle documentation.
- Type 'com.google.gms.googleservices.GoogleServicesTask' field 'packageName' without corresponding getter has been annotated with @Input.
Reason: Annotations on fields are only used if there's a corresponding getter for the field.
Possible solutions:
1. Add a getter for field 'packageName'.
2. Remove the annotations on 'packageName'.
For more information, please refer to https://docs.gradle.org/8.8/userguide/validation_problems.html#ignored_annotations_on_field in the Gradle documentation.
- Type 'com.google.gms.googleservices.GoogleServicesTask' field 'searchedLocation' without corresponding getter has been annotated with @Input.
Reason: Annotations on fields are only used if there's a corresponding getter for the field.
Possible solutions:
1. Add a getter for field 'searchedLocation'.
2. Remove the annotations on 'searchedLocation'.
For more information, please refer to https://docs.gradle.org/8.8/userguide/validation_problems.html#ignored_annotations_on_field in the Gradle documentation.
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
BUILD FAILED in 943ms
Sorry guys, it actually works if I change this in android/build.graddle
buildscript {
dependencies {
classpath 'com.google.gms:google-services:4.4.2'
}
}
The install doc is outdated...
Hi there,
Has anyone succeeded in using this lib in a RN0.75 project?
It does not compile on Android with latest release...