question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

can't build flipper project in release (debug works)

See original GitHub issue

🐛 Bug Report

./gradlew assembleDebug works /gradlew assembleRelease does not work

stack trace {path}/flipper/sample/FlipperSampleApplication.java:16: error: package com.facebook.flipper.plugins.navigation does not exist import com.facebook.flipper.plugins.navigation.NavigationFlipperPlugin; ^ {path}/flipper/android/sample/src/main/java/com/facebook/flipper/sample/MainActivity.java:15: error: package com.facebook.flipper.plugins.navigation does not exist import com.facebook.flipper.plugins.navigation.NavigationFlipperPlugin; ^ {path}/flipper/android/sample/src/main/java/com/facebook/flipper/sample/DeepLinkActivity.java:12: error: package com.facebook.flipper.plugins.navigation does not exist import com.facebook.flipper.plugins.navigation.NavigationFlipperPlugin; ^ 3 errors 2 warnings

To Reproduce

Run ./gradlew assembleRelease

Expected Behavior

build is successful

Environment

Macbook : I tried building master, tag v0.28.0 and tag v0.27.0

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
vaibsshuklacommented, May 17, 2020

Hi, @passy and @frannois I am facing the same issue after upgrading it to “react-native”: “^0.62.2” It works in debug but in a release, it shows same as mentioned by @frannois. After Commenting on a flipper class while creating a build but when I use debug I have to uncomment to use a flipper. It is a wrong practice to comment and uncomment code. Kindly Suggest any solution for this.

1reaction
passycommented, Nov 21, 2019

@frannois It sounds like you’ve declared Flipper as a debugImplementation dependency. If you do this, you cannot reference any Flipper code in your release builds. This is by design as Flipper code should never be bundled into your production builds.

Read more comments on GitHub >

github_iconTop Results From Across the Web

React Native Flipper Debugging Issue : "NO APPLICATION ...
Ensure that you are running the latest version of Flipper (0.120.0 as of this message) and then:.
Read more >
How to: Debug a Release Build | Microsoft Learn
To debug a release build ; Open the Property Pages dialog box for the project. For details, see Set C++ compiler and build...
Read more >
8 Ways to Debug your React Native App with Expo
Use Flipper with Expo development builds, React Native Debugger, remote debugging, or Chrome DevTools. It's really important for us as ...
Read more >
Flipper vs React Native Debugger vs Reactotron
Comparison of 3 React Native debugging tools, what you can and cannot do with each: React Native Debugger, Flipper, and Reactotron.
Read more >
Using Hermes
We will be building a version of Hermes for you whenever we release ... Note that this is very different with the "Remote...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found