Since yesterday I cannot build a Phonegap-build app that includ OneSignal plugin, it dose not work anymore! I am using the version 2.4.5 here is the error I get: Any idea ?
FAILURE: Build failed with an exception.
Where: Build file '/app/build.gradle' line: 94
What went wrong: A problem occurred evaluating project ':app'.
Could not resolve all files for configuration 'classpath'. Could not resolve gradle.plugin.com.onesignal:onesignal-gradle-plugin:[0.10.0, 0.99.99]. Required by: unspecified:unspecified:unspecified Could not resolve gradle.plugin.com.onesignal:onesignal-gradle-plugin:[0.10.0, 0.99.99]. Failed to list versions for gradle.plugin.com.onesignal:onesignal-gradle-plugin. Unable to load Maven meta-data from https://plugins.gradle.org/m2/gradle/plugin/com/onesignal/onesignal-gradle-plugin/maven-metadata.xml. Could not get resource 'https://plugins.gradle.org/m2/gradle/plugin/com/onesignal/onesignal-gradle-plugin/maven-metadata.xml'. Could not GET 'https://plugins.gradle.org/m2/gradle/plugin/com/onesignal/onesignal-gradle-plugin/maven-metadata.xml'. sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
It worked the day before with the same OneSignal plugin version, and I did not change anything.
Looks like there has been an issue with the gradle SSL certificate and they fixed it! now it should be working fine, try to build with your previously working version 2.4.5 and let me know what you got.