You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TipCalculatorTests, the unit test class we created by following the “Write automated tests” codelab, gives an error when run. The TipUITests class created for Ui testing runs smoothly. At first I thought there was a problem in my own steps, but there is the same error in the test_solution branch. I couldn't find a solution to this problem.
Yes! I've been getting this error as well. ( I actually created the test not under test/java at first )
I am on windows (Notorious for backslashes), and I went in to create directory test/java but the pre-determined option was not there (Spoiler: It was test\java) So, I went with the closest looking one: androidTest/java
And, I wrote the unit test as it is in the same, and it worked flawlessly. But, when I went to the next section of the codelab, turns out I messed up. So, I started from scratch and properly followed the codelab, only to run into NoClassDefFoundError
TipCalculatorTests, the unit test class we created by following the “Write automated tests” codelab, gives an error when run. The TipUITests class created for Ui testing runs smoothly. At first I thought there was a problem in my own steps, but there is the same error in the
test_solution
branch. I couldn't find a solution to this problem.Error message:
java.lang.NoClassDefFoundError: com/example/tiptime/MainActivityKt
Repository
https://github.com/google-developer-training/basic-android-kotlin-compose-training-tip-calculator/tree/test_solution
The text was updated successfully, but these errors were encountered: