rxlabz / audioplayer

A flutter plugin to play audio files iOS / Android / MacOS / Web ( Swift/Java )

Home Page:https://pub.dartlang.org/packages/audioplayer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

overrides a deprecated API.

mohammadne opened this issue · comments

Initializing gradle...                                              0.9s
Resolving dependencies...                                           3.6s
Note: C:\Users\Hamid\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\audioplayer-0.5.2\android\src\main\java\bz\rxla\audioplayer\AudioplayerPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Running Gradle task 'assembleRelease'...                                

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:lintVitalRelease'.
> Could not resolve all artifacts for configuration ':app:debugAndroidTestRuntimeClasspath'.
   > Could not download espresso-core.aar (androidx.test.espresso:espresso-core:3.1.0-alpha3)
      > Could not get resource 'https://dl.google.com/dl/android/maven2/androidx/test/espresso/espresso-core/3.1.0-alpha3/espresso-core-3.1.0-alpha3.aar'.
         > Read timed out
   > Could not download runner.aar (androidx.test:runner:1.1.0-alpha3)
      > Could not get resource 'https://dl.google.com/dl/android/maven2/androidx/test/runner/1.1.0-alpha3/runner-1.1.0-alpha3.aar'.
         > Could not GET 'https://dl.google.com/dl/android/maven2/androidx/test/runner/1.1.0-alpha3/runner-1.1.0-alpha3.aar'.
            > Read timed out
   > Could not download monitor.aar (androidx.test:monitor:1.1.0-alpha3)
      > Could not get resource 'https://dl.google.com/dl/android/maven2/androidx/test/monitor/1.1.0-alpha3/monitor-1.1.0-alpha3.aar'.
         > Read timed out
   > Could not download annotation.jar (androidx.annotation:annotation:1.0.0-alpha1)
      > Could not get resource 'https://dl.google.com/dl/android/maven2/androidx/annotation/annotation/1.0.0-alpha1/annotation-1.0.0-alpha1.jar'.
         > Read timed out

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 2m 21s
Running Gradle task 'assembleRelease'...
Running Gradle task 'assembleRelease'... Done                     142.3s (!)
*******************************************************************************************
The Gradle failure may have been because of AndroidX incompatibilities in this Flutter app.
See https://goo.gl/CP92wY for more information on the problem and how to fix it.
*******************************************************************************************
Gradle task assembleRelease failed with exit code 1

it says C:\Users\Hamid\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\audioplayer-0.5.2\android\src\main\java\bz\rxla\audioplayer\AudioplayerPlugin.java uses or overrides a deprecated API.
what can I do?

I am getting this too

I'm getting this too, any ideas how to fix?

Same here

Same here

same here, any solutions?!

the "overrides a deprecated API" notice. is just a warning and shouldn't cause any problems when compiling.