Hi my script works fine in Junit framework
But when I use Testng 6.1.0 it shows error
Error:Gradle: Execution failed for task ‘:app:transformClassesWithDesugarForDebug’.
com.android.build.api.transform.TransformException: java.lang.RuntimeException:
java.lang.RuntimeException: com.android.ide.common.process.ProcessException: Error while executing java process with main class com.google.devtools.build.android.desugar.Desugar with arguments {@C:\Users\Admin\AndroidStudioProjects\MyApplication23\app\build\intermediates\tmp\desugar_args328085686608198817}
here is a testng basic script
package com.example.admin.myapplication2;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
public class Test2 {
_ @BeforeClass_
_ public void setUp() {_
_ System.out.println(“setup”);_
_ }_
_ @Test_
_ public void test1() {_
_ System.out.println(“first”);_
_ }_
}
Please help I am stuck here for last 3 days.