The issue is resolved. The topic can be closed. The problem was as follows:
ionic cordova build –release android instead of this we used this:
ionic cordova build - -release android
I think you should correct this in your tutorial. it looks as if there is single dash while we need to use 2.