移动项目后未找到Android Studio AndroidManifest

bnlyeluc  于 2023-02-05  发布在  Android
关注(0)|答案(1)|浏览(336)

最近,我在Android Studio中关闭了Flutter项目,然后在新位置打开它,从而将该项目移至计算机中的另一个位置。这是我尝试再次运行项目时在控制台中出现的错误。
我该怎么办?

Launching lib/main.dart on Pixel 3 XL in debug mode...
ERROR: dump failed because resource AndroidManifest.xml not found
Failed to extract manifest from APK: ProcessException: The command failed
  Command: /Users/user/Library/Android/sdk/build-tools/29.0.3/aapt dump xmltree /Users/user/Desktop/Coding Projects/Work/Smart Weighing Scale/Mobile App/loadcell_app/build/app/outputs/apk/app.apk AndroidManifest.xml.
No application found for TargetPlatform.android_arm64.
Is your project missing an android/app/src/main/AndroidManifest.xml?
Consider running "flutter create ." to create one.
m4pnthwp

m4pnthwp1#

首先检查项目的Android文件夹中的AndroidMainfest.xml,然后请尝试在终端中使用flutter clean命令(它位于Android Studio的底部),然后使用flutter create .

相关问题