android - Hashmap有什么问题

标签 android sqlite android-studio compiler-errors hashmap

我在Android Studio版本1.7中使用Hashmap。
但是我正在遵循旧网站上的代码。
我不知道新的Hashmap的新平台。
我可以运行应用程序。 logcat中没有错误。
请看我的照片并帮助我。
对不起,我的英语不好。

enter image description here

最佳答案

尝试通过以下方式初始化Arraylist:

ArrayList<HashMap<String,String>> MyArrList = new ArrayList<>();

关于android - Hashmap有什么问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36975211/

相关文章:

Android Studio 问题 :Red Squiggly Lines Under Modules, 没有模拟器

android - 取消android中所有使用闹钟服务的pendingIntent

sqlite - 从 phpmyadmin 访问 .sqlite 数据库? FF cookies

android-studio - 在 Android Studio 中创建可以在需要时截取屏幕截图的 UI 测试的最简单方法是什么?

nhibernate - 流畅的休眠 : How to change field mapping depending on the underlying database?

python - 使用 sqlalchemy 连接到 sqlite3.Connection

android - SQLite Insert Query 修剪 0 作为插入字符串的第一个字符

Android Google Maps V2 不刷新

java - 使用Firebase身份验证但需要提高安全性

android - 如何创建滑动布局,如主 android 菜单?