Android Studio : Cannot resolve symbol “Truth” (Truth library)

To use the Java 8 extensions, also include
com.google.truth.extensions:truth-java8-extension:0.40.

NOTE

You should call androidTestImplementation

androidTestImplementation "com.google.truth:truth::0.40"

Read Truth - Fluent assertions for Java.

Leave a Comment