问题描述
这是我的 .java 文件:
我将 Jsoup 添加到依赖项中,但仍然无法访问“选择”功能。错误说 无法解析“文档”中的“选择”方法
enter code here
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_parsing);
}
private class Content extends AsyncTask<Void,Void,Void>
{
@Override
protected Void doInBackground(Void... voids) {
try {
Document document= (Document) Jsoup.connect("https://www.dsebd.org/latest_share_price_scroll_by_value.php").get();
document.select("table.table-bordered.background-white.shares-table.fixedHeader");
}catch (Exception e)
{
Toast.makeText(Parsing.this,""+e,Toast.LENGTH_SHORT).show();
}
return null;
}
}
}
依赖项{
implementation 'androidx.appcompat:appcompat:1.3.0'
implementation 'com.google.android.material:material:1.3.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
implementation 'com.google.firebase:firebase-auth:21.0.1'
implementation 'org.jetbrains:annotations:15.0'
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
testImplementation 'junit:junit:4.+'
implementation 'org.jsoup:jsoup:1.13.1'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
}
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)