简体   繁体   English

带有 Flutter 的 Rive(flare) 文件在 QEMU Android Emulator 上显示并正常工作,但不会在真实 Android 设备的内置 APK 上显示

[英]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 Doctor:颤振医生:

[√] 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)

I have two flare objects explicity declared on pubspec.yalm :我在 pubspec.yalm 上明确声明了两个耀斑对象:

flutter:
  uses-material-design: true
  assets:
    - assets/ericodigosSplash.gif
    - assets/ic_launcher.png
    - assets/flares/interruptorCircadiano.flr
    - assets/flares/space_vaporwave.flr

I'm already tried flare_flutter: ^2.0.1 and smart_flare dependences, neither works on a builted apk.我已经尝试过flare_flutter: ^2.0.1smart_flare依赖项,它们都不适用于smart_flare apk。

I test on two diferent android devices.我在两个不同的 android 设备上进行测试。 The flr (rive) files shows up just on emulator. flr (rive) 文件仅显示在模拟器上。

https://github.com/ericodex/ericodigos https://github.com/ericodex/ericodigos

在运行flutter build apk之前运行: flutter build bundle就可以了!

暂无
暂无

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

相关问题 Flutter 电话身份验证在模拟器上工作正常,但在真实设备上不工作(Android) - Flutter Phone authentication works fine on emulator but not working on real device (Android) Android应用程序可以在模拟器中正常运行,但不能在真实设备中运行? - Android application works fine in emulator but not in real device? Android应用程序可以在模拟器上正常运行,但不能在真实设备上运行 - Android Application works fine on emulator but not on a real device APK 文件在 android 模拟器中工作,但不会安装在我的设备上 - APK File works in android emulator but won't install on my device 声音在Android设备上无效。 在模拟器上正常工作 - Sound won't work on android device. Works fine on emulator 在flutter中从image_picker包中打开相机会导致真实设备上的应用程序崩溃,但在模拟器(android)中运行良好 - opening camera from image_picker package in flutter crashes app on real device but works fine in emulator (android) 物理设备不会显示,模拟器运行正常 - Physical device won't show up, Emulator works just fine Android应用程式可在模拟器上正常运作,但在真实装置中当机 - Android app works fine in emulator but crashes in real device 为什么Loopj库可以在android模拟器上正常运行,而不能在真实设备上运行? - why Loopj library works fine on the android emulator and doesn't run on real device? Android App 在模拟器中运行良好,但无法在真实设备中安装 - Android App running fine in Emulator but can't install in real device
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM