react-native-ota-hot-update: Encountering Error - `Class 'OtaHotUpdateModule' is not abstract` when creating android build for v2.0.9
We are using React Native 0.73 (Old Architecture) in our project, and due to our project’s configuration, we have manually linked this package. However, after linking, when attempting to run or build the project using Android Studio, we encounter the following error:
Task :react-native-ota-hot-update:compileDebugKotlin FAILED
e: file:///Users/murtaza/Desktop/work/CarwaleMobile/node_modules/react-native-ota-hot update/android/src/main/java/com/otahotupdate/OtaHotUpdateModule.kt:21:1 Class 'OtaHotUpdateModule' is not abstract and does not implement abstract base class member public abstract fun rollbackToPreviousBundle(): Unit defined in com.otahotupdate.OtaHotUpdateSpec
If I comment out the following line in OtaHotUpdateSpec.kt , the build runs successfully:
abstract fun rollbackToPreviousBundle()
Questions:
- Why are we facing this issue?
- Is commenting out this line the correct way to handle it, or is there a better solution?
Any guidance on this would be greatly appreciated. Thanks!
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 17 (6 by maintainers)
Just released 2.1.0 to fix this issue. tis