3

我在谷歌和堆栈溢出上进行了很多搜索,但没有任何帮助,上传到 Playstore 时出现此错误,应用程序运行良好但仍面临此问题。我检查了代码,但我从未在任何应用程序文件中找到主机名验证器。但是我在调​​试文件中发现这个词可以帮助我。

您的应用正在使用 HostnameVerifier 接口的不安全实现。您可以在这篇 Google 帮助中心文章中找到有关如何解决此问题的更多信息。

apply plugin: 'com.onesignal.androidsdk.onesignal-gradle-plugin'
apply plugin: 'com.android.application'
apply plugin: 'com.google.firebase.crashlytics'


android {
compileSdkVersion 29
defaultConfig {
    applicationId "xxxxxxxxxxxxxx"
    minSdkVersion 19
    targetSdkVersion 29
    versionCode 3
    versionName "1.0.2"
    testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

    manifestPlaceholders = [onesignal_app_id: "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX", onesignal_google_project_number: "REMOTE"]
    vectorDrawables.useSupportLibrary = true
    multiDexEnabled true
}
buildTypes {
    release {
        minifyEnabled false
        shrinkResources false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
    debug {
        minifyEnabled false
        shrinkResources false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}

compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8
}
}


dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
// Androidx Support Library --------------------------------------------------------------------
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.browser:browser:1.2.0'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'androidx.recyclerview:recyclerview:1.1.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'

// Google Material Library ---------------------------------------------------------------------
implementation 'com.google.android.material:material:1.1.0'

// Firebase Library ----------------------------------------------------------------------------
implementation 'com.google.firebase:firebase-auth:19.3.1'
implementation 'com.google.firebase:firebase-core:17.4.0'
implementation 'com.google.firebase:firebase-ads:19.1.0'
implementation 'com.google.firebase:firebase-messaging:20.1.6'
implementation 'com.google.firebase:firebase-analytics:17.4.0'

// Squareup API Library ------------------------------------------------------------------------
implementation 'com.squareup.picasso:picasso:2.71828'
implementation 'com.squareup.retrofit2:retrofit:2.8.1'
implementation 'com.squareup.retrofit2:converter-gson:2.8.1'

// Volley API Library --------------------------------------------------------------------------
implementation 'com.android.volley:volley:1.1.1'

// Google Libraries
implementation 'com.google.android.gms:play-services-gcm:17.0.0'
implementation 'com.google.android.gms:play-services-ads:19.1.0'
implementation 'com.google.android.gms:play-services-auth:18.0.0'

// Facebook SDK Library ------------------------------------------------------------------------
implementation 'com.facebook.shimmer:shimmer:0.5.0'
implementation 'com.facebook.fresco:fresco:2.0.0'
implementation 'com.facebook.android:facebook-login:5.15.3'

// Add the Firebase SDK for Crashlytics. -------------------------------------------------------
implementation 'com.google.firebase:firebase-crashlytics:17.0.0'

// One Signal sdk library ----------------------------------------------------------------------
implementation 'com.onesignal:OneSignal:3.15.3'

// Paytm Payment Getway Dependencies -----------------------------------------------------------
implementation('com.paytm:pgplussdk:1.4.4') {
    transitive = true
}

// Paypal Payment Getway Dependencies ----------------------------------------------------------
implementation 'com.braintreepayments.api:braintree:2.22.0'
implementation 'com.braintreepayments.api:drop-in:3.7.1'

// Third Party Dpendencies --------------------------------------------------------------------
implementation 'com.balysv:material-ripple:1.0.2'           // ripple effect
implementation 'com.github.bumptech.glide:glide:4.10.0'     // image loader
implementation 'de.hdodenhof:circleimageview:2.2.0'         // circle image view
implementation 'com.hbb20:ccp:2.3.4'                        // country code picker

annotationProcessor 'com.github.bumptech.glide:compiler:4.10.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'

}
apply plugin: 'com.google.gms.google-services'
4

0 回答 0