Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Continue with debugging after publish release version (Android) #16793

Closed
mriza1815 opened this issue Nov 11, 2017 · 3 comments
Closed

Continue with debugging after publish release version (Android) #16793

mriza1815 opened this issue Nov 11, 2017 · 3 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@mriza1815
Copy link

Is this a bug report?

Yes

Have you read the Contributing Guidelines?

No

Environment

Environment:
OS: macOS
Ide : Android Studio
Emulator : Adb, genymotion

Packages: (wanted => installed)
react-native: 0.45.1 => 0.45.1
react: 16.0.0-alpha.12 => 16.0.0-alpha.12
native-base : 2.1.4 => 2.1.4

Target Platform: Android (23)

Steps to Reproduce

  1. Make offline bundle with " react-native bundle"
  2. Generated signin apk
  3. Published on google play
  4. Running "react-native run-android" for continue with development, want to see dev menu

Expected Behavior

Want to running apk from react packager (development server) and continue debugging with development mode

Actual Behavior

  1. App open on emulator and immediately crash
  2. Got this error on android monitor logcat : "Unable to load script from assets 'index.android.bundle'.Make sure your bundle is packaged correctly or you are running a package server.""

More Info

If a created index.android.bundle file with react-native bundle, debug-apk work. But can't reach development menu. I don't want to offline mode on debug, i want to running from local server so i continue my development. In ios, everything working correctly
I also tried this commands :

  1. react-native start > /dev/null 2>&1 &
  2. adb reverse tcp:8081 tcp:8081
  3. Change package name
  4. Trying different os (ubuntu)
  5. Delete all node, all tmp and install again
  6. start packager with delete cache
@mriza1815 mriza1815 changed the title Continue with debugging after publish release version with react-native bundle (Android) Continue with debugging after publish release version (Android) Nov 11, 2017
@yinghang
Copy link

Did you build the app in release mode?

@mriza1815
Copy link
Author

@yinghang Yes. But i found my own solution.
Somehow i added this import "import com.facebook.react.BuildConfig;" on MainApplication.java. I deleted this line and problem solved
Thanks for the reply

@StanislavSergeev
Copy link

Hi, @mriza1815
I have same issue.
However I don't have
import com.facebook.react.BuildConfig;

I need some help.
Thanks.

@facebook facebook locked as resolved and limited conversation to collaborators Nov 16, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Nov 16, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

4 participants