Error Java.Lang.Runtimeexception: Stub! in Android with Fitnesse Testing

Error java.lang.RuntimeException: Stub! in Android with Fitnesse testing

android.jar contains only stub implementation of the classes. It provides the means for you app to build, once you have your APK you must run it on an android device or emulator.

If I'm not wrong you are trying to run on host's JVM.

How to resolve java.lang.RuntimeException: Stub! error in .java file?

This may have been covered before, but weka.jar only allows for Stub implementations. Essentially, you must configure the run setting to "app" instead of a specific file.

If you want to see how a specific file works, then you can use the debug option for your app.

OSGI Bundle using Android API is showing java.lang.RuntimeException: Stub! at android.util.Log.d

This copy of android.util.Log appears to be saying that's it's only a stub, rather than a real implementation. Probably it was created purely for compiling against, and is not expected to be used at runtime.

UPDATE:
The following stackoverflow question appears to confirm my guess: Error java.lang.RuntimeException: Stub! in Android with Fitnesse testing

Are you actually running on an Android device or emulator?? It seems you may be running on the standard JVM.



Related Topics



Leave a reply



Submit