-
Notifications
You must be signed in to change notification settings - Fork 192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
android 闪退 #13
Comments
#11 应该是一个问题 这边看一下logcat看是不是提示没找到flutter.so |
是的 04-24 17:19:01.696 20034 20034 E AndroidRuntime: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/io.agora.agorartcengineexample-1/base.apk"],nativeLibraryDirectories=[/data/app/io.agora.agorartcengineexample-1/lib/arm, /data/app/io.agora.agorartcengineexample-1/base.apk!/lib/armeabi-v7a, /vendor/lib, /system/lib]]] couldn't find "libflutter.so" |
解决了 flutter build --release |
flutter/flutter#18494 (comment) 这个问题在 Flutter 上也有 issue ,应该是 Flutter 在打包的时候,32位、64位中只会有一个打进去,按道理来说,如果只是本地debug,不管你是模拟器,还是32位的手机,还是64位的手机,Flutter 会根据你打包时选择的机器的类型来打包,所以本地debug应该不会有这个问题,只有打release才有这样的问题。 我手机是64位的,在手机上debug,会crash,之所以有问题,应该是 d1c2ec9 这次改动引起的,这里加了armeabi-v7a 和 x86,但是没有加 arm64-v8a
为了兼顾 release 模式,可以暂时采用第二种解决方法,但是正式发布绝对不能用第二种方法,因为还包含了 x86 的 so |
感觉如果 flutter 不修复的话,应用只能是些 workaround,比如可以使用
正式的发版的话,现在看起来都是使用 spilt apks,可能目前没有考虑到部分国内独特的发布方式(直接 apk 发布) |
@guohai 对,但这个应该只有在打 release 包的时候才会有这样的问题,用debug是不会有问题的 |
能在x86Android上正常运行,但 在 MI8,vivo Y67上无法正常运行,一打开,就闪退了
The text was updated successfully, but these errors were encountered: