yandexmobile / react-native-appmetrica

React Native bridge to the AppMetrica on both iOS and Android.
MIT License
52 stars 132 forks source link

Ошибка Android #5

Closed niocncn closed 6 years ago

niocncn commented 6 years ago

При компиляции под андроид вылетает такая ошибка

AppMetricaPackage is not abstract and does not override abstract method createJSModules() in ReactPackage
public class AppMetricaPackage implements ReactPackage {
       ^
1 error
:react-native-appmetrica:compileReleaseJavaWithJavac FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-appmetrica:compileReleaseJavaWithJavac'.
> Compilation failed; see the compiler error output for details.`

Как быть?

RN 0.46.4

doochik commented 6 years ago

I think you should upgrade RN to 0.47+ because of breaking changes with createJSModules for Android. https://github.com/facebook/react-native/releases/tag/v0.47.2

niocncn commented 6 years ago

Thanks!