hi, I trying to write Instrumentation test cases for my Android applications.When I was doing this I came across the following testsuiteconstruction failed error
android.test.suitebuilder.TestSuiteBuilder$FailedToCreateTests testSuiteConstructionFailed(android.test.suitebuilder.TestSuiteBuilder $FailedToCreateTests) java.lang.RuntimeException: Exception during suite construction at android.test.suitebuilder.TestSuiteBuilder $FailedToCreateTests.testSuiteConstructionFailed(TestSuiteBuilder.java: 239) at java.lang.reflect.Method.invokeNative(Native Method) at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:169) at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:154) at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java: 444) at android.app.Instrumentation $InstrumentationThread.run(Instrumentation.java:1447) Caused by: java.lang.NullPointerException: Method name must not be null. at java.lang.ClassCache.findMethodByName(ClassCache.java:297) at java.lang.Class.getMethod(Class.java:1014) at android.test.suitebuilder.TestMethod.getAnnotation(TestMethod.java: 60) at android.test.suitebuilder.annotation.HasMethodAnnotation.apply(HasMethodAnnotation.java: 39) at android.test.suitebuilder.annotation.HasMethodAnnotation.apply(HasMethodAnnotation.java: 30) at com.android.internal.util.Predicates $OrPredicate.apply(Predicates.java:106) at android.test.suitebuilder.annotation.HasAnnotation.apply(HasAnnotation.java: 42) at android.test.suitebuilder.annotation.HasAnnotation.apply(HasAnnotation.java: 31) at com.android.internal.util.Predicates $NotPredicate.apply(Predicates.java:122) at android.test.suitebuilder.TestSuiteBuilder.satisfiesAllPredicates(TestSuiteBuilder.java: 254) at android.test.suitebuilder.TestSuiteBuilder.build(TestSuiteBuilder.java: 190) at android.test.InstrumentationTestRunner.onCreate(InstrumentationTestRunner.java: 350) at android.app.ActivityThread.handleBindApplication(ActivityThread.java: 3929) at android.app.ActivityThread.access$2900(ActivityThread.java:119) at android.app.ActivityThread$H.handleMessage(ActivityThread.java: 1859) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:123) at android.app.ActivityThread.main(ActivityThread.java:4310) at java.lang.reflect.Method.invokeNative(Native Method) at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:860) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618) at dalvik.system.NativeStart.main(Native Method) can any one please suggest solution for this? I need it urgent. -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en

