React-native-navigation: .\gradlew assembleRelease get Error react-native-navigation:compileReactNative55ReleaseJavaWithJavac

Created on 8 Dec 2018  路  6Comments  路  Source: wix/react-native-navigation

Description

i try getting android release from my project but in executing react-native-navigation get error react-native-navigation:compileReactNative55ReleaseJavaWithJavac so faild build i attached variantFilter but it isnt work

Error

E:\pol project\SurveyProject\node_modules\react-native-navigation\lib\android\app\src\reactNative55\java\com\reactnativenavigation\react\JsDevReloadHandlerFacade.java:7: error: JsDevReloadHandlerFacade is not abstract and does not override abstract method onSuccess(NativeDeltaClient) in DevBundleDownloadListener
public class JsDevReloadHandlerFacade implements DevBundleDownloadListener, NavigationDevBundleDownloadListener {
^
E:\pol project\SurveyProject\node_modules\react-native-navigation\lib\android\app\src\reactNative55\java\com\reactnativenavigation\react\ReloadHandlerFacade.java:8: error: method does not override or implement a method from a supertype
@Override
^
E:\pol project\SurveyProject\node_modules\react-native-navigation\lib\android\app\src\main\java\com\reactnativenavigation\react\ReloadHandler.java:3: error: ReloadHandler is not abstract and does not override abstract method onSuccess(NativeDeltaClient) in DevBundleDownloadListener
public class ReloadHandler extends ReloadHandlerFacade implements JsDevReloadHandler.ReloadListener {
^
E:\pol project\SurveyProject\node_modules\react-native-navigation\lib\android\app\src\reactNative55\java\com\reactnativenavigation\react\DevBundleDownloadListenerAdapter.java:7: error: DevBundleDownloadListenerAdapter is not abstract and
does not override abstract method onSuccess(NativeDeltaClient) in DevBundleDownloadListener
public class DevBundleDownloadListenerAdapter implements DevBundleDownloadListener {
^
E:\pol project\SurveyProject\node_modules\react-native-navigation\lib\android\app\src\reactNative55\java\com\reactnativenavigation\react\DevBundleDownloadListenerAdapter.java:8: error: method does not override or implement a method from a supertype
@Override
^
E:\pol project\SurveyProject\node_modules\react-native-navigation\lib\android\app\src\reactNative55\java\com\reactnativenavigation\react\NavigationReactNativeHost.java:86: error: cannot find symbol
.setUIImplementationProvider(getUIImplementationProvider())
^
symbol: method getUIImplementationProvider()
location: class NavigationReactNativeHost
E:\pol project\SurveyProject\node_modules\react-native-navigation\lib\android\app\src\reactNative55\java\com\reactnativenavigation\react\SyncUiImplementation.java:24: error: method does not override or implement a method from a supertype
@Override
^
E:\pol project\SurveyProject\node_modules\react-native-navigation\lib\android\app\src\reactNative55\java\com\reactnativenavigation\react\SyncUiImplementation.java:29: error: method does not override or implement a method from a supertype
@Override

^

Environment

  • React Native Navigation version: ^2.1.3
  • React Native version: 0.57.2
  • Platform(s) (iOS, Android, or both?): android
  • Device info (Simulator/Device? OS version? Debug/Release?):release

Most helpful comment

Use ./gradlew app:assembleRelease

All 6 comments

Use ./gradlew app:assembleRelease

Use ./gradlew app:assembleRelease

This guy works thank 馃挴

Use ./gradlew app:assembleRelease

Love you bro.

@guyca thanks for the fix, how come this works?

@bcutler94 RNN needs to support multiple RN versions. Instead of limiting support only to the latest RN version, RNN includes build flavors for each RN version. These build flavors are configured in the app module.

The basic gradle assemble command builds all flavors in your project. To build only the flavors the app module requires your need to specifically instruct gradle to do so by appending the name of the module, that's done by appending app: to the build command.

@guyca that makes a lot of sense, appreciate it. thanks for all the work you and your team do on this great package.

Was this page helpful?
0 / 5 - 0 ratings