Android 无法使用程序包运行颤振项目
我创建了一个新的应用程序。Android 无法使用程序包运行颤振项目,android,flutter,gradle,Android,Flutter,Gradle,我创建了一个新的应用程序。 添加音频播放器颤振包从。 显示Android嵌入的错误。我按照指示做了。 现在我得到了这个错误: FAILURE: Build completed with 2 failures. 1: Task failed with an exception. ----------- * Where: Build file 'C:\src\flutter\flutter\.pub-cache\hosted\pub.dartlang.org\audioplayers-0.1
添加音频播放器颤振包从。
显示Android嵌入的错误。我按照指示做了。
现在我得到了这个错误: FAILURE: Build completed with 2 failures. 1: Task failed with an exception. ----------- * Where: Build file 'C:\src\flutter\flutter\.pub-cache\hosted\pub.dartlang.org\audioplayers-0.17.1\android\build.gradle' line: 23 * What went wrong: A problem occurred evaluating project ':audioplayers'. > Plugin with id 'kotlin-android' not found. * 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. ============================================================================== 2: Task failed with an exception. ----------- * What went wrong: A problem occurred configuring project ':audioplayers'. > compileSdkVersion is not specified. * 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 3s Exception: Gradle task assembleDebug failed with exit code 1 失败:生成已完成,但有2次失败。 1:任务失败,出现异常。 ----------- *其中: 生成文件“C:\src\flatter\flatter\.pub cache\hosted\pub.dartlang.org\audioplayers-0.17.1\android\Build.gradle”行:23 *出了什么问题: 评估项目“AudioPlayer”时出现问题。 >找不到id为“kotlin android”的插件。 *尝试: 使用--stacktrace选项运行以获取堆栈跟踪。使用--info或--debug选项运行以获得更多日志输出。使用--scan运行以获得完整的洞察力。 ============================================================================== 2:任务失败,出现异常。 ----------- *出了什么问题: 配置项目“AudioPlayer”时出现问题。 >未指定compileSdkVersion。 *尝试: 使用--stacktrace选项运行以获取堆栈跟踪。使用--info或--debug选项运行以获得更多日志输出。使用--scan运行以获得完整的洞察力。 ============================================================================== *得到更多的帮助https://help.gradle.org 3s内构建失败 异常:Gradle任务assembleDebug失败,退出代码为1
然后我跟着https://github.com/react-native-webview/react-native-webview/issues/1407 按照建议去做。 现在我得到了这个错误:
失败:生成失败,出现异常。
- 其中: 生成文件“C:\src\flatter\flatter.pub cache\hosted\pub.dartlang.org\audioplayers-0.17.1\android\Build.gradle”行:49
- 出了什么问题: 评估项目“AudioPlayer”时出现问题
- 尝试: 使用--stacktrace选项运行以获取堆栈跟踪。使用--info或--debug选项运行以获得更多日志输出。使用--scan运行以获得完整的洞察力
- 得到更多的帮助
我是android studio开发的新手,这些配置让我抓狂。非常感谢。感谢那些提出我同样问题的人。我正在工作的项目来自Git,我认为该项目没有针对Android Embedded v2进行更新,所以我遇到了第一个错误 现在在第二个错误中,我所做的只是阅读其他人的错误修复(不是正式的)
对于那些和我有同样问题的人。我正在工作的项目来自Git,我认为该项目没有针对Android Embedded v2进行更新,所以我遇到了第一个错误 现在在第二个错误中,我所做的只是阅读其他人的错误修复(不是正式的)
你能发布你的yaml文件和颤振医生结果吗?你能发布你的yaml文件和颤振医生结果吗 FAILURE: Build failed with an exception.
- Where: Build file 'C:\src\flutter\flutter.pub-cache\hosted\pub.dartlang.org\audioplayers-0.17.1\android\build.gradle' line: 49
- What went wrong: A problem occurred evaluating project ':audioplayers'.
Could not get unknown property 'kotlin_version' for object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
- 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