嗨,我是扑扑和飞镖的新手。我在排版地图方面遇到困难。我在 Firestore 上保存了一些数据,格式为HashMap<String,List<String>>
. 在我的 Flutter 应用程序中,当我获取这些数据时,我以LinkedHashMap<dynamic,dynamic>
. 我想将其转换LinkedHashMap
为HashMap<String,List<String>>
. 请帮忙。
LinkedHashMap<dynamic,dynamic> mapUserWatchlistCompanies= documentSnapshot.data['Watchlist']; // Fetched data.
HashMap<String,List<String>> hashMapUserWatchlist = ???//How can it be converted? Need help here.
Run Code Online (Sandbox Code Playgroud) 我昨天更新了 Gradle 插件,现在 android studio 无法构建我的应用程序。该应用程序显示以下错误。
ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve io.grpc:grpc-core:[1.16.1].
Show Details
Affected Modules: app
ERROR: Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve io.grpc:grpc-core:[1.16.1].
Show Details
Affected Modules: app
ERROR: Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve io.grpc:grpc-core:[1.16.1].
Show Details
Affected Modules: app
ERROR: Unable to resolve dependency for ':app@release/compileClasspath': Could not resolve io.grpc:grpc-core:[1.16.1].
Show Details
Affected Modules: app
ERROR: Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not resolve …
Run Code Online (Sandbox Code Playgroud)