React-native-navigation: [V2][Android] Cannot assemble release

Created on 24 Oct 2018  Â·  4Comments  Â·  Source: wix/react-native-navigation

Issue Description

Works fine with

react-native run-android

followed all the installation instruction.
but cannot assemble release

Steps to Reproduce / Code Snippets / Screenshots

execute

./gradlew assembleRelease

will have output

node_modules/react-native-navigation/lib/android/app/src/reactNative57WixFork/java/com/reactnativenavigation/react/SyncUiImplementation.java:10: error: cannot find symbol
import com.facebook.react.uimanager.UIImplementationProvider;
                                   ^
  symbol:   class UIImplementationProvider
  location: package com.facebook.react.uimanager

Environment

  • React Native Navigation version: 2.0.2612
  • React Native version: 0.57.1
  • Platform(s) (iOS, Android, or both?): Android

Most helpful comment

@jp928 That's one solution. Internally at Wix, we don't use the run android command and instead build directly with gradle - ./graldew app:assembleDebug. The app: prefix is important as it tells gradle to use the configurations declared in the app module in app/build.gradle

All 4 comments

I guess I need to add ignore config as mentioned
https://github.com/wix/react-native-navigation/issues/3388#issuecomment-399071604

with
‘’’
name.contain(‘reactNative57WixFork’)
‘’’

@jp928 That's one solution. Internally at Wix, we don't use the run android command and instead build directly with gradle - ./graldew app:assembleDebug. The app: prefix is important as it tells gradle to use the configurations declared in the app module in app/build.gradle

@jp928 That's one solution. Internally at Wix, we don't use the run android command and instead build directly with gradle - ./graldew app:assembleDebug. The app: prefix is important as it tells gradle to use the configurations declared in the app module in app/build.gradle

You saved my life

@guyca can you tell me in what page, docs or wherever you find that information? I ussually use gradlew assembleRelease for cretate the APK but that command threws me an error today and when i used the 'app:' prefix everything was fine. I know my cuestion is not related with this use but i can't find official's docs

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kiroukou picture kiroukou  Â·  3Comments

yayanartha picture yayanartha  Â·  3Comments

bdrobinson picture bdrobinson  Â·  3Comments

switchtrue picture switchtrue  Â·  3Comments

birkir picture birkir  Â·  3Comments