在我的gradle中删除implementation 'com.google.firebase:firebase-firestore:21.3.0'
依赖项时不会发生,它仅在测试不运行应用程序时引起。
这是完整的错误消息
Cannot find a version of 'com.google.code.gson:gson' that satisfies the version constraints:
Dependency path 'myapp:app:unspecified' --> 'androidx.room:room-testing:2.2.1' --> 'androidx.room:room-migration:2.2.1' --> 'com.google.code.gson:gson:2.8.0'
Constraint path 'myapp:app:unspecified' --> 'com.google.code.gson:gson:{strictly 2.7}' because of the following reason: debugRuntimeclasspath uses version 2.7
Dependency path 'myapp:app:unspecified' --> 'com.google.firebase:firebase-firestore:21.3.0' --> 'io.grpc:grpc-android:1.21.0' --> 'io.grpc:grpc-core:1.21.0' --> 'com.google.code.gson:gson:2.7'
我该怎么办?