react-native-clear-app-cache icon indicating copy to clipboard operation
react-native-clear-app-cache copied to clipboard

安卓报错

Open zuijiaoluo opened this issue 6 years ago • 5 comments

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

zuijiaoluo avatar Apr 01 '18 14:04 zuijiaoluo

下载了 demo, 测试还是相同的结果 ios 是好的

zuijiaoluo avatar Apr 01 '18 14:04 zuijiaoluo

@override 注释即可,rn版本不同导致

midas-gufei avatar Apr 02 '18 02:04 midas-gufei

same issue here

mahmoudafer avatar Sep 27 '18 15:09 mahmoudafer

node_modules/react-native-clear-app-cache/android/src/main/java/com/learnta/clear/ClearCachePackage.java:22: 错误: 方法不会覆盖或实现超类型的方法 @override ^ 1 个错误

->delete @override

midas-gufei avatar Sep 27 '18 23:09 midas-gufei

清除缓存后,重新进入app ,发生闪退

zhoujian12345 avatar Nov 16 '18 07:11 zhoujian12345