删除。gradle文件夹后,真正的设备未安装app.apk

发布于 2025-01-29 06:41:31 字数 1915 浏览 1 评论 0原文

我正在清理探险家,足够愚蠢,可以删除.gradle文件夹。 并通过“安装build/app/utputs/flutter-apk/app.apk。

当我重新创建文件夹时,真正的设备没有安装我的flutter应用程序, 如果他们与问题有关

2022-05-16 22:01:27.814 776-776/? E/wificond: Failed to get NL80211_STA_INFO_CNAHLOAD
2022-05-16 22:01:27.815 1286-1467/? E/WificondControl: Noise: 0, Snr: -1, Chload: -1
2022-05-16 22:01:27.819 776-776/? E/wificond: Failed to get NL80211_RATE_INFO_NOISE
2022-05-16 22:01:27.819 776-776/? E/wificond: Failed to get NL80211_RATE_INFO_SNR
2022-05-16 22:01:27.819 776-776/? E/wificond: Failed to get NL80211_STA_INFO_CNAHLOAD
2022-05-16 22:01:28.450 670-670/? E/WifiHAL: enter wifi_get_link_stats
2022-05-16 22:01:28.453 776-776/? E/wificond: Failed to get NL80211_RATE_INFO_NOISE
2022-05-16 22:01:28.454 776-776/? E/wificond: Failed to get NL80211_RATE_INFO_SNR
2022-05-16 22:01:28.454 776-776/? E/wificond: Failed to get NL80211_STA_INFO_CNAHLOAD
2022-05-16 22:01:28.454 1286-1467/? E/WificondControl: Noise: 0, Snr: -1, Chload: -1
2022-05-16 22:01:31.345 802-802/? E/: [E/capacity_limit_control] not demo version, not set power control prop!
2022-05-16 22:01:31.464 670-670/? E/WifiHAL: enter wifi_get_link_stats
2022-05-16 22:01:31.476 776-776/? E/wificond: Failed to get NL80211_RATE_INFO_NOISE
2022-05-16 22:01:31.476 776-776/? E/wificond: Failed to get NL80211_RATE_INFO_SNR
2022-05-16 22:01:31.476 776-776/? E/wificond: Failed to get NL80211_STA_INFO_CNAHLOAD
2022-05-16 22:01:31.477 1286-1467/? E/WificondControl: Noise: 0, Snr: -1, Chload: -1
2022-05-16 22:01:34.486 670-670/? E/WifiHAL: enter wifi_get_link_stats
2022-05-16 22:01:34.498 776-776/? E/wificond: Failed to get NL80211_RATE_INFO_NOISE
2022-05-16 22:01:34.498 776-776/? E/wificond: Failed to get NL80211_RATE_INFO_SNR
2022-05-16 22:01:34.498 776-776/? E/wificond: Failed to get NL80211_STA_INFO_CNAHLOAD
2022-05-16 22:01:34.499 1286-1467/? E/WificondControl: Noise: 0, Snr: -1, Chload: -1

I was cleaning up my explorer and was stupid enough to delete the .gradle folder. When I recreated the folder, the real device was not install my flutter app and was stucked by "installing build/app/outputs/flutter-apk/app.apk.

In the logcat there are some weird errors, but I don't know if they have anything to do with the problem

2022-05-16 22:01:27.814 776-776/? E/wificond: Failed to get NL80211_STA_INFO_CNAHLOAD
2022-05-16 22:01:27.815 1286-1467/? E/WificondControl: Noise: 0, Snr: -1, Chload: -1
2022-05-16 22:01:27.819 776-776/? E/wificond: Failed to get NL80211_RATE_INFO_NOISE
2022-05-16 22:01:27.819 776-776/? E/wificond: Failed to get NL80211_RATE_INFO_SNR
2022-05-16 22:01:27.819 776-776/? E/wificond: Failed to get NL80211_STA_INFO_CNAHLOAD
2022-05-16 22:01:28.450 670-670/? E/WifiHAL: enter wifi_get_link_stats
2022-05-16 22:01:28.453 776-776/? E/wificond: Failed to get NL80211_RATE_INFO_NOISE
2022-05-16 22:01:28.454 776-776/? E/wificond: Failed to get NL80211_RATE_INFO_SNR
2022-05-16 22:01:28.454 776-776/? E/wificond: Failed to get NL80211_STA_INFO_CNAHLOAD
2022-05-16 22:01:28.454 1286-1467/? E/WificondControl: Noise: 0, Snr: -1, Chload: -1
2022-05-16 22:01:31.345 802-802/? E/: [E/capacity_limit_control] not demo version, not set power control prop!
2022-05-16 22:01:31.464 670-670/? E/WifiHAL: enter wifi_get_link_stats
2022-05-16 22:01:31.476 776-776/? E/wificond: Failed to get NL80211_RATE_INFO_NOISE
2022-05-16 22:01:31.476 776-776/? E/wificond: Failed to get NL80211_RATE_INFO_SNR
2022-05-16 22:01:31.476 776-776/? E/wificond: Failed to get NL80211_STA_INFO_CNAHLOAD
2022-05-16 22:01:31.477 1286-1467/? E/WificondControl: Noise: 0, Snr: -1, Chload: -1
2022-05-16 22:01:34.486 670-670/? E/WifiHAL: enter wifi_get_link_stats
2022-05-16 22:01:34.498 776-776/? E/wificond: Failed to get NL80211_RATE_INFO_NOISE
2022-05-16 22:01:34.498 776-776/? E/wificond: Failed to get NL80211_RATE_INFO_SNR
2022-05-16 22:01:34.498 776-776/? E/wificond: Failed to get NL80211_STA_INFO_CNAHLOAD
2022-05-16 22:01:34.499 1286-1467/? E/WificondControl: Noise: 0, Snr: -1, Chload: -1

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

帝王念 2025-02-05 06:41:31

您也可以打开Android Studio,即使您不经常使用它并打开项目目录,并且Gradle将重新同步,并且将重新创建.gradle文件夹。

如果这种情况不起作用,您可以做的是使用flutter创建projectName启动一个新项目,然后将所有资产和LIB文件夹复制到PubSpec.yaml文件之外,将您的所有资产和LIB文件夹复制到您的新创建的项目,而且它可以正常工作。

You can open Android Studio, even if you don't often use it and open your project directory, and the gradle will re-sync, and the .gradle folder will be recreated.

In case this did not work, what you can do is init a new project using flutter create projectname, then copying all your assets and lib folders in addition to the pubspec.yaml file to your newly created project, and it will work just fine.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文