Failed to find byte code for com/google/firebase
I have the same error
Failed to find byte code for com/google/firebase/database/Transaction$Handler
(although i don't use firebase/database
).
Have found that disabling instant run in AndroidStudio settings resolve this issue.
In the dependencies add:
compile 'com.google.firebase:firebase-database:11.8.0'
compile 'com.google.firebase:firebase-storage:11.8.0'
to be able to use ChildEventListener
and StreamDownloadTask$StreamProcessor
Also you may have to write the other firebase dependencies
This is addressed in the latest react-native-firebase v4 release candidate, available here: https://github.com/invertase/react-native-firebase/releases/tag/v4.0.0-rc.3
The fix was ultimately to update the react-native-firebase build.gradle to use compileOnly
instead of compile
statements.