小编ddk*_*ddk的帖子

任务“:app:uploadCrashlyticsMappingFileRelease”执行失败。主机名不能为空

尝试创建发布签名的 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)

obfuscation android proguard crashlytics android-studio

6
推荐指数
1
解决办法
4582
查看次数

设置jLabel的大小

我想设置一个jLabeldimension(50,75)JFrame

我尝试使用

label.setPreferredSize(new Dimension(50, 75)); 
Run Code Online (Sandbox Code Playgroud)

但它不起作用。我怎样才能做到这一点?

java swing jlabel

5
推荐指数
1
解决办法
2万
查看次数