spotify / android-sdk

Spotify SDK for Android
https://developer.spotify.com/documentation/android/
Apache License 2.0
454 stars 117 forks source link

Android Studio on Mac OS #301

Closed Mroussell closed 2 years ago

Mroussell commented 2 years ago

Thanks for your interest in the Spotify App Remote SDK! If you're submitting a bug, please use the following template. If your issue is a feature request, please include your use-case so that we have all the necessary info.

Issue found on 7/20/21.

SDK Version: 0.7.2

OS Version: Mac OSX 10.14.15

Scope(s): None

Steps to reproduce:

  1. Follow QuickStart Guide to import .aar file.
  2. Use Android Studio on mac OS

Expected behaviour: Import as spotify-app-remote-0.7.2.aar as module .aar file

Actual behavior: can not import as .aar file in android studio, am not give proper import type and thus the build.gradel can not properly import.

fikretsengul commented 2 years ago

Yes same problem, I need help too.

veronikapetruskova commented 2 years ago

Hi @fikretsengul have you tried to just drag and drop the .aar file into your project? Then you should just update the dependencies section of build.gradle file so that it can locate the .aar file:

dependencies {
    implementation files('../path-to-library-file/spotify-app-remote-0.7.2.aar')
Mroussell commented 2 years ago

Yes, I tried that at the time and it did not work. I believe it has been patched in the newest version of android studio. So I am going to close this issue. Thank you!