[英]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: 在移动模拟器上安装应用程序是错误的,您必须清理它:
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.