非常感谢王利华老师出的React Native相关的教程,
由于刚接触RN,有幸看到王利华老师的教程,真是受益匪浅,十分感谢。
在运行王利华老师开源的《厕所在哪》https://github.com/vczero/toilet这个项目的时候,出现如下问题:
:app:compileDebugJavaWithJavac
E:
pm oilet oiletandroidappsrcmainjavacom oiletMainActivity.java:34:
pm oilet oiletandroidappsrcmainjavacom oiletMainActivity.java:34:
错误: 方法不会覆盖或实现超类型的方法
@Override
^
1 个错误
:app:compileDebugJavaWithJavac FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ’:app:compileDebugJavaWithJavac’.
> 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: 7.883 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:
注释掉androidappsrcmainjavacom oiletMainActivity.java的@Override后编译通过,
但是安装失败,打开异常。
是否是环境的问题,应该从哪个方面着手解决这个问题?
此问题先记录待进一步解决。