ukasz123 / soundpool

Soundpool plugin for Flutter
88 stars 65 forks source link

Could not find method namesapce() for arguments [pl.ukaszapps.soundpool] on extension 'android' of type com.android.build.gradle.LibraryExtension. #117

Closed MrCsabaToth closed 1 year ago

MrCsabaToth commented 1 year ago

I thought that the namespace thing comes into play with the AGP8.0 upgrade. Despite my project being on 7.4.0, I still get this error for some reason. https://github.com/TrackMyIndoorWorkout/TrackMyIndoorWorkout/

Launching lib/main.dart on AC2003 in debug mode...
Running Gradle task 'assembleDebug'...

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* Where:
Build file '/home/csaba/.pub-cache/hosted/pub.dev/soundpool-2.3.0/android/build.gradle' line: 29

* What went wrong:
A problem occurred evaluating project ':soundpool'.
> Could not find method namesapce() for arguments [pl.ukaszapps.soundpool] on extension 'android' of type com.android.build.gradle.LibraryExtension.

* 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.
==============================================================================

2: Task failed with an exception.
-----------
* Where:
Script '/home/csaba/flutter/packages/flutter_tools/gradle/src/main/groovy/flutter.groovy' line: 483

* What went wrong:
A problem occurred configuring project ':soundpool'.
> Failed to notify project evaluation listener.
   > Cannot invoke method substring() on null object
   > com.android.builder.errors.EvalIssueException: compileSdkVersion is not specified. Please add it to build.gradle

* 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.
==============================================================================