Dedikisme's Blog

Ngeblog biar dibilang eksis

React Native Error Execution Failed for Task ':realm:compileReleaseJavaWithJavac'

Since realm released version 1.10.1 most of users react native got an error when run

command
1
react-native run-android

would get error like this

command
1
2
3
/home/dkurniawan/JsProjects/apa/node_modules/realm/android/src/main/java/io/realm/react/RealmReactPackage.java:18: error: method does not override or implement a method from a supertype
    @Override
    ^

while waiting for new realm update for react-native and for temporary solution to I changed my package.json file with

command
1
2
"react-native": "0.46.4",
  "realm": "1.10.0"

remove node_modules folder then run

command
1
npm i

or

command
1
yarn

then run

command
1
react-native run-android

again

Comments