weixin_42742411
耿耿27
2019-04-07 07:27

用eclipse编写Java程序报错,求助

  • java
  • eclipse
Exception in thread "main" java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer
    at com.google.zxing.qrcode.QRCodeWriter.encode(QRCodeWriter.java:74)
    at com.google.zxing.MultiFormatWriter.encode(MultiFormatWriter.java:94)
    at QRCodeUtil.createImage(QRCodeUtil.java:50)
    at QRCodeUtil.encode(QRCodeUtil.java:111)
    at QRCodeUtil.main(QRCodeUtil.java:184)
  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

3条回答