无法运行颤音项目。要求特定的NDK版本
在调试模式下在m2004j19c上启动lib \ main.dart ...
- 出了什么问题: 配置项目“:Flutter_libserialport”的问题发生了问题。
ndk at c:\ users \ mk malik \ appdata \ local \ android \ android \ sdk \ ndk \ 21.1.1.6352462没有source.properties file
尝试: 使用-StackTrace选项运行以获取堆栈跟踪。使用-Info或 - debug选项运行,以获取更多日志输出。运行 - 扫描以获得完整的见解。
在
在 运行gradle任务“汇编” ... 175.8S 例外:Gradle任务汇编失败,出口代码1
如何修复或安装该特定的NDK版本?
Launching lib\main.dart on M2004J19C in debug mode...
- What went wrong:
A problem occurred configuring project ':flutter_libserialport'.
NDK at C:\Users\M.K. Malik\AppData\Local\Android\sdk\ndk\21.1.6352462 did not have a source.properties file
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 2m 47s
Running Gradle task 'assembleDebug'... 175.8s
Exception: Gradle task assembleDebug failed with exit code 1
How to fix or install that specific NDK version?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您需要从
sdk Manager
中下载ndk
insdk tools
tab(在某些情况下选择“ show package”详细信息),
cmake
还需要在sdk工具
选项卡和app/build.gradle文件中都可以使用,您需要指定
这样的 版本
ndkversion“ 25.1.8937393”
You need to download
NDK
fromSDK Manager
inSDK Tools
Tab (select show package details)In Some Cases,
CMake
also needed which is also available inSDK Tools
tabAnd in app/build.gradle file you need to specify the version
like this
ndkVersion "25.1.8937393"
首先,使用Android Studio检查您的NDK版本,
请转到工具 - > SDK Manager(或Files-≫ settings->外观&amp& candy-> system> android sdk; android sdk)。然后选择“ SDK工具”选项卡,然后检查显示包装详细信息复选框。您将看到您的NDK版本。
您还可以使用Android Studio轻松安装或升级新的NDK版本 - > SDK经理 - > SDK工具。选择“显示包”详细信息复选框。您将能够看到所有可用的NDK版本。
您显示的错误显示了我有我的建议中缺少的某些文件是您应该重新安装该版本
Firstly check your NDK version using android studio
Go to Tools->SDK Manager (or Files->Settings->Appearance & Behavior->System Settings->Android SDK ). Then select the SDK Tools tab, and check the Show Package Details checkbox. You will see your NDK version.
You can also easily install or upgrade new NDK version using android studio -> SDK manager -> SDK tools . Select the show package detail checkbox. You will be able to see all the NDK versions available.
The error displayed by you shows that some file in missing from the NDK version you have my suggestion is you should reinstall that version