Advertisement
duongntb94

[Bug] [RN] [AD] index.android.bundle not found

Oct 11th, 2019
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. For some reason I had import com.facebook.react.BuildConfig; in my MainAplication file (I guess due to some smart ass auto import fixing feature of IntelliJ), and therefore BuildConfig.DEBUG was set to false. Because of this:
  2.  
  3. public boolean getUseDeveloperSupport() {
  4. return BuildConfig.DEBUG;
  5. }
  6. React Native was always trying to load index.android.bundle from the app pacakge, not from the dev server. Removing the import com.facebook.react.BuildConfig line fixed the issue for me
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement