Apk build Error(ionic)

ionic cordova build --release android
After giving these command error occurs please help me to solve

Did you run cordova telemetry on already?

no please tell how to run

In your project folder just run: cordova telemetry thats what the log error says

Also your android home and javahome are setted up properly?

sorry for my bad english. jaja

first:
cordova telemetry on
then:
ionic cordova build android --release

Ionic:

ionic (Ionic CLI) : 4.11.0 (C:\Users\mr\AppData\Roaming\npm\node_modules\ionic)
Ionic Framework : @ionic/angular 4.1.0
@angular-devkit/build-angular : 0.13.5
@angular-devkit/schematics : 7.2.4
@angular/cli : 7.3.5
@ionic/angular-toolkit : 1.4.0

Cordova:

cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1)
Cordova Platforms : android 7.1.4
Cordova Plugins : not available

System:

NodeJS : v11.8.0 (C:\Program Files\nodejs\node.exe)
npm : 6.5.0
OS : Windows 10
This is my Ionic info please tell me How take Apk in ionic

Is your ANDROID_HOME and JAVA_HOME correctly setted up?
if so, run:

1.> ionic cordova platform add android
2. > cordova telemetry on (if is needed)
3. Connect an android device to your pc
4. > adb devices (this will return the list of android devices connected to your pc)
5. > ionic cordova run android (this should install the apk to your device)
6. if everything is ok run > ionic cordova build android --release

Please take a look in the documentation: https://ionicframework.com/docs/v3/intro/deploying/