My app not worked on android version 8 to above

Added TargetSDK 28 then remove and add platform and build app show error invalid data chunk must be string or buffer “an error occurs while running subprocess cordova”
please provide proper solutions
thanks