react-native-clear-app-cache
react-native-clear-app-cache copied to clipboard
安卓报错
node_modules/react-native-clear-app-cache/android/src/main/java/com/learnta/clear/ClearCachePackage.java:22: 错误: 方法不会覆盖或实现超类型的方法 @Override ^ 1 个错误 :react-native-clear-app-cache:compileReleaseJavaWithJavac FAILED
FAILURE: Build failed with an exception.
- What went wrong: Execution failed for task ':react-native-clear-app-cache:compileReleaseJavaWithJavac'.
Compilation failed; see the compiler error output for details.
- Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 11.902 secs Could not install the app on the device, read the error above for details. Make sure you have an Android emulator running or a device connected and have set up your Android development environment: https://facebook.github.io/react-native/docs/android-setup.html
下载了 demo, 测试还是相同的结果 ios 是好的
@override 注释即可,rn版本不同导致
same issue here
node_modules/react-native-clear-app-cache/android/src/main/java/com/learnta/clear/ClearCachePackage.java:22: 错误: 方法不会覆盖或实现超类型的方法 @override ^ 1 个错误
->delete @override
清除缓存后,重新进入app ,发生闪退