Solved: How to fix Exception in thread "main" java.lang.BootstrapMethodError: java.lang.NoClassDefFoundError ?

Some of you might be experiencing below error while executing tests via TestNG:

[RemoteTestNG] detected TestNG version 7.0.1
Exception in thread "main" java.lang.BootstrapMethodError: java.lang.NoClassDefFoundError: com/google/inject/Stage
    at org.testng.internal.Configuration.<init>(
    at org.testng.TestNG.init(
    at org.testng.TestNG.<init>(
    at org.testng.remote.AbstractRemoteTestNG.<init>(
    at org.testng.remote.RemoteTestNG.main(
Caused by: java.lang.NoClassDefFoundError: com/google/inject/Stage

How to Fix?

Simply update TestNG version to 7.2.x. Fixed! That's it. Happy Testing :)