- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
关闭。这个问题需要debugging details .它目前不接受答案。
编辑问题以包含 desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem .这将帮助其他人回答问题。
去年关闭。
Improve this question
flutter clean
flutter pub cache repair
, Launching lib\main.dart on Redmi Note 4 in debug mode...
lib\main.dart:1
Parameter format not correct -
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\fluttertoast-7.1.8\android\src\main\kotlin\io\github\ponnamkarthik\toast\fluttertoast\MethodCallHandlerImpl.kt: (45, 84): Unresolved reference: R
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\fluttertoast-7.1.8\android\src\main\kotlin\io\github\ponnamkarthik\toast\fluttertoast\MethodCallHandlerImpl.kt: (70, 68): Unresolved reference: R
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\fluttertoast-7.1.8\android\src\main\kotlin\io\github\ponnamkarthik\toast\fluttertoast\MethodCallHandlerImpl.kt: (85, 64): Unresolved reference: R
2
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':fluttertoast:compileDebugKotlin'.
> Compilation error. See log for more details
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 39s
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)
最佳答案
更新compileSdkVersion
至30
在我的app/build.gradle
解决了它并允许我保留最新的gradle。
旧答案:
我不知道为什么,但我能够通过回滚来解决问题
classpath 'com.android.tools.build:gradle:3.5.4'
在我的顶层
build.gradle
.
关于android - 任务 ':fluttertoast:compileDebugKotlin' 执行失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66275805/
失败:构建失败,出现异常。 出了什么问题:任务“:react-native-screens:compileDebugKotlin”执行失败。 Error while evaluating proper
更新到 Dart 3.0 后,当我在 Android 模拟器上启动应用程序时出现此错误。 对于 iOS 物理设备,它的构建还可以。不幸的是,无法尝试使用 Android 物理设备。有任何想法吗? e:
尝试将我的 Flutter 应用程序编译到 Android 模拟器时,我遇到了这个令人讨厌的错误。这是错误日志(太长,无法完全粘贴): aunching lib/main.dart on sdk gp
关闭。这个问题需要debugging details .它目前不接受答案。 编辑问题以包含 desired behavior, a specific problem or error, and the
我尝试安装 audioplayers: ^0.17.1并运行我的 flutter 项目。它引发以下错误。有人可以帮忙吗? e: C:\Users\User\flutter\.pub-cache\hos
我尝试使用 gradle-plugin 在 Jenkins 中构建我的 apk,但由于 Internal compiler error 该项目是用Kotlin编写的 在 Jenkins 中,我在 sv
我最近更新了我的 kotlin 和 kotlin 扩展插件,并且在构建时出现以下错误。我尝试使用 gradle 清理构建或同步项目,但没有任何效果 e: Supertypes of the follo
我正在做一个旧项目。它在 5 天前运行良好。现在我正面临agora 的错误。我之前的代码没有任何改变。 这是错误- FAILURE: Build failed with an exception. *
任务':location:compileDebugKotlin'执行失败。 build:gradle(模块:app) ext.kotlin_version = '1.6.10' rep
Kotlin Gradle 插件在不同的子项目中多次加载,不受支持并且可能会破坏构建。 这可能发生在应用带有 Gradle 'plugins { ... }' DSL 的 Kotlin 插件的子项目中
我正在开发一个 React Native 应用程序,其中包含了一些 expo 库(裸工作流)。我已经成功使用了expo-location ,但现在我也安装了expo-camera ,应用程序将不再使用
我尝试从 运行默认的 flutter 应用程序 flutter 创建 在我的 android 设备上,但它给我一个错误。有人可以帮忙吗? Launching lib\main.dart on SM G
更新完我的flutter工程,准备在android studio中运行应用,出现如下错误。 e: C:\Users\user\AppData\Local\Pub\Cache\hosted\pub.da
我不知道我是如何陷入这个困境的,但我认为问题出在Java二进制路径上......来自flutter doctor的路径与异常中的路径不同。当我运行现有项目或创建新项目并尝试运行它时,它仍然会给出相同的
我已将 Android Studio 更新为 3.3,现在我无法构建现有项目之一,我尝试过无效/重启,还检查了 gradle -wrapper.properties其中gradle版本是最新更新: d
Error:Execution failed for task ':app:compileDebugKotlin'. > Compilation error. See log for more det
我已遵循此页面中的所有说明:https://flutter.dev/docs/get-started/install/windows 但是当我尝试运行“first_app”时出现错误: Android
注意:某些输入文件使用或覆盖已弃用的 API。注意:使用 -Xlint:deprecation 重新编译以获取详细信息。注意:某些输入文件使用未经检查或不安全的操作。注意:使用 -Xlint:unch
注意:某些输入文件使用或覆盖已弃用的 API。注意:使用 -Xlint:deprecation 重新编译以获取详细信息。注意:某些输入文件使用未经检查或不安全的操作。注意:使用 -Xlint:unch
我正在将我的 Android 项目从 Java 转换为 Kotlin。我已经和其他 3 个项目成功地完成了这个过程。 但是这个有点大,结构复杂。我已将一些文件转换为 Kotlin 并进行项目编译。但是
我是一名优秀的程序员,十分优秀!