Tealium / tealium-flutter

Tealium Flutter Plugin
Other
6 stars 6 forks source link

android build.gradle: Plugin with id 'maven' not found. #23

Closed thekorn closed 1 year ago

thekorn commented 2 years ago

When building an android app using tealium-flutter I get this error

Using hardware rendering with device sdk gphone64 arm64. If you notice graphics artifacts, consider enabling software rendering with "--enable-software-rendering".
Launching lib/main.dart on sdk gphone64 arm64 in debug mode...

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* Where:
Build file '/Users/thekorn-mac-studio/.pub-cache/hosted/pub.dartlang.org/tealium-2.0.3/android/build.gradle' line: 29

* What went wrong:
A problem occurred evaluating project ':tealium'.
> Plugin with id 'maven' 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.
==============================================================================

2: Task failed with an exception.
-----------
* Where:
Script '/opt/homebrew/Caskroom/flutter/3.3.4/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 474

* What went wrong:
A problem occurred configuring project ':tealium'.
> Failed to notify project evaluation listener.
   > Cannot invoke method substring() on null object
   > 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.
==============================================================================

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

with most recent flutter 3 this is using gradle 7, where the maven plugin has been deprecated - please migrate to maven-publish

thekorn commented 1 year ago

closing as of comment in https://github.com/Tealium/tealium-flutter/pull/24