[英]Flutter Phone authentication works fine on emulator but not working on real device (Android)
[英]Rive(flare) files with Flutter show and works fine on QEMU Android Emulator but won't shows on a builted APK in real android device
颤振医生:
[√] Flutter (Channel master, v1.14.7-pre.24, on Microsoft Windows [versão 10.0.18363.592], locale pt-BR)
[√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[√] Chrome - develop for the web
[X] Visual Studio - develop for Windows
X Visual Studio not installed; this is necessary for Windows development.
Download at https://visualstudio.microsoft.com/downloads/.
Please install the "Desktop development with C++" workload, including the following components:
MSBuild
MSVC v142 - VS 2019 C++ x64/x86 build tools
- If there are multiple build tool versions available, install the latest
Windows 10 SDK (10.0.17763.0)
[√] Android Studio (version 3.5)
[√] VS Code (version 1.41.1)
[√] Connected device (3 available)
我在 pubspec.yalm 上明确声明了两个耀斑对象:
flutter:
uses-material-design: true
assets:
- assets/ericodigosSplash.gif
- assets/ic_launcher.png
- assets/flares/interruptorCircadiano.flr
- assets/flares/space_vaporwave.flr
我已经尝试过flare_flutter: ^2.0.1
和smart_flare
依赖项,它们都不适用于smart_flare
apk。
我在两个不同的 android 设备上进行测试。 flr (rive) 文件仅显示在模拟器上。
在运行flutter build apk
之前运行: flutter build bundle
就可以了!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.