Hi there,
I have a tutorial project which is using Appium for automating some tests for and Android application.
The project is located at this link: https://github.com/appium/tutorial/tree/master/projects/java_android
As you can notice in the AppiumTest.java class( https://github.com/appium/tutorial/blob/master/projects/java_android/src/test/java/appium/tutorial/android/util/AppiumTest.java), there are hooks defined there and that class is extended wherever we want to use them.
When including cucumber-jvm in the project, I had run into cucumber.runtime.CucumberException: You're not allowed to extend classes that define Step Definitions or hooks. issue.