FIT 合并报错

下面列举遇到的报错及解决方案

FIT decode error

FIT 文件有问题 使用 https://www.fitfileviewer.com 修复后再次尝试

# 比如
merge-fit.jar failed: exit status 1, output: Exception in thread "main" com.garmin.fit.FitRuntimeException: FIT decode error: Decoder not in correct state after last data byte in file.  Check message definitions. Error at byte: 3817482
	at com.garmin.fit.Decode.read(Decode.java:570)
	at com.garmin.fit.Decode.resume(Decode.java:370)
	at com.garmin.fit.Decode.read(Decode.java:347)
	at com.garmin.fit.Decode.read(Decode.java:321)
	at com.yangyang5214.mergefit.fit.FitDecode.Encode(FitDecode.java:42)
	at com.yangyang5214.mergefit.App.merge(App.java:138)
	at com.yangyang5214.mergefit.App.main(App.java:33)