最近,我在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.
1条答案
按热度按时间m4pnthwp1#
首先检查项目的Android文件夹中的
AndroidMainfest.xml
,然后请尝试在终端中使用flutter clean
命令(它位于Android Studio的底部),然后使用flutter create .