attribute android:forceQueryable not found in Android studio when running Espresso test

Here is what I did.

At the end of the espresso recording, I noticed Android Studio automatically adds the following library to the Gradle build.xml file of the app level.

androidTestImplementation 'androidx.test.espresso:espresso-contrib:3.4.0-alpha02'

The following are my other libraries I added manually by myself according to espresso setup guide in google android developers document.

androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0'
androidTestImplementation 'androidx.test:runner:1.1.0'
androidTestImplementation 'androidx.test:rules:1.1.0'

Then I updated the above libraries to the latest versions as below(Because android studio suggested the latest versions, so I updated).

androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
androidTestImplementation 'androidx.test:runner:1.3.0'
androidTestImplementation 'androidx.test:rules:1.3.0'

Then I make the versions of espresso-contrib equal to espresso-core as below

androidTestImplementation 'androidx.test.espresso:espresso-contrib:3.3.0'

note, now both espresso-contrib and espresso-core having the version of 3.3.0

I removed the following libraries from my gradle build file also, haven't checked, what happened if they stay continuously. because my purpose is not to test but do a task continuously as a kind of robot program.

testImplementation 'junit:junit:4.13'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'

Finally, it worked, I assume the reason for the above error in the question is because of the version mismatch.