flutter_smart_auth
flutter_smart_auth copied to clipboard
Error:Execution failed for task ':flutter_smart_auth:compileDebugKotlin'. > Compilation error. See log for more details
@GauravCalidig Could you add the logs?
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
Fixed by a flutter clean and flutter pub get.
not working. Same issue
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.
Look at my PR https://github.com/Tkko/flutter_smart_auth/pull/27