提问人:under 提问时间:10/23/2023 更新时间:10/23/2023 访问量:107
Flutter build Proguard 配置规则与任何内容都不匹配
Flutter build Proguard configuration rule does not match anything
问:
我正在运行 Flutter 发布版本并收到警告。完整列表见下文。Proguard configuration rule does not match anything
这应该被提升到 Flutter GitHub 问题还是我做错了什么?
我的构建命令是:(如果我删除标志,也会发生同样的情况)flutter build appbundle --release --obfuscate --split-debug-info=./build/symbols
--obfuscate
我的项目不包含任何文件。proguard-rules.pro
我的配置是:app/build.gradle
buildTypes {
release {
signingConfig signingConfigs.release
ndk {
abiFilters 'arm64-v8a', 'armeabi-v7a', 'x86_64' //, 'x86'
}
minifyEnabled true
shrinkResources true
}
}
}
我正在使用以下构建工具和设置:
- Gradle 8.4
- Gradle 插件 8.1.2
- Kotlin 版本 1.9.10
- 爪哇 17
- ndk 版本 26.0.1909125
- compileSdk版本 34
- minSdk版本 28
- targetSdk版本 34
警告的完整列表
Info: Proguard configuration rule does not match anything: `-keepclassmembers class j$.util.concurrent.ConcurrentHashMap$TreeBin {
int lockState;
}`
Info: Proguard configuration rule does not match anything: `-keepclassmembers class j$.util.concurrent.ConcurrentHashMap {
int sizeCtl;
int transferIndex;
long baseCount;
int cellsBusy;
}`
Info: Proguard configuration rule does not match anything: `-keepclassmembers class j$.util.concurrent.ConcurrentHashMap$CounterCell {
long value;
}`
Info: Proguard configuration rule does not match anything: `-keepclassmembers enum * {
public static **[] values();
public static ** valueOf(java.lang.String);
public static final synthetic <fields>;
}`
Info: Proguard configuration rule does not match anything: `-keepclassmembers class j$.util.IntSummaryStatistics {
long count;
long sum;
int min;
int max;
}`
Info: Proguard configuration rule does not match anything: `-keepclassmembers class j$.util.LongSummaryStatistics {
long count;
long sum;
long min;
long max;
}`
Info: Proguard configuration rule does not match anything: `-keepclassmembers class j$.util.DoubleSummaryStatistics {
long count;
double sum;
double min;
double max;
}`
答: 暂无答案
评论