简体   繁体   English

在运行颤振应用程序时出现此错误

[英]while running the flutter app i am getting this error

Type mismatch: inferred type is Activity?类型不匹配:推断类型是 Activity? but Activity was expected但预计会有活动

FAILURE: Build failed with an exception. FAILURE:构建失败并出现异常。

  • What went wrong: Execution failed for task ':jitsi_meet:compileReleaseKotlin'.出了什么问题:任务':jitsi_meet:compileReleaseKotlin'执行失败。

Compilation error.编译错误。 See log for more details有关详细信息,请参阅日志

  • Try:尝试:

Run with --stacktrace option to get the stack trace.使用 --stacktrace 选项运行以获取堆栈跟踪。 Run with --info or --debug option to get more log output.使用 --info 或 --debug 选项运行以获得更多日志输出。 Run with --scan to get full insights.运行 --scan 以获得完整的见解。

If you have not added kotlin configuration, then plz add below line in android/build file如果您还没有添加 kotlin 配置,请在 android/build 文件中添加以下行

buildscript {
ext.kotlin_version = '1.6.10'
.
.
.

And also add classpath right as below:并添加类路径,如下所示:

dependencies {
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.10'
.
.
.

Could you be more specific on what and where is this problem happening.您能否更具体地说明这个问题发生在什么地方以及发生在哪里。 This error is telling you that the type expected is Activity instead of the nullable type Activity?此错误告诉您预期的类型是Activity而不是可为空的类型Activity? . .

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 运行 flutter 应用程序时出现错误 - I am getting error while running my flutter app 我正在运行 flutter 应用程序并收到此错误 - I am running flutter app and getting this error 为 iOS 运行 flutter 项目时出现错误 - I am getting error while running the flutter project for iOS 我在运行我的应用程序时收到此 E/flutter (25055) 错误(Flutter,FireBase - I am getting this E/flutter (25055) error when I am running my App (Flutter , FireBase 在 chrome 上运行 flutter 应用程序时出现此错误 - getting this error while running flutter app on chrome 我在尝试将数据从云 Firestore 带到我的 flutter 应用程序时遇到此错误 - I am getting this error while am trying to bring data from cloud firestore to my flutter app 为什么我在构建 IOS flutter 应用程序时出现应用程序图标错误? - Why I am getting app icon error while build IOS flutter app? 当我尝试运行我的 flutter 应用程序时,运行 gradle 时出现错误 - When i am trying to run my flutter app it getting an Error running gradle 我在运行 flutter 应用程序时不断收到此错误,我的控制台充满了它 - I'm keep getting this error while running my flutter app and my console is full of it 在 Android (Android X) 上运行 Flutter 应用程序时出错 - Getting Error while Running Flutter App On Android (Android X) Incompatibility
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM