简体   繁体   English

为什么Flutter Build Apk和Flutter无法在Release上安装

[英]Why Flutter Build Apk and Flutter install on Release not working

I'm ready to release my Flutter app but following the steps as advised but after building Apk and running flutter install to transfer on device, the app barely opens and closely immediately. 我已经准备好发布我的Flutter应用程序,但是按照建议的步骤进行操作,但是在构建Apk并运行Flutter安装以在设备上进行传输后,该应用程序几乎无法打开并立即关闭。 HOWEVER, if I then run Flutter run --release I am able to run the code on the mobile afterwards even doing another Flutter Install is ok. 但是,如果我随后运行Flutter run --release,即使再执行一次Flutter Install也可以在移动设备上运行代码。 What could be the issue here? 这里可能是什么问题?

I figured out this was to do with the different Architecture of the Mobile device the Application is to be tested eg arm or arm64. 我发现这与要测试应用程序的移动设备的不同体系结构有关,例如arm或arm64。 Therefore depending on the device, one needs to run specific release for each device set ie use flutter run release with --target-platform options with either android-arm, android-arm64, android-x86, android-x64 options to release different apks for the respective device set 因此,根据设备的不同,需要为每个设备集运行特定的发行版,即使用带有--target-platform选项的flutter运行发行版以及android-arm,android-arm64,android-x86,android-x64选项来发行不同的apk用于相应的设备集

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM