jaumard / sms_autofill

Flutter plugin to provide SMS code autofill support
MIT License
281 stars 173 forks source link

Cannot get the example app to build/run #222

Closed YesThatGy closed 3 weeks ago

YesThatGy commented 3 months ago

I can't get the example app to compile, see below. When I try to run it, I get the below errors. I checked to ensure that the phone

DEV ENVIRONMENT

Fedora 39 Android Studio Hedgehog | 2023.1.1 Patch 1 Device: Moto Razr+ 2023 Android 13

ERROR REPORTED:

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* Where:
Build file '/home/bens/.pub-cache/hosted/pub.dev/sms_autofill-2.3.1/android/build.gradle' line: 24

* What went wrong:
A problem occurred evaluating project ':sms_autofill'.
> No signature of method: build_5eo8bfxdlh0l0x8xdh35p9l9v.android() is applicable for argument types: (build_5eo8bfxdlh0l0x8xdh35p9l9v$_run_closure2) values: [build_5eo8bfxdlh0l0x8xdh35p9l9v$_run_closure2@3ec4a581]

* 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/bens/development/flutter/packages/flutter_tools/gradle/src/main/groovy/flutter.groovy' line: 499

* What went wrong:
A problem occurred configuring project ':sms_autofill'.
> 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

BUILD FAILED in 2s
Exception: Gradle task assembleDebug failed with exit code 1
jaumard commented 3 weeks ago

should be ok on master now