mikehardy / rnfbdemo

Demonstrator App for react-native-firebase
Apache License 2.0
161 stars 129 forks source link

react-native-firebase:compileDebugJavaWithJavac FAILED #2

Closed kirandash closed 5 years ago

kirandash commented 5 years ago

I followed the instructions. Ran make-demo-rn59.sh after cloning the repo. Placed google-services.json file inside of android/app folder. Now when I run the command react-native run-android, I get the below error.

Manifest merger failed : Attribute application@appComponentFactory value=(androidx.core.app.CoreComponentFactory) from [androidx.core:core:1.0.0] AndroidManifest.xml:22:18-86
        is also present at [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91 value=(android.support.v4.app.CoreComponentFactory).
        Suggestion: add 'tools:replace="android:appComponentFactory"' to <application> element at AndroidManifest.xml:7:5-117 to override.

Did some research online and found out that placing the below properties in gradle.properties fixes this issue.

android.useAndroidX=true
android.enableJetifier=true

But now I am getting another error:

> Configure project :react-native-firebase
react-native-firebase: using React Native prebuilt binary from /home/truuue/Desktop/react-native/rnfbdemo/rnfbdemo/rnfbdemo/node_modules/react-native/android

> Task :react-native-firebase:compileDebugJavaWithJavac FAILED
/home/truuue/Desktop/react-native/rnfbdemo/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/ReactNativeFirebaseAppRegistrar.java:20: error: package android.support.annotation does not exist
import android.support.annotation.Keep;
                                 ^
/home/truuue/Desktop/react-native/rnfbdemo/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/ReactNativeFirebaseAppRegistrar.java:29: error: cannot find symbol
@Keep
 ^
  symbol: class Keep
/home/truuue/Desktop/react-native/rnfbdemo/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/messaging/RNFirebaseMessagingService.java:5: error: package android.support.v4.content does not exist
import android.support.v4.content.LocalBroadcastManager;
                                 ^
/home/truuue/Desktop/react-native/rnfbdemo/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/messaging/RNFirebaseMessaging.java:7: error: cannot find symbol
import android.support.v4.app.NotificationManagerCompat;
                             ^
  symbol:   class NotificationManagerCompat
  location: package android.support.v4.app
/home/truuue/Desktop/react-native/rnfbdemo/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/messaging/RNFirebaseMessaging.java:8: error: package android.support.v4.content does not exist
import android.support.v4.content.LocalBroadcastManager;
                                 ^
/home/truuue/Desktop/react-native/rnfbdemo/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/storage/RNFirebaseStoragePackage.java:3: error: package android.support.annotation does not exist
import android.support.annotation.RequiresPermission;
                                 ^
/home/truuue/Desktop/react-native/rnfbdemo/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseNotifications.java:10: error: cannot find symbol
import android.support.v4.app.RemoteInput;
                             ^
  symbol:   class RemoteInput
  location: package android.support.v4.app
/home/truuue/Desktop/react-native/rnfbdemo/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseNotifications.java:11: error: package android.support.v4.content does not exist
import android.support.v4.content.LocalBroadcastManager;
                                 ^
/home/truuue/Desktop/react-native/rnfbdemo/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseNotificationManager.java:20: error: package android.support.annotation does not exist
import android.support.annotation.RequiresApi;
                                 ^
/home/truuue/Desktop/react-native/rnfbdemo/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseNotificationManager.java:21: error: package android.support.v4.content does not exist
import android.support.v4.content.LocalBroadcastManager;
                                 ^
/home/truuue/Desktop/react-native/rnfbdemo/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseBackgroundNotificationActionReceiver.java:8: error: cannot find symbol
import android.support.v4.app.RemoteInput;
                             ^
  symbol:   class RemoteInput
  location: package android.support.v4.app
/home/truuue/Desktop/react-native/rnfbdemo/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/DisplayNotificationTask.java:15: error: cannot find symbol
import android.support.v4.app.NotificationCompat;
                             ^
  symbol:   class NotificationCompat
  location: package android.support.v4.app
/home/truuue/Desktop/react-native/rnfbdemo/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/DisplayNotificationTask.java:16: error: cannot find symbol
import android.support.v4.app.RemoteInput;
                             ^
  symbol:   class RemoteInput
  location: package android.support.v4.app
/home/truuue/Desktop/react-native/rnfbdemo/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/DisplayNotificationTask.java:407: error: package NotificationCompat does not exist
  private NotificationCompat.Action createAction(
                            ^
/home/truuue/Desktop/react-native/rnfbdemo/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/DisplayNotificationTask.java:494: error: cannot find symbol
  private RemoteInput createRemoteInput(Bundle remoteInput) {
          ^
  symbol:   class RemoteInput
  location: class DisplayNotificationTask
/home/truuue/Desktop/react-native/rnfbdemo/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/analytics/RNFirebaseAnalyticsPackage.java:3: error: package android.support.annotation does not exist
import android.support.annotation.RequiresPermission;
                                 ^
/home/truuue/Desktop/react-native/rnfbdemo/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/storage/RNFirebaseStoragePackage.java:17: error: cannot find symbol
  @RequiresPermission(
   ^
  symbol:   class RequiresPermission
  location: class RNFirebaseStoragePackage
/home/truuue/Desktop/react-native/rnfbdemo/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseNotificationManager.java:370: error: cannot find symbol
  @RequiresApi(api = 26)
   ^
  symbol:   class RequiresApi
  location: class RNFirebaseNotificationManager
/home/truuue/Desktop/react-native/rnfbdemo/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseNotificationManager.java:384: error: cannot find symbol
  @RequiresApi(api = 26)
   ^
  symbol:   class RequiresApi
  location: class RNFirebaseNotificationManager
/home/truuue/Desktop/react-native/rnfbdemo/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseNotificationManager.java:398: error: cannot find symbol
  @RequiresApi(api = 26)
   ^
  symbol:   class RequiresApi
  location: class RNFirebaseNotificationManager
/home/truuue/Desktop/react-native/rnfbdemo/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseNotificationManager.java:414: error: cannot find symbol
  @RequiresApi(api = 26)
   ^
  symbol:   class RequiresApi
  location: class RNFirebaseNotificationManager
/home/truuue/Desktop/react-native/rnfbdemo/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseNotificationManager.java:457: error: cannot find symbol
  @RequiresApi(api = 26)
   ^
  symbol:   class RequiresApi
  location: class RNFirebaseNotificationManager
/home/truuue/Desktop/react-native/rnfbdemo/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/analytics/RNFirebaseAnalyticsPackage.java:17: error: cannot find symbol
  @RequiresPermission(
   ^
  symbol:   class RequiresPermission
  location: class RNFirebaseAnalyticsPackage
/home/truuue/Desktop/react-native/rnfbdemo/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/messaging/RNFirebaseMessagingService.java:26: error: cannot find symbol
    LocalBroadcastManager
    ^
  symbol:   variable LocalBroadcastManager
  location: class RNFirebaseMessagingService
/home/truuue/Desktop/react-native/rnfbdemo/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/messaging/RNFirebaseMessagingService.java:41: error: cannot find symbol
      LocalBroadcastManager
      ^
  symbol:   variable LocalBroadcastManager
  location: class RNFirebaseMessagingService
/home/truuue/Desktop/react-native/rnfbdemo/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/messaging/RNFirebaseMessagingService.java:51: error: cannot find symbol
        LocalBroadcastManager
        ^
  symbol:   variable LocalBroadcastManager
  location: class RNFirebaseMessagingService
/home/truuue/Desktop/react-native/rnfbdemo/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/messaging/RNFirebaseMessaging.java:36: error: cannot find symbol
    LocalBroadcastManager localBroadcastManager = LocalBroadcastManager.getInstance(context);
    ^
  symbol:   class LocalBroadcastManager
  location: class RNFirebaseMessaging
/home/truuue/Desktop/react-native/rnfbdemo/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/messaging/RNFirebaseMessaging.java:36: error: cannot find symbol
    LocalBroadcastManager localBroadcastManager = LocalBroadcastManager.getInstance(context);
                                                  ^
  symbol:   variable LocalBroadcastManager
  location: class RNFirebaseMessaging
/home/truuue/Desktop/react-native/rnfbdemo/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/messaging/RNFirebaseMessaging.java:90: error: cannot find symbol
    Boolean enabled = NotificationManagerCompat
                      ^
  symbol:   variable NotificationManagerCompat
  location: class RNFirebaseMessaging
/home/truuue/Desktop/react-native/rnfbdemo/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseNotifications.java:54: error: cannot find symbol
    LocalBroadcastManager localBroadcastManager = LocalBroadcastManager.getInstance(context);
    ^
  symbol:   class LocalBroadcastManager
  location: class RNFirebaseNotifications
/home/truuue/Desktop/react-native/rnfbdemo/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseNotifications.java:54: error: cannot find symbol
    LocalBroadcastManager localBroadcastManager = LocalBroadcastManager.getInstance(context);
                                                  ^
  symbol:   variable LocalBroadcastManager
  location: class RNFirebaseNotifications
/home/truuue/Desktop/react-native/rnfbdemo/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseNotifications.java:308: error: cannot find symbol
    Bundle remoteInput = RemoteInput.getResultsFromIntent(intent);
                         ^
  symbol:   variable RemoteInput
  location: class RNFirebaseNotifications
/home/truuue/Desktop/react-native/rnfbdemo/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseNotificationManager.java:204: error: cannot find symbol
      LocalBroadcastManager
      ^
  symbol:   variable LocalBroadcastManager
  location: class RNFirebaseNotificationManager
/home/truuue/Desktop/react-native/rnfbdemo/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseBackgroundNotificationActionReceiver.java:62: error: cannot find symbol
      Bundle remoteInput = RemoteInput.getResultsFromIntent(intent);
                           ^
  symbol:   variable RemoteInput
  location: class RNFirebaseBackgroundNotificationActionReceiver
/home/truuue/Desktop/react-native/rnfbdemo/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/DisplayNotificationTask.java:81: error: package NotificationCompat does not exist
      NotificationCompat.Builder nb;
                        ^
/home/truuue/Desktop/react-native/rnfbdemo/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/DisplayNotificationTask.java:84: error: package NotificationCompat does not exist
        nb = new NotificationCompat.Builder(context, channelId);
                                   ^
/home/truuue/Desktop/react-native/rnfbdemo/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/DisplayNotificationTask.java:87: error: package NotificationCompat does not exist
        nb = new NotificationCompat.Builder(context);
                                   ^
/home/truuue/Desktop/react-native/rnfbdemo/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/DisplayNotificationTask.java:130: error: package NotificationCompat does not exist
        NotificationCompat.BigPictureStyle bp = new NotificationCompat.BigPictureStyle();
                          ^
/home/truuue/Desktop/react-native/rnfbdemo/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/DisplayNotificationTask.java:130: error: package NotificationCompat does not exist
        NotificationCompat.BigPictureStyle bp = new NotificationCompat.BigPictureStyle();
                                                                      ^
/home/truuue/Desktop/react-native/rnfbdemo/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/DisplayNotificationTask.java:158: error: package NotificationCompat does not exist
        NotificationCompat.BigTextStyle bt = new NotificationCompat.BigTextStyle();
                          ^
/home/truuue/Desktop/react-native/rnfbdemo/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/DisplayNotificationTask.java:158: error: package NotificationCompat does not exist
        NotificationCompat.BigTextStyle bt = new NotificationCompat.BigTextStyle();
                                                                   ^
/home/truuue/Desktop/react-native/rnfbdemo/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/DisplayNotificationTask.java:361: error: package NotificationCompat does not exist
          NotificationCompat.Action action = createAction(context, a, intentClass, notification);
                            ^
/home/truuue/Desktop/react-native/rnfbdemo/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/DisplayNotificationTask.java:424: error: package NotificationCompat.Action does not exist
    NotificationCompat.Action.Builder ab = new NotificationCompat.Action.Builder(
                             ^
/home/truuue/Desktop/react-native/rnfbdemo/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/DisplayNotificationTask.java:424: error: package NotificationCompat.Action does not exist
    NotificationCompat.Action.Builder ab = new NotificationCompat.Action.Builder(
                                                                        ^
/home/truuue/Desktop/react-native/rnfbdemo/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/DisplayNotificationTask.java:437: error: cannot find symbol
        RemoteInput remoteInput = createRemoteInput(ri);
        ^
  symbol:   class RemoteInput
  location: class DisplayNotificationTask
/home/truuue/Desktop/react-native/rnfbdemo/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/DisplayNotificationTask.java:496: error: package RemoteInput does not exist
    RemoteInput.Builder rb = new RemoteInput.Builder(resultKey);
               ^
/home/truuue/Desktop/react-native/rnfbdemo/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/DisplayNotificationTask.java:496: error: package RemoteInput does not exist
    RemoteInput.Builder rb = new RemoteInput.Builder(resultKey);
                                            ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
47 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-firebase:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.4.1/userguide/command_line_interface.html#sec:command_line_warnings

Additional version info: react-native-cli: 2.0.1 react-native: 0.59.10

I am getting the same error on my main project. I thought, I would run the demo given by you and then modify my project as per this demo code. But the demo code is also throwing the same error. Can you please guide in the right direction.

mikehardy commented 5 years ago

Thanks for logging this. I had thought jetifier was enabled (as in the settings you mentioned as the first item) already but if not it would certainly cause a failure. Let me attempt to reproduce locally and I'll see what I can see. The second errors also look like a failure to run jetifier as a postinstall (or manual step) so it's all about the android -> androidx conversion - manual jetifier setup is required for AndroidX on react-native 0.59 you might inspect this separately https://github.com/mikehardy/jetifier#to-jetify--convert-node_modules-dependencies-to-androidx while I'm looking at this issue

mikehardy commented 5 years ago

So strange, how did these lines not get you past the first part? https://github.com/mikehardy/rnfbdemo/blob/master/make-demo-rn59.sh#L142

And then how did these lines not get you past the second? https://github.com/mikehardy/rnfbdemo/blob/master/make-demo-rn59.sh#L146

Anyway - trying locally - I'm on linux (ubuntu 19.10) and macOS (catalina) - maybe something is off there?

mikehardy commented 5 years ago

Can't reproduce, seems to work fine for me from scratch?

mike@isabela:~/work/react-random/TEMP % git clone git@github.com:mikehardy/rnfbdemo.git
Cloning into 'rnfbdemo'...
remote: Enumerating objects: 101, done.
remote: Counting objects: 100% (101/101), done.
remote: Compressing objects: 100% (69/69), done.
remote: Total 101 (delta 59), reused 70 (delta 32), pack-reused 0
Receiving objects: 100% (101/101), 68.52 KiB | 222.00 KiB/s, done.
Resolving deltas: 100% (59/59), done.
mike@isabela:~/work/react-random/TEMP % cd rnfbdemo/
mike@isabela:~/work/react-random/TEMP/rnfbdemo (master) % cp /home/mike/work/react-random/rnfbdemo/GoogleService-Info.plist .
mike@isabela:~/work/react-random/TEMP/rnfbdemo (master) % cp /home/mike/work/react-random/rnfbdemo/google-services.json .
mike@isabela:~/work/react-random/TEMP/rnfbdemo (master) % ./make-demo-rn59.sh 
Testing react-native 0.59 + react-native-firebase v5.current + Firebase SDKs current
npx: installed 50 in 2.663s
This will walk you through creating a new React Native project in /home/mike/work/react-random/TEMP/rnfbdemo/rnfbdemo
Using yarn v1.19.1
Installing react-native@0.59.10...
info Setting up new React Native app in /home/mike/work/react-random/TEMP/rnfbdemo/rnfbdemo
info Adding required dependencies
yarn add v1.19.1
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@1.2.9: The platform "linux" is incompatible with this module.
info "fsevents@1.2.9" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning "react-native > metro-react-native-babel-transformer@0.51.0" has unmet peer dependency "@babel/core@*".
warning "react-native > @react-native-community/cli > metro-react-native-babel-transformer@0.51.1" has unmet peer dependency "@babel/core@*".
[4/4] Building fresh packages...
success Saved lockfile.
success Saved 2 new dependencies.
info Direct dependencies
└─ react@16.8.3
info All dependencies
├─ react@16.8.3
└─ scheduler@0.13.6
Done in 1.81s.
info Adding required dev dependencies
yarn add v1.19.1
[1/4] Resolving packages...
warning jest > jest-cli > @jest/core > jest-haste-map > fsevents@1.2.9: One of your dependencies needs to upgrade to fsevents v2: 1) Proper nodejs v10+ support 2) No more fetching binaries from AWS, smaller package size
warning jest > jest-cli > jest-config > jest-environment-jsdom > jsdom > left-pad@1.3.0: use String.prototype.padStart()
[2/4] Fetching packages...
warning Pattern ["@babel/core@^7.7.2"] is trying to unpack in the same destination "/home/mike/.cache/yarn/v6/npm-@babel-core-7.7.2-ea5b99693bcfc058116f42fa1dd54da412b29d91-integrity/node_modules/@babel/core" as pattern ["@babel/core@^7.0.0","@babel/core@^7.0.0","@babel/core@^7.0.0","@babel/core@^7.0.0","@babel/core@^7.0.0","@babel/core@^7.0.0","@babel/core@^7.0.0","@babel/core@^7.1.0","@babel/core@^7.1.0"]. This could result in non-deterministic behavior, skipping.
warning Pattern ["@babel/runtime@^7.7.2"] is trying to unpack in the same destination "/home/mike/.cache/yarn/v6/npm-@babel-runtime-7.7.2-111a78002a5c25fc8e3361bedc9529c696b85a6a-integrity/node_modules/@babel/runtime" as pattern ["@babel/runtime@^7.0.0"]. This could result in non-deterministic behavior, skipping.
info fsevents@1.2.9: The platform "linux" is incompatible with this module.
info "fsevents@1.2.9" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
success Saved 142 new dependencies.
info Direct dependencies
├─ @babel/runtime@7.7.2
├─ babel-jest@24.9.0
├─ jest@24.9.0
├─ metro-react-native-babel-preset@0.57.0
└─ react-test-renderer@16.8.3
info All dependencies
├─ @babel/runtime@7.7.2
├─ @cnakazawa/watch@1.0.3
├─ @jest/core@24.9.0
├─ @jest/reporters@24.9.0
├─ @jest/source-map@24.9.0
├─ @jest/test-sequencer@24.9.0
├─ @types/babel__generator@7.6.0
├─ @types/babel__template@7.0.2
├─ @types/babel__traverse@7.0.8
├─ @types/istanbul-lib-report@1.1.1
├─ @types/istanbul-reports@1.1.1
├─ @types/stack-utils@1.0.1
├─ @types/yargs-parser@13.1.0
├─ acorn-globals@4.3.4
├─ acorn-walk@6.2.0
├─ acorn@5.7.3
├─ ajv@6.10.2
├─ array-equal@1.0.0
├─ asn1@0.2.4
├─ astral-regex@1.0.0
├─ asynckit@0.4.0
├─ aws-sign2@0.7.0
├─ aws4@1.8.0
├─ babel-jest@24.9.0
├─ babel-plugin-jest-hoist@24.9.0
├─ bcrypt-pbkdf@1.0.2
├─ browser-process-hrtime@0.1.3
├─ browser-resolve@1.11.3
├─ capture-exit@2.0.0
├─ caseless@0.12.0
├─ ci-info@2.0.0
├─ cliui@5.0.0
├─ co@4.6.0
├─ combined-stream@1.0.8
├─ cssom@0.3.8
├─ cssstyle@1.4.0
├─ dashdash@1.14.1
├─ data-urls@1.1.0
├─ deep-is@0.1.3
├─ delayed-stream@1.0.0
├─ detect-newline@2.1.0
├─ diff-sequences@24.9.0
├─ domexception@1.0.1
├─ ecc-jsbn@0.1.2
├─ emoji-regex@7.0.3
├─ es-abstract@1.16.0
├─ es-to-primitive@1.2.1
├─ escodegen@1.12.0
├─ estraverse@4.3.0
├─ extend@3.0.2
├─ extsprintf@1.3.0
├─ fast-deep-equal@2.0.1
├─ fast-levenshtein@2.0.6
├─ forever-agent@0.6.1
├─ form-data@2.3.3
├─ get-caller-file@2.0.5
├─ getpass@0.1.7
├─ handlebars@4.5.3
├─ har-schema@2.0.0
├─ har-validator@5.1.3
├─ has@1.0.3
├─ html-encoding-sniffer@1.0.2
├─ http-signature@1.2.0
├─ is-date-object@1.0.1
├─ is-generator-fn@2.1.0
├─ is-regex@1.0.4
├─ is-symbol@1.0.3
├─ is-typedarray@1.0.0
├─ isstream@0.1.2
├─ istanbul-lib-instrument@3.3.0
├─ istanbul-lib-report@2.0.8
├─ istanbul-lib-source-maps@3.0.6
├─ istanbul-reports@2.2.6
├─ jest-changed-files@24.9.0
├─ jest-cli@24.9.0
├─ jest-docblock@24.9.0
├─ jest-each@24.9.0
├─ jest-environment-jsdom@24.9.0
├─ jest-environment-node@24.9.0
├─ jest-leak-detector@24.9.0
├─ jest-pnp-resolver@1.2.1
├─ jest-resolve-dependencies@24.9.0
├─ jest-watcher@24.9.0
├─ jest@24.9.0
├─ jsdom@11.12.0
├─ json-schema-traverse@0.4.1
├─ json-schema@0.2.3
├─ json-stringify-safe@5.0.1
├─ jsprim@1.4.1
├─ kleur@3.0.3
├─ left-pad@1.3.0
├─ leven@3.1.0
├─ levn@0.3.0
├─ metro-react-native-babel-preset@0.57.0
├─ natural-compare@1.4.0
├─ neo-async@2.6.1
├─ nwsapi@2.2.0
├─ oauth-sign@0.9.0
├─ object-inspect@1.7.0
├─ object.getownpropertydescriptors@2.0.3
├─ optionator@0.8.3
├─ p-each-series@1.0.0
├─ p-reduce@1.0.0
├─ parse5@4.0.0
├─ performance-now@2.1.0
├─ pn@1.1.0
├─ prompts@2.3.0
├─ psl@1.4.0
├─ qs@6.5.2
├─ react-refresh@0.4.2
├─ react-test-renderer@16.8.3
├─ request-promise-core@1.1.3
├─ request-promise-native@1.0.8
├─ request@2.88.0
├─ resolve-cwd@2.0.0
├─ rsvp@4.8.5
├─ sane@4.1.0
├─ sisteransi@1.0.4
├─ sshpk@1.16.1
├─ stack-utils@1.0.2
├─ stealthy-require@1.1.1
├─ string.prototype.trimleft@2.1.0
├─ string.prototype.trimright@2.1.0
├─ symbol-tree@3.2.4
├─ test-exclude@5.2.3
├─ tough-cookie@2.5.0
├─ tunnel-agent@0.6.0
├─ tweetnacl@0.14.5
├─ uglify-js@3.6.9
├─ uri-js@4.2.2
├─ util.promisify@1.0.0
├─ verror@1.10.0
├─ w3c-hr-time@1.0.1
├─ whatwg-encoding@1.0.5
├─ whatwg-mimetype@2.3.0
├─ whatwg-url@6.5.0
├─ word-wrap@1.2.3
├─ wrap-ansi@5.1.0
├─ write-file-atomic@2.4.1
├─ xml-name-validator@3.0.0
├─ y18n@4.0.0
└─ yargs-parser@13.1.1
Done in 8.79s.

  Run instructions for iOS:
    • cd /home/mike/work/react-random/TEMP/rnfbdemo/rnfbdemo && react-native run-ios
    - or -
    • Open ios/rnfbdemo.xcodeproj in Xcode
    • Hit the Run button

  Run instructions for Android:
    • Have an Android emulator running (quickest way to get started), or a device connected.
    • cd /home/mike/work/react-random/TEMP/rnfbdemo/rnfbdemo && react-native run-android

Adding react-native-firebase dependency
yarn add v1.19.1
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@1.2.9: The platform "linux" is incompatible with this module.
info "fsevents@1.2.9" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
success Saved 2 new dependencies.
info Direct dependencies
└─ react-native-firebase@5.5.6
info All dependencies
├─ opencollective-postinstall@2.0.2
└─ react-native-firebase@5.5.6
Done in 2.30s.
info Linking "react-native-firebase" iOS dependency
info iOS module "react-native-firebase" has been successfully linked
info Linking "react-native-firebase" Android dependency
info Android module "react-native-firebase" has been successfully linked
Adding initialization code in iOS
Adding basic java integration
Copying in Firebase app definition files
Copying over pre-built iOS project
Setting crashlytics up in Java
Setting up Performance module in Java
Setting up Analytics in Java
Setting up Firestore in Java
Setting up AdMob
Configuring MultiDex for API<21 support
Setting up Jetifier (Java and Javascript versions) for AndroidX support
yarn add v1.19.1
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@1.2.9: The platform "linux" is incompatible with this module.
info "fsevents@1.2.9" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
success Saved 1 new dependency.
info Direct dependencies
└─ jetifier@1.6.4
info All dependencies
└─ jetifier@1.6.4
Done in 2.10s.
yarn add v1.19.1
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@1.2.9: The platform "linux" is incompatible with this module.
info "fsevents@1.2.9" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
success Saved 1 new dependency.
info Direct dependencies
└─ node-pre-gyp@0.14.0
info All dependencies
└─ node-pre-gyp@0.14.0
Done in 2.12s.
Jetifier found 981 file(s) to forward-jetify. Using 12 workers...
Running android app
mike@isabela:~/work/react-random/TEMP/rnfbdemo (master) % cd rnfbdemo/
mike@isabela:~/work/react-random/TEMP/rnfbdemo/rnfbdemo (master) % npx react-native run-android
info Starting JS server...
info Building and installing the app on the device (cd android && ./gradlew app:installDebug)...
Starting a Gradle Daemon (subsequent builds will be faster)

> Configure project :app
WARNING: API 'variant.getMergeResources()' is obsolete and has been replaced with 'variant.getMergeResourcesProvider()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variant.getMergeResources(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information.

> Configure project :react-native-firebase
react-native-firebase: using React Native prebuilt binary from /home/mike/work/react-random/TEMP/rnfbdemo/rnfbdemo/node_modules/react-native/android

> Task :app:processDebugGoogleServices
Parsing json file: /home/mike/work/react-random/TEMP/rnfbdemo/rnfbdemo/android/app/google-services.json

> Task :react-native-firebase:compileDebugJavaWithJavac
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
/home/mike/.gradle/caches/transforms-2/files-2.1/a64198060584496873300a5ec7312dd7/jars/classes.jar: D8: Interface `org.apache.http.client.ResponseHandler` not found. It's needed to make sure desugaring of `com.google.firebase.perf.network.zzg` is correct. Desugaring will assume that this interface has no default method.
/home/mike/.gradle/caches/transforms-2/files-2.1/377eada01bba8a6ddd2335a7c8758e1b/jars/classes.jar: D8: Type `libcore.io.Memory` was not found, it is required for default or static interface methods desugaring of `void com.google.android.gms.internal.clearcut.zzfd$zzb.zza(long, byte)`
/home/mike/.gradle/caches/transforms-2/files-2.1/377eada01bba8a6ddd2335a7c8758e1b/jars/classes.jar: D8: Type `libcore.io.Memory` was not found, it is required for default or static interface methods desugaring of `void com.google.android.gms.internal.clearcut.zzfd$zza.zza(long, byte)`
/home/mike/.gradle/caches/transforms-2/files-2.1/90b16f8ed2d527560f76a60e7437c316/jars/classes.jar: D8: Type `sun.misc.Unsafe` was not found, it is required for default or static interface methods desugaring of `void com.google.android.gms.internal.ads.zzdbf$zzi.<clinit>()`
/home/mike/.m2/repository/com/squareup/okhttp3/okhttp/3.12.1/okhttp-3.12.1.jar: D8: Type `org.conscrypt.Conscrypt` was not found, it is required for default or static interface methods desugaring of `java.security.Provider okhttp3.internal.platform.ConscryptPlatform.getProvider()`
/home/mike/.gradle/caches/transforms-2/files-2.1/037996de5b156489aa9044215d739ddf/jars/classes.jar: D8: Type `libcore.io.Memory` was not found, it is required for default or static interface methods desugaring of `void com.google.android.gms.internal.ads.zzdta$zzc.zza(long, byte)`
/home/mike/.gradle/caches/transforms-2/files-2.1/037996de5b156489aa9044215d739ddf/jars/classes.jar: D8: Type `libcore.io.Memory` was not found, it is required for default or static interface methods desugaring of `void com.google.android.gms.internal.ads.zzdta$zza.zza(long, byte)`
/home/mike/.gradle/caches/modules-2/files-2.1/com.google.guava/guava/26.0-android/ef69663836b339db335fde0df06fb3cd84e3742b/guava-26.0-android.jar: D8: Type `sun.misc.Unsafe` was not found, it is required for default or static interface methods desugaring of `sun.misc.Unsafe com.google.common.cache.Striped64.getUnsafe()`
/home/mike/.gradle/caches/modules-2/files-2.1/com.google.guava/guava/26.0-android/ef69663836b339db335fde0df06fb3cd84e3742b/guava-26.0-android.jar: D8: Type `sun.misc.Unsafe` was not found, it is required for default or static interface methods desugaring of `sun.misc.Unsafe com.google.common.hash.Striped64.getUnsafe()`
/home/mike/work/react-random/TEMP/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/build/intermediates/runtime_library_classes/debug/classes.jar: D8: Type `com.google.firebase.database.FirebaseDatabase` was not found, it is required for default or static interface methods desugaring of `com.google.firebase.database.FirebaseDatabase io.invertase.firebase.database.RNFirebaseDatabase.getDatabaseForApp(java.lang.String, java.lang.String)`
/home/mike/work/react-random/TEMP/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/build/intermediates/runtime_library_classes/debug/classes.jar: D8: Type `com.google.firebase.storage.FirebaseStorage` was not found, it is required for default or static interface methods desugaring of `com.google.firebase.storage.StorageReference io.invertase.firebase.storage.RNFirebaseStorage.getReference(java.lang.String, java.lang.String)`
/home/mike/work/react-random/TEMP/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/build/intermediates/runtime_library_classes/debug/classes.jar: D8: Type `com.google.firebase.messaging.FirebaseMessaging` was not found, it is required for default or static interface methods desugaring of `void io.invertase.firebase.messaging.RNFirebaseMessaging.sendMessage(com.facebook.react.bridge.ReadableMap, com.facebook.react.bridge.Promise)`
/home/mike/work/react-random/TEMP/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/build/intermediates/runtime_library_classes/debug/classes.jar: D8: Type `com.google.firebase.appinvite.FirebaseAppInvite` was not found, it is required for default or static interface methods desugaring of `boolean io.invertase.firebase.links.RNFirebaseLinks.isInvitation(com.google.firebase.dynamiclinks.PendingDynamicLinkData)`
/home/mike/work/react-random/TEMP/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/build/intermediates/runtime_library_classes/debug/classes.jar: D8: Type `com.google.firebase.dynamiclinks.FirebaseDynamicLinks` was not found, it is required for default or static interface methods desugaring of `com.google.firebase.dynamiclinks.DynamicLink$Builder io.invertase.firebase.links.RNFirebaseLinks.getDynamicLinkBuilder(com.facebook.react.bridge.ReadableMap)`
/home/mike/work/react-random/TEMP/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/build/intermediates/runtime_library_classes/debug/classes.jar: D8: Interface `com.google.firebase.database.DatabaseReference$CompletionListener` not found. It's needed to make sure desugaring of `io.invertase.firebase.database.RNFirebaseDatabase$3` is correct. Desugaring will assume that this interface has no default method.
/home/mike/work/react-random/TEMP/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/build/intermediates/runtime_library_classes/debug/classes.jar: D8: Type `com.google.firebase.database.Transaction` was not found, it is required for default or static interface methods desugaring of `com.google.firebase.database.Transaction$Result io.invertase.firebase.database.RNFirebaseDatabase$1$1.doTransaction(com.google.firebase.database.MutableData)`
/home/mike/work/react-random/TEMP/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/build/intermediates/runtime_library_classes/debug/classes.jar: D8: Interface `com.google.firebase.storage.OnPausedListener` not found. It's needed to make sure desugaring of `io.invertase.firebase.storage.RNFirebaseStorage$14` is correct. Desugaring will assume that this interface has no default method.
/home/mike/work/react-random/TEMP/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/build/intermediates/runtime_library_classes/debug/classes.jar: D8: Interface `com.google.firebase.database.ValueEventListener` not found. It's needed to make sure desugaring of `io.invertase.firebase.database.RNFirebaseDatabaseReference$2` is correct. Desugaring will assume that this interface has no default method.
/home/mike/work/react-random/TEMP/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/build/intermediates/runtime_library_classes/debug/classes.jar: D8: Interface `com.google.firebase.storage.OnProgressListener` not found. It's needed to make sure desugaring of `io.invertase.firebase.storage.RNFirebaseStorage$15` is correct. Desugaring will assume that this interface has no default method.
/home/mike/work/react-random/TEMP/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/build/intermediates/runtime_library_classes/debug/classes.jar: D8: Type `com.google.firebase.auth.PhoneAuthProvider$OnVerificationStateChangedCallbacks` was not found, it is required for default or static interface methods desugaring of `void io.invertase.firebase.auth.RNFirebaseAuth$23.onCodeAutoRetrievalTimeOut(java.lang.String)`
/home/mike/work/react-random/TEMP/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/build/intermediates/runtime_library_classes/debug/classes.jar: D8: Type `me.leolin.shortcutbadger.ShortcutBadger` was not found, it is required for default or static interface methods desugaring of `void io.invertase.firebase.notifications.RNFirebaseNotifications.setBadge(int, com.facebook.react.bridge.Promise)`
/home/mike/work/react-random/TEMP/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/build/intermediates/runtime_library_classes/debug/classes.jar: D8: Type `com.google.firebase.functions.FirebaseFunctions` was not found, it is required for default or static interface methods desugaring of `void io.invertase.firebase.functions.RNFirebaseFunctions.useFunctionsEmulator(java.lang.String, java.lang.String, java.lang.String, com.facebook.react.bridge.Promise)`
/home/mike/work/react-random/TEMP/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/build/intermediates/runtime_library_classes/debug/classes.jar: D8: Interface `com.google.firebase.database.DatabaseReference$CompletionListener` not found. It's needed to make sure desugaring of `io.invertase.firebase.database.RNFirebaseDatabase$4` is correct. Desugaring will assume that this interface has no default method.
/home/mike/work/react-random/TEMP/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/build/intermediates/runtime_library_classes/debug/classes.jar: D8: Interface `com.google.firebase.storage.StreamDownloadTask$StreamProcessor` not found. It's needed to make sure desugaring of `io.invertase.firebase.storage.RNFirebaseStorage$13` is correct. Desugaring will assume that this interface has no default method.
/home/mike/work/react-random/TEMP/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/build/intermediates/runtime_library_classes/debug/classes.jar: D8: Interface `com.google.firebase.database.Transaction$Handler` not found. It's needed to make sure desugaring of `io.invertase.firebase.database.RNFirebaseDatabase$1$1` is correct. Desugaring will assume that this interface has no default method.
/home/mike/work/react-random/TEMP/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/build/intermediates/runtime_library_classes/debug/classes.jar: D8: Interface `com.google.firebase.database.ValueEventListener` not found. It's needed to make sure desugaring of `io.invertase.firebase.database.RNFirebaseDatabaseReference$5` is correct. Desugaring will assume that this interface has no default method.
/home/mike/.gradle/caches/modules-2/files-2.1/com.google.guava/guava/26.0-android/ef69663836b339db335fde0df06fb3cd84e3742b/guava-26.0-android.jar: D8: Type `sun.misc.Unsafe` was not found, it is required for default or static interface methods desugaring of `void com.google.common.util.concurrent.AbstractFuture$UnsafeAtomicHelper.<clinit>()`
/home/mike/work/react-random/TEMP/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/build/intermediates/runtime_library_classes/debug/classes.jar: D8: Type `com.google.firebase.auth.FirebaseAuth` was not found, it is required for default or static interface methods desugaring of `void io.invertase.firebase.auth.RNFirebaseAuth.signInAnonymously(java.lang.String, com.facebook.react.bridge.Promise)`
/home/mike/work/react-random/TEMP/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/build/intermediates/runtime_library_classes/debug/classes.jar: D8: Interface `com.google.firebase.database.DatabaseReference$CompletionListener` not found. It's needed to make sure desugaring of `io.invertase.firebase.database.RNFirebaseDatabase$5` is correct. Desugaring will assume that this interface has no default method.
/home/mike/work/react-random/TEMP/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/build/intermediates/runtime_library_classes/debug/classes.jar: D8: Interface `com.google.firebase.auth.FirebaseAuth$AuthStateListener` not found. It's needed to make sure desugaring of `io.invertase.firebase.auth.RNFirebaseAuth$1` is correct. Desugaring will assume that this interface has no default method.
/home/mike/work/react-random/TEMP/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/build/intermediates/runtime_library_classes/debug/classes.jar: D8: Type `com.google.firebase.auth.FacebookAuthProvider` was not found, it is required for default or static interface methods desugaring of `com.google.firebase.auth.AuthCredential io.invertase.firebase.auth.RNFirebaseAuth.getCredentialForProvider(java.lang.String, java.lang.String, java.lang.String)`
/home/mike/work/react-random/TEMP/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/build/intermediates/runtime_library_classes/debug/classes.jar: D8: Type `com.google.firebase.auth.GoogleAuthProvider` was not found, it is required for default or static interface methods desugaring of `com.google.firebase.auth.AuthCredential io.invertase.firebase.auth.RNFirebaseAuth.getCredentialForProvider(java.lang.String, java.lang.String, java.lang.String)`
/home/mike/work/react-random/TEMP/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/build/intermediates/runtime_library_classes/debug/classes.jar: D8: Type `com.google.firebase.auth.TwitterAuthProvider` was not found, it is required for default or static interface methods desugaring of `com.google.firebase.auth.AuthCredential io.invertase.firebase.auth.RNFirebaseAuth.getCredentialForProvider(java.lang.String, java.lang.String, java.lang.String)`
/home/mike/work/react-random/TEMP/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/build/intermediates/runtime_library_classes/debug/classes.jar: D8: Type `com.google.firebase.auth.GithubAuthProvider` was not found, it is required for default or static interface methods desugaring of `com.google.firebase.auth.AuthCredential io.invertase.firebase.auth.RNFirebaseAuth.getCredentialForProvider(java.lang.String, java.lang.String, java.lang.String)`
/home/mike/work/react-random/TEMP/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/build/intermediates/runtime_library_classes/debug/classes.jar: D8: Type `com.google.firebase.auth.OAuthProvider` was not found, it is required for default or static interface methods desugaring of `com.google.firebase.auth.AuthCredential io.invertase.firebase.auth.RNFirebaseAuth.getCredentialForProvider(java.lang.String, java.lang.String, java.lang.String)`
/home/mike/work/react-random/TEMP/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/build/intermediates/runtime_library_classes/debug/classes.jar: D8: Type `com.google.firebase.auth.EmailAuthProvider` was not found, it is required for default or static interface methods desugaring of `com.google.firebase.auth.AuthCredential io.invertase.firebase.auth.RNFirebaseAuth.getCredentialForProvider(java.lang.String, java.lang.String, java.lang.String)`
/home/mike/work/react-random/TEMP/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/build/intermediates/runtime_library_classes/debug/classes.jar: D8: Type `com.google.firebase.auth.PhoneAuthProvider` was not found, it is required for default or static interface methods desugaring of `com.google.firebase.auth.PhoneAuthCredential io.invertase.firebase.auth.RNFirebaseAuth.getPhoneAuthCredential(java.lang.String, java.lang.String)`
/home/mike/work/react-random/TEMP/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/build/intermediates/runtime_library_classes/debug/classes.jar: D8: Type `com.google.firebase.auth.ActionCodeSettings` was not found, it is required for default or static interface methods desugaring of `com.google.firebase.auth.ActionCodeSettings io.invertase.firebase.auth.RNFirebaseAuth.buildActionCodeSettings(com.facebook.react.bridge.ReadableMap)`
/home/mike/work/react-random/TEMP/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/build/intermediates/runtime_library_classes/debug/classes.jar: D8: Interface `com.google.firebase.storage.OnProgressListener` not found. It's needed to make sure desugaring of `io.invertase.firebase.storage.RNFirebaseStorage$12` is correct. Desugaring will assume that this interface has no default method.
/home/mike/work/react-random/TEMP/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/build/intermediates/runtime_library_classes/debug/classes.jar: D8: Interface `com.google.firebase.database.DatabaseReference$CompletionListener` not found. It's needed to make sure desugaring of `io.invertase.firebase.database.RNFirebaseDatabase$10` is correct. Desugaring will assume that this interface has no default method.
/home/mike/work/react-random/TEMP/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/build/intermediates/runtime_library_classes/debug/classes.jar: D8: Interface `com.google.firebase.database.ChildEventListener` not found. It's needed to make sure desugaring of `io.invertase.firebase.database.RNFirebaseDatabaseReference$4` is correct. Desugaring will assume that this interface has no default method.
/home/mike/.gradle/caches/modules-2/files-2.1/com.google.guava/guava/26.0-android/ef69663836b339db335fde0df06fb3cd84e3742b/guava-26.0-android.jar: D8: Type `sun.misc.Unsafe` was not found, it is required for default or static interface methods desugaring of `sun.misc.Unsafe com.google.common.hash.LittleEndianByteArray$UnsafeByteArray.getUnsafe()`
/home/mike/work/react-random/TEMP/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/build/intermediates/runtime_library_classes/debug/classes.jar: D8: Interface `com.google.firebase.database.DatabaseReference$CompletionListener` not found. It's needed to make sure desugaring of `io.invertase.firebase.database.RNFirebaseDatabase$2` is correct. Desugaring will assume that this interface has no default method.
/home/mike/work/react-random/TEMP/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/build/intermediates/runtime_library_classes/debug/classes.jar: D8: Interface `com.google.firebase.storage.OnPausedListener` not found. It's needed to make sure desugaring of `io.invertase.firebase.storage.RNFirebaseStorage$11` is correct. Desugaring will assume that this interface has no default method.
/home/mike/work/react-random/TEMP/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/build/intermediates/runtime_library_classes/debug/classes.jar: D8: Interface `com.google.firebase.auth.FirebaseAuth$IdTokenListener` not found. It's needed to make sure desugaring of `io.invertase.firebase.auth.RNFirebaseAuth$2` is correct. Desugaring will assume that this interface has no default method.
/home/mike/work/react-random/TEMP/rnfbdemo/rnfbdemo/node_modules/react-native-firebase/android/build/intermediates/runtime_library_classes/debug/classes.jar: D8: Interface `com.google.firebase.database.ChildEventListener` not found. It's needed to make sure desugaring of `io.invertase.firebase.database.RNFirebaseDatabaseReference$3` is correct. Desugaring will assume that this interface has no default method.

> Task :app:installDebug FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:installDebug'.
> com.android.builder.testing.api.DeviceException: No connected devices!

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.4.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 57s
48 actionable tasks: 48 executed
error Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/getting-started.html
error Command failed: ./gradlew app:installDebug. Run CLI with --verbose flag for more details.
mike@isabela:~/work/react-random/TEMP/rnfbdemo/rnfbdemo (master) % 

Note the failure at the end is because I didn't have an emulator up - that has nothing to do with compile failure, the compile already happened

:thinking:

kirandash commented 5 years ago

@mikehardy Thanks for your comment. Helped me track the issue. I did not have GoogleService-Info.plist file in the root folder. I had only placed google-services.json file. Thus the script was stopping in middle with :

cp: cannot stat '../GoogleService-Info.plist': No such file or directory.

I placed the GoogleService-Info.plist file in the root folder of repo and the script finished properly. And was able to launch the application. My bad, I didn't read the instructions carefully. Thanks again!

mikehardy commented 5 years ago

whew, glad it worked for you :-). Of course, this proves it can work, but your project may still need alterations to get it working as well now that you have something to compare notes with. Good luck getting your stuff launching as well