Android打包APK时遇到这样的错误,应该怎样排查?
Type com.hoho.android.usbserial.driver.ProbeTable is defined multiple times
Type com.hoho.android.usbserial.driver.ProbeTable is defined multiple times: C:\Users\zhupu\workspace\VendingMachine\f2t-vmi-lyf\app\build\intermediates\project_dex_archive\release\out\com\hoho\android\usbserial\driver\ProbeTable.dex, C:\Users\zhupu\workspace\VendingMachine\f2t-vmi-lyf\app\build\intermediates\external_libs_dex\release\mergeExtDexRelease\classes.dex
从日志种可以发现是自己复制源代码生成的库和gradle下载第三方重复了,所以去掉gradle文件中的相关库就可以了