method does not override or implement a method from a supertype @Override
See original GitHub issuei have updated react-native version from 0.44.0 to 0.48.1, after which i am unable to make a build. it is giving this error
myapp\node_modules\react-native-device-info\android\src\main\java\com\learnium\RNDeviceInfo\RNDeviceInfo.java:26: error: method does not override or implement a method from a supertype
@Override
^
1 error
:react-native-device-info:compileReleaseJavaWithJavac FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':react-native-device-info:compileReleaseJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
Issue Analytics
- State:
- Created 6 years ago
- Comments:36
Top Results From Across the Web
java - method does not override or implement a method from a ...
The problem is what the error message is saying: "the method does not override or implement a method from a supertype". You annotated...
Read more >error: method does not override or implement a ... - Treehouse
The problem here is the @Override annotation and the concept of inheritance. Just as we inherit genes from our parents, classes inherit fields ......
Read more >method does not override or implement a meth - java help on ...
The Snake class must have a public void move() method. · The SnakeGame class must override the Game parent class's onTurn(int) method. ·...
Read more >"method does not override or implement a method ... - Reddit
If I remove override, as someone suggested, I would get another error, since the method is already in "funcionario" so I shouldn't even...
Read more >What is @Override? Fix method does not override ... - YouTube
What is @ Override ? Fix method does not override or implement a method from a supertype.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It is a known issue easy fixed.
It is due to a RN breaking change so just remove
@Override
inRNDeviceInfo.java
What is wrong:
replace with:
try
yarn upgrade react-native-device-info
It solved the issue for me