1.单独运行 jar 包时java -jar appcrawler-2.1.3.jar -a EFastPay-3.2.0.1.apk
,可以正常运行且能够自动化遍历
2.配置文件下运行java -jar appcrawler-2.1.3.jar -a EFastPay-3.2.0.1.apk -c conf/config.yml
,运行时报错了,如下:
Find Conf D:\测试代码\appcrawler\conf\config.yml
Exception in thread "main" java.nio.charset.MalformedInputException: Input length = 1
at java.nio.charset.CoderResult.throwException(CoderResult.java:281)
at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:339)
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178)
at java.io.InputStreamReader.read(InputStreamReader.java:184)
at java.io.BufferedReader.fill(BufferedReader.java:161)
at java.io.BufferedReader.readLine(BufferedReader.java:324)
at java.io.BufferedReader.readLine(BufferedReader.java:389)
at scala.io.BufferedSource$BufferedLineIterator.hasNext(BufferedSource.scala:70)
at scala.collection.Iterator.foreach(Iterator.scala:929)
at scala.collection.Iterator.foreach$(Iterator.scala:929)
at scala.collection.AbstractIterator.foreach(Iterator.scala:1417)
at scala.collection.TraversableOnce.addString(TraversableOnce.scala:357)
at scala.collection.TraversableOnce.addString$(TraversableOnce.scala:353)
at scala.collection.AbstractIterator.addString(Iterator.scala:1417)
at scala.collection.TraversableOnce.mkString(TraversableOnce.scala:323)
at scala.collection.TraversableOnce.mkString$(TraversableOnce.scala:322)
at scala.collection.AbstractIterator.mkString(Iterator.scala:1417)
at scala.collection.TraversableOnce.mkString(TraversableOnce.scala:325)
at scala.collection.TraversableOnce.mkString$(TraversableOnce.scala:325)
at scala.collection.AbstractIterator.mkString(Iterator.scala:1417)
at com.testerhome.appcrawler.CrawlerConf.load(CrawlerConf.scala:184)
at com.testerhome.appcrawler.AppCrawler$.parseParams(AppCrawler.scala:201)
at com.testerhome.appcrawler.AppCrawler$.main(AppCrawler.scala:92)
at com.testerhome.appcrawler.AppCrawler.main(AppCrawler.scala)
查阅了网上的资料,说是读文件异常,但是我这边不知道怎么改,求指点一二,不胜感激