BmsVisionJo opened a new issue #1284:
URL: https://github.com/apache/cordova-android/issues/1284
# Bug Report
## Problem
When enabling the GradlePluginGoogleServicesEnabled preference the gradle
build fails with the following message:
* Where:
Build file 'D:\Repos\MyMES\mmMobileApp\platforms\android\app\build.gradle'
line: 49
* What went wrong:
A problem occurred evaluating project ':app'.
> Could not get unknown property 'gradlePluginGoogleServicesVersion' for
object of type
org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
### What is expected to happen?
Use the correct property so the build can complete
### What does actually happen?
This code has been changed to be able to pass in the config defined by the
preferences.
I think that it is just a forgotten property that needs changing.
Replacing line 49 from:
if(!cdvHelpers.isVersionValid(gradlePluginGoogleServicesVersion)) {
to:
if(!cdvHelpers.isVersionValid(cordovaConfig.GRADLE_PLUGIN_GOOGLE_SERVICES_VERSION))
{
fixes the issue
### Command or Code
Cordova build
### Version information
<!--
What are relevant versions you are using?
For example:
Cordova android 10.0.0-nightly.2021.7.17.92864963
## Checklist
<!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
- [x] I searched for existing GitHub issues
- [x] I updated all Cordova tooling to most recent version
- [x] I included all the necessary information above
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]