gpt4 book ai didi

flutter - 如何解决 删除 play-services-safetynet 警告?

转载 作者:行者123 更新时间:2023-12-05 03:20:12 25 4
gpt4 key购买 nike

我正在尝试将我的应用程序投入生产,但不断收到不允许我将我的应用程序部署到生产环境的“警告”/错误。

Critical issues have been reported with the following SDK versions:

com.google.android.gms:play-services-safetynet:18.0.0

What the SDK developer told us: The SafetyNet Attestation API is beingdiscontinued and replaced by the new Play Integrity API. Beginmigration as soon as possible to avoid user disruption. The PlayIntegrity API includes all the integrity signals that SafetyNetAttestation offers and more, like Google Play licensing and bettererror messaging. Learn more and start migrating athttps://developer.android.com/training/safetynet/deprecation-timeline

我已尝试在 Stack Fix1 中进行修复在Stackfix2但没有运气。

我正在使用

dependencies:
http: ^0.13.4
json_annotation: ^4.1.0
shared_preferences: ^2.0.15
datetime_picker_formfield: ^2.0.0
image_picker: ^0.8.4+2
image_cropper: ^1.0.1
path: any
transparent_image: ^1.0.0
clippy_flutter: ^1.1.0
rxdart: ^0.26.0
font_awesome_flutter: ^8.8.1
bubble_bottom_bar: ^1.2.0
flutter_rating: ^0.0.2
sticky_headers: ^0.1.7
google_maps_flutter: ^2.1.10
geolocator: ^7.6.2
google_maps_webservice: ^0.0.19
geocoder: ^0.2.1
source_gen: ^1.0.0
flutter_counter: ^1.0.3
share: ^0.6.4
carousel_pro: ^1.0.0
dropdown_menu: ^1.1.1
flutter_flip_view: ^1.0.3
permission_handler: ^8.1.6
giffy_dialog: ^1.7.0
autocomplete_textfield: ^1.6.4
intl: ^0.17.0
url_launcher: ^6.1.5
js: ^0.6.0
universal_html: ^1.2.3
square_in_app_payments: ^1.7.4
cached_network_image: ^3.2.1
provider:
blinkid_flutter:
flutter_mapbox_autocomplete:
firebase_core: ^1.20.0
firebase_auth: ^3.6.2
cloud_firestore: ^3.1.1
edge_alert: ^0.0.1
firebase_messaging: ^11.1.0
flutter_local_notifications: ^9.1.4
badges: ^2.0.2
platform: ^3.1.0
flutter_cache_manager: ^3.3.0


flutter:
sdk: flutter
flutter_auth_buttons: ^0.3.1





cupertino_icons: ^0.1.2
emojis: ^0.9.3
firebase_app_check: ^0.0.6+18

dev_dependencies:
flutter_test:
sdk: flutter
build_runner: ^1.0.0
json_serializable: ^5.0.2

我的 build.gradle 依赖项是:

dependencies {

implementation 'androidx.appcompat:appcompat:1.0.2'
testImplementation 'junit:junit:4.12'
implementation 'com.google.firebase:firebase-analytics:17.5.0'
implementation platform('com.google.firebase:firebase-bom:30.2.0')
implementation 'com.google.firebase:firebase-core'
implementation('com.google.firebase:firebase-auth') {
exclude module: "play-services-safetynet"
}
androidTestImplementation 'androidx.test:runner:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
implementation 'com.google.firebase:firebase-messaging:20.1.0'
implementation 'com.google.android.play:integrity:1.0.1'

}

我正在使用类路径 'com.google.gms:google-services:4.3.13'

Firebase 集成:我 enter image description here

但每次我发送发布应用程序时,它都会挂起“审查中”并且没有任何反应。现在已经 2 周了,我不确定如何删除 Play Services Safety Net 错误/警告。

关于如何消除安全网错误的任何想法?我很确定问题出在 firebase 上,这就是为什么我添加了 ignore 依赖项但是。运气不好

最佳答案

请在文件 android/app/build.gradle 中排除 play-service-safetynet

dependencies {
//....
}
//add below script
configurations.all {
exclude group: 'com.google.android.gms', module: 'play-services-safetynet'
}

引用点击here !

关于flutter - 如何解决 删除 play-services-safetynet 警告?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/73245130/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com