Problem Description:

In my Flutter project, there is a module for video monitoring live broadcast, and all projects refer to a triparty library of Flutter_ijkPlayer. If you want to know more, you can check here. However, there is a problem. Android apps will flash back, through a series of checks by Tencent’s Bugly, JNI_ERR returned from JNI_OnLoad in “XXX /xx/ xxexrau-yob5anxtr3tyyv_q ==/lib/arm/ libijksdl-so” JNI_ERR returned from JNI_OnLoad in “XXX /xx/ xxexrau-yob5anxtr3tyyv_q ==/lib/arm/libijksdl. All go to github Issues to search related content, sure enough, there are peers encountered, a simple summary can be divided into two steps:

  • 1. Create the proGuard-rules. pro file in Android /app/
  • 2. The file to add: – keep class TV. Danmaku. Ijk. Media. Player. * * {*; }

Execute the package of flutter build APk again, run perfectly without flashback!