Cordova Slack Digest

Fri, 23 Jul 2021 08:21:04 GMT

User count: 4566

Join the conversation at slack.cordova.io

Channel #general (3 messages)


Thu, 22 Jul 2021 13:11:30 GMT

@shetty.sujaycn says

Hi, I tried to upgrade cordova-android to latest version (from 9.1.0 to 10.0.0) in my app but during build it is throwing below error


FAILURE: Build failed with an exception. * What went wrong: Some problems were found with the configuration of task ':app:processDebugGoogleServices' (type 'GoogleServicesTask'). - In plugin 'com.google.gms.googleservices.GoogleServicesPlugin' 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'.``` can someone help me to resolve this issue please

Thu, 22 Jul 2021 21:47:32 GMT

@mathewp.94 says

This might sound an odd question, but does anyone have ideas on how I can crash my cordova android app ? I'm trying to cause exceptions using a custom plugin, but the Cordova plugin wrapper catches unhandled exceptions 😛

Thu, 22 Jul 2021 21:49:23 GMT

@dpogue says

Maybe throw an exception on a different thread?

Channel #cordova-android (5 messages)


Thu, 22 Jul 2021 13:09:48 GMT

@shetty.sujaycn says

Hi, I tried to upgrade cordova-android to latest version (from 9.1.0 to 10.0.0) in my app but during build it is throwing below error


FAILURE: Build failed with an exception. * What went wrong: Some problems were found with the configuration of task ':app:processDebugGoogleServices' (type 'GoogleServicesTask'). - In plugin 'com.google.gms.googleservices.GoogleServicesPlugin' 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'.``` can someone help me to resolve this issue please

Fri, 23 Jul 2021 01:19:26 GMT

@ucheozoemena says

Hi folks, I'm getting build failures with this error since upgrading to cordova android 10.

/Users/vagrant/git/platforms/[REDACTED]/app/src/main/java/org/apache/cordova/whitelist/WhitelistPlugin.java:25: error: cannot find symbol
import org.apache.cordova.Whitelist;
                         ^
  symbol:   class Whitelist
  location: package org.apache.cordova```
There are other similar errors, but I don't want to copy all of them. Looks related to the whitelist plugin getting rolled into cordova-android in v10. The whitelist plugin README says the plugin should be removed for cordova android 10, but I get these errors *both* with and without the whitelist plugin Any ideas that could help? I'd really appreciate it, thanks.

Fri, 23 Jul 2021 01:23:08 GMT

@norman137 says

I'd try removing the platform, then remove the whitelist plugin, then re-add the platform

Fri, 23 Jul 2021 01:23:36 GMT

@norman137 says

this should make sure the platform is built from scratch without the whitelist plugin (although it should ignore installing it)

Fri, 23 Jul 2021 01:24:28 GMT

@erisu says

Based on file path, it seems you have old files that shouldn’t exist. I would also recommend what Norman suggested.

There can also be import issues if a plugin is trying to import the whitelist class as well. For example cordova-plugin-file-transfer is trying to import Whitelist. This plugin has not been updated yet and will need to be.