최근에 React-native에 메타에서 update 하면서 에러가 발생하기 시작했다. 에뮬레이터 시
Task :react-native-reanimated:compileDebugJavaWithJavac FAILED
와 같은 에러를 반환했다.
해당부분은 깃헙 이 부분에 의거해 작성했다
//one>android>build.gradle
def REACT_NATIVE_VERSION = new File(['node', '--print',"JSON.parse(require('fs').readFileSync(require.resolve('react-native/package.json'), 'utf-8')).version"].execute(null, rootDir).text.trim())
...
..
...
allprojects {
repositories {
configurations.all {
resolutionStrategy {
// Remove this override in 0.65+, as a proper fix is included in react-native itself.
force "com.facebook.react:react-native:" + REACT_NATIVE_VERSION
}
}
}
}