今天我使用“react-native-firebase”和“native-base”软件包创建了一个(空的)Android应用程序。它在调试模式下工作,但在发布模式下发生崩溃。
重现问题的步骤:
react-native init BaseTest
cd BaseTest
npm install native-base --save
react-native link
https://rnfirebase.io/docs/v3.1.*/installation/initial-setup
https://rnfirebase.io/docs/v3.1.*/installation/android
https://facebook.github.io/react-native/docs/signed-apk-android.html
cd android
gradlew assembleRelease
adb install app-release.apk
我找不到错误。有没有人有任何想法?
嗨,我得到了同样的问题,它真的很让我头疼,但我设法解决了它。所以不要跑步
react-native link
运行react-native link **native-base**.
我希望这有帮助。快乐编码:)