android - Flutter Error: Failed to extract manifest from APK: ProcessException: %1 is not a valid Win32 application
问题描述
I am attempting to run a flutter project on Android studio(V3.5)and getting the error below. This is happening for both older and new projects. The solutions i have tried are:
1. flutter clean. 2. upgrading flutter sdk. 3. reinstalling the flutter sdk. 4. checked that user folder name has no spaces 5. created an environment variable called ANDROID_HOME and set its value to the path of the android sdk 6. Invalidate caches/ Restart
but neither of these work. Any help would be appreciated.
Failed to extract manifest from APK: ProcessException: %1 is not a valid Win32 application.
Command: C:\Users\shiru\AppData\Local\Android\sdk\build-tools\29.0.2\aapt.EXE dump xmltree C:\Users\shiru\FlutterProjects\mobile_bank\build\app\outputs\apk\app.apk AndroidManifest.xml.
Problem building Android application: see above error(s).
解决方案
更新 android SDK 工具就可以了。
推荐阅读
- amazon-web-services - 为 AWS SQS Java API 启用压缩或如何判断它是否已启用?
- mysql - 连接 MySQL 失败:权限被拒绝
- css - 位置固定(使元素位于包含剪切区域之外)但滚动
- sql-server - 使用 Powershell 脚本查找 SQL Server 实例的想法
- amazon-ecs - 如果 AWS ECR 存储库不存在,则创建它
- sql - 添加索引 - 资源池“默认”中的系统内存不足,无法运行此查询
- maven - Spring-boot:Proguard混淆战争:WAR文件中没有主要清单属性
- android - JSONArray 使用 Retrofit 库解析并在 ListView 上显示
- c# - 如何通过蓝牙从 Unity C# android 应用程序向 Arduino 发送字符串?
- python - python脚本来监控windows上函数的执行