Two devices connected,i assigned the second one ,why it used the first one?

ref:

Server Command like this:

appium -a 127.0.0.1 -p 4723 -bp 4724 --default-capabilities config.json

config.json:

{
“app”: “apps/tude-release.apk”,
“deviceName”: “LE67A06310143950”,
“platformName”: “Android”,
“appPackage”: “com.tude.android”,
“appActivity”: “com.tude.android.activity.SplashActivity”
}

ok,i found the solution,use “udid” instead of “deviceName”.

i assigned udid also then also it is assigning first one