Announcements

Help Wizard

Step 1

NEXT STEP

FAQs

Please see below the most popular frequently asked questions.

Loading article...

Loading faqs...

VIEW ALL

Ongoing Issues

Please see below the current ongoing issues which are under investigation.

Loading issue...

Loading ongoing issues...

VIEW ALL

Why can't I use the SDK on Android OS.11

Why can't I use the SDK on Android OS.11

I want to use Spotify SDK on Android OS.11, but I get an "com.spotify.android.appremote.api.error.CouldNotFindSpotifyApp" error on the first connect and I can't use it.
I have the Spotify app installed.
I have the same version installed on my Android OS.10, which I have confirmed works.
Please help me, please help me.

Reply
3 Replies

Android 11 requires you to do extra work, to be able to list packages.

https://developer.android.com/about/versions/11/privacy/package-visibility

 

the solution is simple, add the following lines to your AndroidManifest.xml:

 

<queries>
    <package android:name="com.spotify.music" />
</queries> 
 

 

Hi,

 

I come across the same error, but adding spotify package did not solve the issue.

Here is the error message:

com.spotify.android.appremote.api.error.CouldNotFindSpotifyApp
at com.spotify.android.appremote.api.LocalConnector.connect(LocalConnector.java:53)
at com.spotify.android.appremote.api.SpotifyAppRemote.connect(SpotifyAppRemote.java:74)

 

And this is the logic that throws the exception:

final SdkRemoteClientConnector remoteClientConnector = (SdkRemoteClientConnector)Coding.checkNotNull(this.mSdkRemoteClientConnectorFactory.newConnector(context, params, this.mSpotifyLocator.getSpotifyBestPackageName(context)));

Update:

I was using the sdk with instant apps, and it cannot communicate with other apps on the device. 

Removing the instant settings of my app resolved the issue.

 

 

I'm having the same error, what do you mean with the sdk with instant apps, and how did you solve it?

Suggested posts