构建后无法打开flutter应用程序
因此,我只是整夜都在混乱,重新安装Android Studio,vScode和Vscode和Flutter,因为我试图为我的应用程序构建一个APK,该应用程序已经准备好了,该应用程序已经准备好向一些朋友进行测试。当我的手机连接到我的计算机时,我可以讨论我的应用程序没问题,所以我认为没什么大不了的,让我们推出APK并炫耀我的工作。这是一场噩梦,而且仍然是一场噩梦。
我遵循了构建Android应用程序的本步骤指南... https://docs.flutter.dev /部署/Android 因此,一旦我终于收到了所有的神秘错误,足以构建一个APK,我就将文件复制到手机上并安装了它。很快就安装了它,并且仍然在弹出窗口上,我看到了2个按钮,闭合并打开,只打开了灰色。我不能打开我的应用程序。
我尝试将TargetsDkversion更改为手机Android版本。我尝试为所有处理器构建所有可能的版本以及AppBundle and APK,而我似乎无法打开一个变体。我有键。
还有其他人构建了Flutter应用程序,但无法打开它吗?我很难过...我为Google Play Prove Protect添加了额外的弹出式弹出窗口,因此我去了并关闭了该功能。我已经将手机处于开发人员模式多年了多年,所以我知道允许未知来源。
它安装了良好,但并未在任何地方创建图标。一旦我退出原始安装弹出窗口,ID就知道它在设备上的唯一方式就是进入设置/应用程序并在此处找到它,而在那里,唯一的选项是卸载和强制停止,也将其弄清楚。因此该应用程序不可用
So I just spend the whole night messing up and reinstalling android studio and vscode and flutter cause I was trying to build an apk for my app that's ready enough to pass out to some friends for testing. when my phone is connected to my computer I can debug my app no problem so I thought no big deal lets push out an apk and show off my work. What a nightmare this has been and still is.
I followed this step by step guide to building an android app... https://docs.flutter.dev/deployment/android
So once I finally got all the mystery errors out enough for it to build an apk I copied the file over to my phone and installed it. Well soon as it installed and still on the pop up I see 2 buttons, Close and Open, only open is greyed out. I cant open my app up.
I tried changing the targetSdkVersion down to my phones android version.I tried building out every possible version and appbundle and apk for all the processors and I just cant seem to get a variant to open. I have the key.properties file all linked up, I used the keytool like in the guide.
Has anyone else build out flutter app but cant open it? I'm stumped... The first few attempts I was getting extra popups for googles play protect so I went and turned off that feature. Ive had my phone in developer mode for years now so I know unknown sources are allowed.
It installs fine, but doesnt create an icon anywhere to be used. Once i exit out of the original install popup the only way Id know it was on my device is to go into settings/apps and find it there, and in there the only options are uninstall and force stop which is also greyed out. So the app is unuseable
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论