I recently moved from a Linux to windows environment and I'm having issues building an ionic app successfully. Ionic Cordova build android stops at
:app:splitsDiscoveryTaskDebug UP-TO-DATE
it seems a plugin (cordova-plugin-paystack) is the cause because it builds fine without errors when I run build with this plugin removed.
here's the error code:
:app:compileDebugAidl UP-TO-DATE
:CordovaLib:packageDebugRenderscript NO-SOURCE
:app:compileDebugRenderscript UP-TO-DATE
:app:checkDebugManifest UP-TO-DATE
:app:generateDebugBuildConfig UP-TO-DATE
:app:prepareLintJar UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources UP-TO-DATE
:app:mergeDebugResources UP-TO-DATE
:app:createDebugCompatibleScreenManifests UP-TO-DATE
:app:processDebugManifest UP-TO-DATE
:app:splitsDiscoveryTaskDebug UP-TO-DATE
C:\Users\Erondu Emmanuel\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\2a476605aeb8db0b92c43b3475268151\res\values\values.xml:251:5-69: AAPT: error: resource attr/foreground (aka com.kekerides.user:attr/foreground) not found.
C:\Users\Erondu Emmanuel\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\2a476605aeb8db0b92c43b3475268151\res\values\values.xml:251:5-69: AAPT: error: resource attr/foregroundGravity (aka com.kekerides.user:attr/foregroundGravity) not found.
C:\Users\Erondu Emmanuel\Documents\DEVELOPMENT\User\platforms\android\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:577: error: resource attr/foreground (aka com.kekerides.user:attr/foreground) not found.
C:\Users\Erondu Emmanuel\Documents\DEVELOPMENT\User\platforms\android\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:577: error: resource attr/foregroundGravity (aka com.kekerides.user:attr/foregroundGravity) not found.
error: failed linking references.
npm version:6.4.1 nodejs :8.12.10 ionic: 5.1.0 cordova :8.0.0
I have tried the instructions here Cordova Android error :app:transformClassesWithDesugarForDebug when adding plugin and it still doesn't work.