正在将应用上传到Play商店,您的应用正在使用HostnameVerifier的不安全实现

时间:2020-09-17 18:43:47

标签: android-security

我在google上搜索了很多内容,但堆栈没有溢出,但没有什么是完整的帮助,我在上传到playstore时遇到此错误,应用程序运行良好,但仍然面临此问题。我检查了代码,但未在任何应用程序文件中找到hostnameverifier。但是我发现调试文件中的这个词可以帮助任何人。

您的应用正在使用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'

0 个答案:

没有答案