简体   繁体   English

在实体android错误上运行flutter应用程序

[英]Running flutter app on physical android error

I try to run the app onto my physical android phone, and i get this error 我尝试将应用程序运行到物理Android手机上,但出现此错误

Error: ADB exited with exit code 1
adb: failed to install /Users/User/AndroidStudioProjects/appname/build/app/outputs/apk/app.apk: Failure [INSTALL_PARSE_FAILED_BAD_PACKAGE_NAME: Invalid manifest package: must have at least one '.' separator]
Error launching application on Pixel XL.

I had just updated my flutter from v.0.3.1 to v.0.7.3 and also prepped it for deployment and now im getting this error 我刚刚将Flutter从v.0.3.1更新到了v.0.7.3,并为部署做好了准备,现在我收到了此错误

i have no idea how to go about fixing this, does anyone have any suggestions? 我不知道如何解决此问题,有人有任何建议吗?

This error is because you have capital letters in your package name like this. 此错误是因为这样的软件包名称中包含大写字母。

Com.example.anubhav;

You need to change it to small letters: 您需要将其更改为小写字母:

com.example.anubhav;

You can refer to this SO post which tells you how to change package name in flutter. 您可以参考这篇SO 帖子 ,它告诉您如何在flutter中更改包名称。

It's a error to install your app at your mobile emulator, you have to clean it: 在移动模拟器上安装应用程序是错误的,您必须清理它:

  1. Open AVD Manager 打开AVD管理器
  2. Wipe Data (delete datas from emulator) 擦除数据(从模拟器中删除数据)
  3. Open emulator 打开模拟器
  4. Try to run app 尝试运行应用

In this case it's give you alert in your physical device for installation of App. 在这种情况下,它会提醒您在物理设备中安装App。 please allow to install option. 请允许安装选件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Flutter 应用程序在 Android 模拟器上运行,但不在物理设备上(OnePlus 7T) - Flutter app is running on Android Emulator but not on Physical Device (OnePlus 7T) 在物理设备上运行 android studio 应用程序“网络连接错误” - Running android studio app on physical device "ERROR IN NETWORK CONNECTION" 在物理Android设备上运行Meteor移动应用 - Running Meteor mobile app on physical Android device 在 Android (Android X) 上运行 Flutter 应用程序时出错 - Getting Error while Running Flutter App On Android (Android X) Incompatibility Flutter 应用程序未在 Android Studio 中运行 - Flutter App not running in Android studio 运行Android应用程序时出错 - Error in running android app Android错误正在运行的应用程序 - Android Error Running App 运行该应用程序时出现Android错误 - Android error on running the app React Native 应用程序中物理 Android 设备上的获取请求错误 - Fetch request error on physical Android device in React Native app 在 Android Studio 中运行 Flutter 应用程序时出错:任务 ':app:generateDebugBuildConfig' 执行失败 - ERROR When Running Flutter App in Android Studio: Execution failed for task ':app:generateDebugBuildConfig'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM