brim-borium/spotify_sdk

Flutter not detecting lintOptions in Android Gradle

Closed this issue · 0 comments

!! Attention !!
FILL IN ALL SECTIONS OF THIS TEMPLATE OR YOUR ISSUE WILL BE CLOSED WITHOUT INVESTIGATION
This is a flutter package that wraps the native iOS and Android Spotify "remote" SDKs as well as the Spotify Web Playback SDK for web. Since it wraps the native SDKs it has the same features and limitations. Please use the search functionality in the native SDK repos to find corresponding issues before opening an issue here. If your issue is deriving from the native SDKs you should open an issue there and not in this repo.

Is this a how to question?
No

Is this a native Spotify SDK issue
No

Are you using a Free or Premium Spotify account
Premium

Are you aware of the limitation of Free Spotify accounts
Yes.

Expected behavior
I want to use the Spotify SDK for a Flutter project. I have followed the steps mentioned in the package documentation on pub.dev

Describe the bug
After following the said steps, while running the application, the following error is thrown by the gradle.
image

After looking up similar issues on StackOverflow, the following Workaround was suggested
image

This doesn't work, android/build.gradle doesn't detect the lintOptions tag.

Steps to Reproduce
Steps to reproduce the behavior:

  1. Create a Flutter Project using latest flutter version from the master branch
  2. Add the .aar files to the android folder of the project
  3. Add dependency to the pubspec.yaml file
  4. Build your project

Spotify_sdk Flutter package version
spotify_sdk 2.2.0

Target Platform, Version & Device

  • OS & Version: Windows 10
  • Device: OnePlus 7 Pro

Development OS

  • OS: Windows

Additional context
Add any other information about the problem here.