gpt4 book ai didi

android - Flutter release app native crash, abort error [FATAL :flutter/shell/platform/android/library_loader. cc(24)] 检查失败:结果

转载 作者:IT王子 更新时间:2023-10-29 07:00:07 25 4
gpt4 key购买 nike

以下是崩溃日志:

Build fingerprint: 'google/walleye/walleye:9/PPR2.181005.003/4984323:user/release-keys' Revision: 'MP1' ABI: 'arm' pid: 17914, tid: 17914, name: yapp.mobile.app >>> myapp.mobile.app <<< signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr -------- Abort message: '[FATAL:flutter/shell/platform/android/library_loader.cc(24)] Check failed: result. '

我意识到 yapp.mobile.app 与我的 applicationId (myapp.mobile.app) 不匹配,我想知道是否这会导致问题。

另外,从它的外观来看,它可能是我的 sqlite 库,它来自使用 sflite 进行 flutter 的 flutter 插件,但不确定我在下面设置的混淆器是否包含它。

我读过在我的 build.gradle 中删除 minifyEnabled true 可能是一个可能的修复。

我也不知道那条消息想告诉我什么,任何帮助或指导都会很棒。

build.gradle:

signingConfigs {
release {
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile file(keystoreProperties['storeFile'])
storePassword keystoreProperties['storePassword']
}
}
buildTypes {
release {
signingConfig signingConfigs.release

minifyEnabled true
useProguard true

proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

flutter {
source '../..'
}

dependencies {
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
}

proguard-rules.pro:

#Flutter Wrapper
-keep class io.flutter.app.** { *; }
-keep class io.flutter.plugin.** { *; }
-keep class io.flutter.util.** { *; }
-keep class io.flutter.view.** { *; }
-keep class io.flutter.** { *; }
-keep class io.flutter.plugins.** { *; }

最佳答案

在我的例子中,这是因为一个库没有被标记为继续 proguard-rules.pro,然后我像这样改变了:

#Flutter Wrapper
-keep class io.flutter.app.** { *; }
-keep class io.flutter.plugin.** { *; }
-keep class io.flutter.util.** { *; }
-keep class io.flutter.view.** { *; }
-keep class io.flutter.** { *; }
-keep class io.flutter.plugins.** { *; }
-keep class vn.hunghd.flutterdownloader.** { *; }
-keep class com.baseflow.permissionhandler.** { *; }

正如我所说,就我而言,您可以通过查看导入来检查是否属于您的情况:

/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant

关于android - Flutter release app native crash, abort error [FATAL :flutter/shell/platform/android/library_loader. cc(24)] 检查失败:结果,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52503853/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com