【发布时间】:2019-05-10 11:33:50
【问题描述】:
build.gradel 文件时收到我的通知 minifyEnabled 错误, 但是每当我们更改未在我签名的发布 APK 中收到的 minifyEnabled true 通知时。 这是我的 build.gradel 文件,
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.abc.xyz.test"
minSdkVersion 15
targetSdkVersion 28
versionCode 10
versionName "1.0.8"
multiDexEnabled true
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
signingConfig signingConfigs.brand_champs
}
lintOptions {
disable 'GoogleAppIndexingWarning'
warningsAsErrors true
checkReleaseBuilds false
}
dexOptions {
javaMaxHeapSize "4g"
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'),
'proguard-rules.pro'
debuggable false
jniDebuggable false
renderscriptDebuggable false
zipAlignEnabled false
}
debug {
debuggable true
zipAlignEnabled false
jniDebuggable false
minifyEnabled false
}
}
}
【问题讨论】:
-
请分享您的接收器代码和构建配置
-
@Maelig 抱歉耽搁了,我更新了我的 Gradel 文件,请立即查看
-
我的接收器是完美的,因为,当我在调试模式下运行应用程序时收到通知“minifyEnabled false”,当我更改此“minifyEnabled true”并构建未收到时间通知时
-
我猜 proguard 正在搞乱你的课程,检查这个答案并调整它以添加你的课程,然后再试一次stackoverflow.com/a/29864309/1243048
标签: android push-notification firebase-cloud-messaging android-notifications