flutter_smart_auth icon indicating copy to clipboard operation
flutter_smart_auth copied to clipboard

Error:Execution failed for task ':flutter_smart_auth:compileDebugKotlin'. > Compilation error. See log for more details

Open GauravCalidig opened this issue 3 years ago • 4 comments
trafficstars

GauravCalidig avatar Oct 07 '22 15:10 GauravCalidig

@GauravCalidig Could you add the logs?

Tkko avatar Dec 23 '22 13:12 Tkko

Running Gradle task 'assembleDevelopmentDebug'...
e: .../.pub-cache/hosted/pub.dartlang.org/smart_auth-1.0.6/android/src/main/kotlin/fman/ge/smart_auth/SmartAuthPlugin.kt: (37, 7): Redeclaration: SmartAuthPlugin
e: .../.pub-cache/hosted/pub.dartlang.org/smart_auth-1.0.7/android/src/main/kotlin/fman/ge/smart_auth/SmartAuthPlugin.kt: (31, 7): Redeclaration: SmartAuthPlugin

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':smart_auth:compileDebugKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
   > Compilation error. See log for more details

* 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.
-----------
* What went wrong:
java.lang.StackOverflowError (no error message)

* 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 1m 13s
Exception: Gradle task assembleDevelopmentDebug failed with exit code 1

rorystephenson avatar Dec 26 '22 10:12 rorystephenson

Fixed by a flutter clean and flutter pub get.

rorystephenson avatar Dec 26 '22 10:12 rorystephenson

not working. Same issue

Milimeter avatar May 20 '24 22:05 Milimeter

The same problem with latest version

Note: Recompile with -Xlint:unchecked for details. pub.dev/smart_auth-2.0.0/android/src/main/kotlin/fman/ge/smart_auth/AppSignatueHelper.kt:38:30 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type SigningInfo? pub.dev/smart_auth-2.0.0/android/src/main/kotlin/fman/ge/smart_auth/AppSignatueHelper.kt:39:20 Type mismatch: inferred type is Array<(out) Signature!>? but Array<Signature> was expected

FAILURE: Build failed with an exception.

shtreb avatar Nov 14 '24 08:11 shtreb

Look at my PR https://github.com/Tkko/flutter_smart_auth/pull/27

shtreb avatar Nov 14 '24 09:11 shtreb