audioplayer icon indicating copy to clipboard operation
audioplayer copied to clipboard

A problem occurred configuring root project 'audioplayer'

Open pishguy opened this issue 4 years ago • 17 comments

how can i resolve this problem. i get this error when i try to run this command:

flutter run --release

A problem occurred configuring root project 'audioplayer'. No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android

pishguy avatar Nov 26 '19 19:11 pishguy

Same problem...

SAAVY-ware avatar Feb 11 '20 08:02 SAAVY-ware

iSame problem, can't build a release apk with audioplayer, without audioplayer it works fine. It works fine in Debug mode.

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'audioplayers'.
> SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.

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

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

BUILD FAILED in 2s


The plugin audioplayers could not be built due to the issue above.

nikhil08652 avatar Feb 18 '20 18:02 nikhil08652

Same problem

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'audioplayer'.
> Failed to notify project evaluation listener.
   > org.gradle.api.tasks.compile.CompileOptions.setBootClasspath(Ljava/lang/String;)V

rizalkotlin avatar Feb 22 '20 14:02 rizalkotlin

I have the same problem. After updating Flutter and reboot my pc.


* What went wrong:
Execution failed for task ':shared_preferences:verifyReleaseResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
   > Android resource linking failed
     C:\Users\santi\.gradle\caches\transforms-2\files-2.1\0a271e99b6771ad4a84318244d532fb7\core-1.0.0\res\values\values.xml:57:5-88:25: AAPT: error: resource android:attr/fontVariationSettings not found.

     C:\Users\santi\.gradle\caches\transforms-2\files-2.1\0a271e99b6771ad4a84318244d532fb7\core-1.0.0\res\values\values.xml:57:5-88:25: AAPT: error: resource android:attr/ttcIndex not found.


* 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 4m 16s
Running Gradle task 'assembleRelease'...
Running Gradle task 'assembleRelease'... Done                     257,8s (!)
The built failed likely due to AndroidX incompatibilities in a plugin. The tool is about to try using Jetfier to solve
the incompatibility.
Building plugin audioplayers...
Running Gradle task 'assembleAarRelease'...
Running Gradle task 'assembleAarRelease'... Done                    6,5s


FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'audioplayers'.
> SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.

* 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 6s


The plugin audioplayers could not be built due to the issue above.```

scg94 avatar Feb 23 '20 03:02 scg94

Try to set ANDROID_HOME environment variable . https://stackoverflow.com/questions/28296237/set-android-home-environment-variable-in-mac/40217509

clk0115 avatar Mar 08 '20 09:03 clk0115

Use audioplayers instead. https://github.com/luanpotter/audioplayers This is the alive version of this library.

SAAVY-ware avatar Mar 09 '20 04:03 SAAVY-ware

Getting same problem. How did you solve ?

RezowanTalukder avatar Mar 12 '20 15:03 RezowanTalukder

The above solution of changing it to audioplayers worked for me.

nikhil08652 avatar Mar 12 '20 16:03 nikhil08652

Getting same problem. How did you solve ?

Use this: https://github.com/luanpotter/audioplayers

SAAVY-ware avatar Mar 14 '20 05:03 SAAVY-ware

Getting same problem. How did you solve ?

Use this: https://github.com/luanpotter/audioplayers

This doesn't solve the problem for me. Seems newer versions don't even work in debug mode

ebaah46 avatar Apr 16 '20 11:04 ebaah46

I am still facing the same problem, Please could someone help me out

elsanal avatar Aug 12 '20 13:08 elsanal

The above solution of changing it to audioplayers worked for me.

same for me please give some suggestions

Kartik-Excellence avatar Nov 28 '20 11:11 Kartik-Excellence

Having the same problem

GSPrakashNaidu avatar Jan 16 '21 06:01 GSPrakashNaidu

I've solve this problem by changing compileSdkVersion and targetSdkVersion to the latest Android version in you build.gradle:app. Hope it will work for you too

Pierrx56 avatar Mar 11 '21 12:03 Pierrx56

I encountered the same problem, and it turns out that the mobile I was testing on didn't have Developer Mode and file-sharing on. Turning them on fixed it.

mindhunter-dark avatar May 13 '21 08:05 mindhunter-dark

having this issue

devoluwatobi avatar May 14 '21 19:05 devoluwatobi

Same problem

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'audioplayer'.
> Failed to notify project evaluation listener.
   > org.gradle.api.tasks.compile.CompileOptions.setBootClasspath(Ljava/lang/String;)V

so, how to solved the problem ?

gerainlotZS avatar Dec 14 '21 07:12 gerainlotZS