java.lang.NoSuchMethodError: ‘void okhttp3.internal.Internal.initializeInstanceForTests()

由于mockwebserver版本的问题导致的

提高mockwebserver的版本到4.8.0即可

testImplementation "com.squareup.okhttp3:mockwebserver:4.8.0"

猜你喜欢

转载自blog.csdn.net/mldxs/article/details/127836352