小编Abh*_*mol的帖子

在 dart 或 flutter 中将 LinkedHashMap<dynamic,dynamic> 转换为 HashMap<String,List<String>>

嗨,我是扑扑和飞镖的新手。我在排版地图方面遇到困难。我在 Firestore 上保存了一些数据,格式为HashMap<String,List<String>>. 在我的 Flutter 应用程序中,当我获取这些数据时,我以LinkedHashMap<dynamic,dynamic>. 我想将其转换LinkedHashMapHashMap<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)

dart flutter

5
推荐指数
1
解决办法
7257
查看次数

gradle 插件更新后,Android Studio 无法构建我的应用程序

我昨天更新了 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)

android android-support-library android-gradle-plugin

4
推荐指数
4
解决办法
2316
查看次数