尝试创建发布签名的 apk 时,构建在任务中失败
app:uploadCrashlyticsMappingFileRelease'.Host name must not be empty.
我已经启用了混淆功能。
buildTypes {
release {
minifyEnabled true // Enables code shrinking, obfuscation, and optimization
shrinkResources true // Enables resource shrinking, which is performed by the Android Gradle plugin
firebaseCrashlytics {
mappingFileUploadEnabled true
}
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
Run Code Online (Sandbox Code Playgroud)
另外,使用
apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'
// Apply the Crashlytics Gradle plugin
apply plugin: 'com.google.firebase.crashlytics'
implementation 'com.google.firebase:firebase-auth:20.0.1'
implementation 'com.google.firebase:firebase-firestore:22.0.1'
implementation 'com.google.firebase:firebase-core:18.0.0'
//the Firebase SDK for Google Analytics.
implementation 'com.google.firebase:firebase-analytics:18.0.0'
//the Firebase …Run Code Online (Sandbox Code Playgroud) 我想设置一个jLabel带dimension(50,75)内JFrame。
我尝试使用
label.setPreferredSize(new Dimension(50, 75));
Run Code Online (Sandbox Code Playgroud)
但它不起作用。我怎样才能做到这一点?