lufinkey/react-native-spotify

com.spotify.sdk.android.authentication.RNSpotifyPackage in 0.60.5

patrice4github opened this issue · 2 comments

Note that this is a different issue than #102.

In 0.60, the missing package lands in:
/android/app/build/generated/rncli/src/main/java/com/facebook/react/PackageList.java

/Users/me/_projects/test_spotify/android/app/build/generated/rncli/src/main/java/com/facebook/react/PackageList.java:19: error: cannot find symbol
import com.spotify.sdk.android.authentication.RNSpotifyPackage;
                                             ^
  symbol:   class RNSpotifyPackage
  location: package com.spotify.sdk.android.authentication
/Users/me/_projects/test_spotify/android/app/build/generated/rncli/src/main/java/com/facebook/react/PackageList.java:54: error: cannot find symbol
      new RNSpotifyPackage()

To reproduce:

Either:

  1. git clone https://github.com/patrice4github/test_spotify.git
  2. npm install
  3. react-native run-android

This is an empty application created with:

  1. react-native init test_spotify
  2. npm install react-native-events --save
  3. npm install rn-spotify-sdk --save
  4. Configure as described on the react-native-spotify readme

Info

info Fetching system and libraries information...
System:
    OS: macOS 10.14.6
    CPU: (8) x64 Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
    Memory: 400.07 MB / 32.00 GB
    Shell: 3.2.57 - /bin/bash
  Binaries:
    Node: 12.8.0 - /usr/local/bin/node
    Yarn: 1.17.3 - /usr/local/bin/yarn
    npm: 6.11.3 - /usr/local/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  SDKs:
    iOS SDK:
      Platforms: iOS 12.4, macOS 10.14, tvOS 12.4, watchOS 5.3
    Android SDK:
      API Levels: 26, 28, 29
      Build Tools: 28.0.2, 28.0.3, 29.0.2
      System Images: android-28 | Google APIs Intel x86 Atom, android-29 | Google APIs Intel x86 Atom
  IDEs:
    Android Studio: 3.5 AI-191.8026.42.35.5791312
    Xcode: 10.3/10G8 - /usr/bin/xcodebuild
  npmPackages:
    react: 16.8.6 => 16.8.6 
    react-native: 0.60.5 => 0.60.5 
  npmGlobalPackages:
    create-react-native-app: 1.0.0
    react-native-cli: 2.0.1
    react-native-git-upgrade: 0.2.7

It's bigger problem as PackageList.java does get regenerated every build.

If there's a change you can point me in a direction, I'll gladly submit a PR.

Thanks.

I believe this is related to #139. Can you confirm?

It’s the same, apologies.

If that’s any help, I was provided a work around by the cli community while attempting to debug it. You can see it here:
react-native-community/cli#714

Thanks for the help.