Error: AdbConnection.sendlink: FAIL: { type: 4, message: 'Method call peer died' }

created at 08-03-2021 views: 4

Encountered this problem again, the reason is that the parameter attribute is wrong

wrong example

<TextView align="{enum.TextView.Align.Center}"id="room" color="#333333" fontSize="18sp" text="Mine" height="{dp(200)}" width="{dp(100)}" background="#7FFFAA"></TextView>

correct example

<TextView align="{enum.TextView.Align.Center}" id="room" color="#333333" fontSize="18sp" text="Mine" height="{dp(200)}" width="{dp(100)}" background="#7FFFAA"></TextView>

reason

The reason for the error is because: align="{enum.TextView.Align.Center}" id="room" is missing a space between it is really low-level
The error message of vscode is not detailed. If you find a detailed new setting later, the error may be resolved quickly

created at:08-03-2021
edited at: 08-03-2021: