android - 为什么我不能使用 asyncTask
解决方案
是的,这个图书馆很旧。并且 android studio 不再支持这个了。我重做你的项目。您可以从 Internet 上搜索 Volley 或 Retrofit 获取数据。您可以查看我的 github 存储库 -> https://github.com/yagmurerdogan/WeatherApp/blob/master/app/src/main/java/com/tutorials/weatherapp/MainActivity.kt
推荐阅读
- c# - 如何确保门票不会超过允许的销售量?
- python - 将分组的数据框分成单独的数据框
- tensorflow - 我是否需要neo4j 之类的神经网络或图形数据库作为建议引擎?
- c - 二维数组在 C 中使用 realloc() 增加行数和列数
- ios - 带有授权的 Vue.http.get - 仅在 iOS 上发出 2 个请求并失败
- python - Python - 使 threading.thread 不等待其他线程完成并永远循环
- android - 如何用可用空间填充 FrameLayout 中的 2 个视图
- c# - 当我设置 EnableSSL=false 时出现错误
- c# - 定义 DataGridTemplateColumn.Header 导致“指定元素已经是另一个元素的逻辑子元素。首先断开它”异常
- c# - 使用 C# 和 Rest API 将 TFS 版本部署到特定环境