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
Changing Text Color of Menu Item in Navigation Drawer
How to Do Circular Scrolling on Viewpager
How to Test If a Fragment View Is Visible to the User
Android:How to Update the Selector(Statelistdrawable) Programmatically
Measuring a View Before Rendering It
How to Simulate Accelerometer in Android Emulator
Android Google Maps API V2 Zoom to Current Location
Preventing/Catching "Illegalargumentexception: Parameter Must Be a Descendant of This View" Error
How to Use Device Default Theme for App
Android: Using Objectanimator to Translate a View with Fractional Values of the View's Dimension
Android Tabwidget Detect Click on Current Tab
Android Calling Asynctask Right After an Another Finished
Why Does Gradle Build My Module in Release Mode When the App Is in Debug
Android. Scrolling 2 Listviews Together
Google Cloud Messaging - Messages Sometimes Not Received Until Network State Changed
Circular Dependencies Cannot Exist in Relativelayout, Android