Ionic 4 run device error

Ionic 4 run device error
command : ionic cordova run android --device
error show:
Checking Java JDK and Android SDK versions

ANDROID_SDK_ROOT=undefined (recommended setting)

ANDROID_HOME=/Users/adisakpadungthon/Library/Android/sdk (DEPRECATED)

Requirements check failed for JDK 8 (‘1.8.*’)! Detected version: 10.0.1

Check your ANDROID_SDK_ROOT / JAVA_HOME / PATH environment variables.

[ ERROR ] An error occurred while running subprocess cordova .

How to solve problem, please help me!