-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Spotify App Remote] Direct local .aar file dependencies are not supported when building an AAR #271
Comments
|
USE '' NOT "" |
? |
I am also interested in a Maven dependency instead of a bundled AAR file. The Android ecosystem uses Maven to organize dependencies and to help keep libraries updated, instead of manually including a binary blob in the project. |
What a coincidence, I am trying a similar thing too. I am currently attempting to build an AAR plugin for Unity 3D with this Spotify Android SDK. I have gotten through your issue by using "compileOnly files('libs/spotify-app-remote-release-0.7.1.aar')" in the dependencies instead of "implementation files("libs/spotify/app-remote-lib/spotify-app-remote-release-0.7.1.aar")" |
I have exactly the same problem when I follow the Spotify documentation to the letter. In Android Studio, the Spotify SDK is well recognized because I can use the SDK's features, but as soon as the application launches and uses ConnectionParams.Builder, I get the error "Call Exception: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/spotify/android/appremote/api/ConnectionParams$Builder;" |
Thats because compileOnly does not support aar files. Source: https://developer.android.com/studio/build/dependencies I'm basically stuck as well (but for another project, unrelated to spotify). |
How easy/hard is it to add the remote sdk to a maven repository? |
I am building a modular application that makes use of gradle android submodules.
One of the submodules is specific to Spotify and thus it depends on
Does the spotify-app-remote library have a gradle repo that hosts it like there is for the "com.spotify.android:auth" one?
Whenever I try to build my app with the direct dependency on the spotify-app-remote-release-0.7.0.aar, I get this error from gradle:
The text was updated successfully, but these errors were encountered: