我的应用程序编译时,发行版和调试版均无任何错误。在调试中可以绝对完美地工作,但是当我为Play Store(发行版)构建时,我的RecyclerViews如下所示: Screenshot RecyclerView
此外,当我单击任何卡片进行编辑时,编辑屏幕中的TextViews也保持空白。什么会导致此行为?
app> build.gradle:
应用插件:“ com.android.application”应用插件:“ kotlin-android”应用插件:“ kotlin-android-extensions”应用插件:“ org.jetbrains.kotlin.android.extensions”
check.dependsOn'assembleDebugAndroidTest'
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.myapp"
minSdkVersion 26
targetSdkVersion 28
versionCode 3
versionName "3.0"
multiDexEnabled true
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
}
buildTypes {
release {
minifyEnabled true
//proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.debug
lintOptions {
checkReleaseBuilds false
}
}
}
}
configurations.all {
resolutionStrategy.force 'com.android.support:support-annotations:28.0.0'
}
androidExtensions {
experimental = true
}
dependencies {
implementation 'com.google.firebase:firebase-core:17.2.1'
implementation 'com.google.firebase:firebase-inappmessaging-display:19.0.1'
implementation project(":internal:lintchecks")
implementation project(":internal:chooser")
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.50"
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.recyclerview:recyclerview:1.0.0'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'com.google.android.material:material:1.0.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'com.firebaseui:firebase-ui-database:4.3.2'
implementation 'com.google.firebase:firebase-core:17.2.1'
implementation 'com.google.firebase:firebase-auth:19.1.0'
implementation 'com.google.firebase:firebase-database:19.2.0'
implementation 'androidx.arch.core:core-runtime:2.1.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
androidTestImplementation 'androidx.test:rules:1.2.0'
androidTestImplementation 'androidx.test:runner:1.2.0'
}
apply plugin: 'com.google.gms.google-services' // Google Play services Gradle plugin
将minifyEnabled
设置为false
buildTypes {
release {
minifyEnabled false
//...
}
}