【发布时间】:2022-11-16 15:04:59
【问题描述】:
之前工作的代码现在不工作了。现在我得到的结果为空
我正在使用以下代码从 Playstore 获取应用程序版本。这之前工作正常。
newVersion = Jsoup.connect("https://play.google.com/store/apps/details?id=" + ActivitySplash.this.getPackageName() + "&hl=it")
.timeout(30000)
.userAgent("Mozilla/5.0 (Windows; U; WindowsNT 5.1; en-US; rv1.8.1.6) Gecko/20070725 Firefox/2.0.0.6")
.referrer("http://www.google.com")
.get()
.select(".hAyfc .htlgb")
.get(7)
.ownText();
但是,现在我收到与以下相同的异常
java.lang.IndexOutOfBoundsException: Index: 7, Size: 0
【问题讨论】:
标签: android google-play version