-
Notifications
You must be signed in to change notification settings - Fork 128
Closed
Labels
Description
I receive this error upon trying to compile a SampleApp.
Here's my dependencies
implementation project(':spotify-app-remote-release-0.4.0')
implementation "com.google.code.gson:gson:2.8.5"
Here's my mainactivity onStart (np other code)
```
@OverRide
protected void onStart() {
super.onStart();
// Set the connection parameters
ConnectionParams connectionParams =
new ConnectionParams.Builder(CLIENT_ID)
.setRedirectUri(REDIRECT_URI)
.showAuthView(true)
.build();
SpotifyAppRemote.CONNECTOR.connect(this, connectionParams,
new Connector.ConnectionListener() {
@Override
public void onConnected(SpotifyAppRemote spotifyAppRemote) {
mSpotifyAppRemote = spotifyAppRemote;
Log.d("MainActivity", "Connected! Yay!");
// Now you can start interacting with App Remote
connected();
}
@Override
public void onFailure(Throwable throwable) {
Log.e("MainActivity", throwable.getMessage(), throwable);
// Something went wrong when attempting to connect! Handle errors here
}
});
// We will start writing our code here.
}
IDeas anyone?
emierose