Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Execution failed for task ‘:datadog_flutter_plugin:compileDebugKotlin’. #689

Open
jtavio opened this issue Dec 3, 2024 · 3 comments
Labels
bug Something isn't working has workaround This bug has a workaround and may be lower priority

Comments

@jtavio
Copy link

jtavio commented Dec 3, 2024

Stack trace

file:///Users/gregspinetti/.pub-cache/hosted/pub.dev/datadog_flutter_plugin-2.9.0/android/src/main/kotlin/com/datadoghq/flutter/DatadogRumEventMapper.kt:30:22 Unresolved reference ‘PerformanceTracker’.
e: file:///Users/gregspinetti/.pub-cache/hosted/pub.dev/datadog_flutter_plugin-2.9.0/android/src/main/kotlin/com/datadoghq/flutter/DatadogRumEventMapper.kt:31:32 Unresolved reference ‘PerformanceTracker’.
e: file:///Users/gregspinetti/.pub-cache/hosted/pub.dev/datadog_flutter_plugin-2.9.0/android/src/main/kotlin/com/datadoghq/flutter/DatadogRumEventMapper.kt:80:44 Unresolved reference ‘asFlutterMap’.
e: file:///Users/gregspinetti/.pub-cache/hosted/pub.dev/datadog_flutter_plugin-2.9.0/android/src/main/kotlin/com/datadoghq/flutter/DatadogRumEventMapper.kt:102:44 Unresolved reference ‘asFlutterMap’.
e: file:///Users/gregspinetti/.pub-cache/hosted/pub.dev/datadog_flutter_plugin-2.9.0/android/src/main/kotlin/com/datadoghq/flutter/DatadogRumEventMapper.kt:135:44 Unresolved reference ‘asFlutterMap’.
e: file:///Users/gregspinetti/.pub-cache/hosted/pub.dev/datadog_flutter_plugin-2.9.0/android/src/main/kotlin/com/datadoghq/flutter/DatadogRumEventMapper.kt:165:44 Unresolved reference ‘asFlutterMap’.
e: file:///Users/gregspinetti/.pub-cache/hosted/pub.dev/datadog_flutter_plugin-2.9.0/android/src/main/kotlin/com/datadoghq/flutter/DatadogRumEventMapper.kt:215:44 Unresolved reference ‘asFlutterMap’.
e: file:///Users/gregspinetti/.pub-cache/hosted/pub.dev/datadog_flutter_plugin-2.9.0/android/src/main/kotlin/com/datadoghq/flutter/DatadogRumPlugin.kt:76:29 Unresolved reference ‘DatadogSdkPlugin’.
e: file:///Users/gregspinetti/.pub-cache/hosted/pub.dev/datadog_flutter_plugin-2.9.0/android/src/main/kotlin/com/datadoghq/flutter/DatadogRumPlugin.kt:97:20 Unresolved reference ‘invalidOperation’.
e: file:///Users/gregspinetti/.pub-cache/hosted/pub.dev/datadog_flutter_plugin-2.9.0/android/src/main/kotlin/com/datadoghq/flutter/DatadogRumPlugin.kt:131:17 Unresolved reference ‘DatadogSdkPlugin’.
e: file:///Users/gregspinetti/.pub-cache/hosted/pub.dev/datadog_flutter_plugin-2.9.0/android/src/main/kotlin/com/datadoghq/flutter/DatadogRumPlugin.kt:172:19 Unresolved reference ‘DATADOG_FLUTTER_TAG’.
file:///Users/gregspinetti/.pub-cache/hosted/pub.dev/datadog_flutter_plugin-2.9.0/android/src/main/kotlin/com/datadoghq/flutter/DatadogRumPlugin.kt:200:29 Unresolved reference. None of the following candidates is applicable because of a receiver type mismatch:
@InlineOnly() fun <T, R> T.let(block: (T) -> R): R
[R|Contract description]
<
CallsInPlace(block, EXACTLY_ONCE)
>
e: file:///Users/gregspinetti/.pub-cache/hosted/pub.dev/datadog_flutter_plugin-2.9.0/android/src/main/kotlin/com/datadoghq/flutter/DatadogRumPlugin.kt:200:33 Cannot infer type for this parameter. Please specify it explicitly.
e: file:///Users/gregspinetti/.pub-cache/hosted/pub.dev/datadog_flutter_plugin-2.9.0/android/src/main/kotlin/com/datadoghq/flutter/DatadogRumPlugin.kt:201:67 Unresolved reference ‘trackViewsManually’.
e: file:///Users/gregspinetti/.pub-cache/hosted/pub.dev/datadog_flutter_plugin-2.9.0/android/src/main/kotlin/com/datadoghq/flutter/DatadogRumPlugin.kt:202:66 Unresolved reference ‘trackInteractions’.
e: file:///Users/gregspinetti/.pub-cache/hosted/pub.dev/datadog_flutter_plugin-2.9.0/android/src/main/kotlin/com/datadoghq/flutter/DatadogRumPlugin.kt:203:60 Unresolved reference ‘trackErrors’.
e: file:///Users/gregspinetti/.pub-cache/hosted/pub.dev/datadog_flutter_plugin-2.9.0/android/src/main/kotlin/com/datadoghq/flutter/DatadogRumPlugin.kt:204:69 Unresolved reference ‘trackNetworkRequests’.
e: file:///Users/gregspinetti/.pub-cache/hosted/pub.dev/datadog_flutter_plugin-2.9.0/android/src/main/kotlin/com/datadoghq/flutter/DatadogRumPlugin.kt:205:65 Unresolved reference ‘trackNativeViews’.
e: file:///Users/gregspinetti/.pub-cache/hosted/pub.dev/datadog_flutter_plugin-2.9.0/android/src/main/kotlin/com/datadoghq/flutter/DatadogRumPlugin.kt:207:20 Unresolved reference ‘trackCrossPlatformLongTasks’.
e: file:///Users/gregspinetti/.pub-cache/hosted/pub.dev/datadog_flutter_plugin-2.9.0/android/src/main/kotlin/com/datadoghq/flutter/DatadogRumPlugin.kt:209:20 Unresolved reference ‘trackFlutterPerformance’.
e: file:///Users/gregspinetti/.pub-cache/hosted/pub.dev/datadog_flutter_plugin-2.9.0/android/src/main/kotlin/com/datadoghq/flutter/DatadogRumPlugin.kt:210:60 Unresolved reference ‘dartVersion’.
e: file:///Users/gregspinetti/.pub-cache/hosted/pub.dev/datadog_flutter_plugin-2.9.0/android/src/main/kotlin/com/datadoghq/flutter/DatadogRumPlugin.kt:231:20 Unresolved reference ‘missingParameter’.
e: file:///Users/gregspinetti/.pub-cache/hosted/pub.dev/datadog_flutter_plugin-2.9.0/android/src/main/kotlin/com/datadoghq/flutter/DatadogRumPlugin.kt:252:20 Unresolved reference ‘missingParameter’.
e: file:///Users/gregspinetti/.pub-cache/hosted/pub.dev/datadog_flutter_plugin-2.9.0/android/src/main/kotlin/com/datadoghq/flutter/DatadogRumPlugin.kt:262:20 Unresolved reference ‘missingParameter’.
e: file:///Users/gregspinetti/.pub-cache/hosted/pub.dev/datadog_flutter_plugin-2.9.0/android/src/main/kotlin/com/datadoghq/flutter/DatadogRumPlugin.kt:278:20 Unresolved reference ‘missingParameter’.
e: file:///Users/gregspinetti/.pub-cache/hosted/pub.dev/datadog_flutter_plugin-2.9.0/android/src/main/kotlin/com/datadoghq/flutter/DatadogRumPlugin.kt:299:20 Unresolved reference ‘missingParameter’.
e: file:///Users/gregspinetti/.pub-cache/hosted/pub.dev/datadog_flutter_plugin-2.9.0/android/src/main/kotlin/com/datadoghq/flutter/DatadogRumPlugin.kt:321:20 Unresolved reference ‘missingParameter’.
e: file:///Users/gregspinetti/.pub-cache/hosted/pub.dev/datadog_flutter_plugin-2.9.0/android/src/main/kotlin/com/datadoghq/flutter/DatadogRumPlugin.kt:343:20 Unresolved reference ‘missingParameter’.
e: file:///Users/gregspinetti/.pub-cache/hosted/pub.dev/datadog_flutter_plugin-2.9.0/android/src/main/kotlin/com/datadoghq/flutter/DatadogRumPlugin.kt:356:20 Unresolved reference ‘missingParameter’.
e: file:///Users/gregspinetti/.pub-cache/hosted/pub.dev/datadog_flutter_plugin-2.9.0/android/src/main/kotlin/com/datadoghq/flutter/DatadogRumPlugin.kt:369:20 Unresolved reference ‘missingParameter’.
e: file:///Users/gregspinetti/.pub-cache/hosted/pub.dev/datadog_flutter_plugin-2.9.0/android/src/main/kotlin/com/datadoghq/flutter/DatadogRumPlugin.kt:382:20 Unresolved reference ‘missingParameter’.
e: file:///Users/gregspinetti/.pub-cache/hosted/pub.dev/datadog_flutter_plugin-2.9.0/android/src/main/kotlin/com/datadoghq/flutter/DatadogRumPlugin.kt:393:20 Unresolved reference ‘missingParameter’.
e: file:///Users/gregspinetti/.pub-cache/hosted/pub.dev/datadog_flutter_plugin-2.9.0/android/src/main/kotlin/com/datadoghq/flutter/DatadogRumPlugin.kt:403:20 Unresolved reference ‘missingParameter’.
e: file:///Users/gregspinetti/.pub-cache/hosted/pub.dev/datadog_flutter_plugin-2.9.0/android/src/main/kotlin/com/datadoghq/flutter/DatadogRumPlugin.kt:416:20 Unresolved reference ‘missingParameter’.
e: file:///Users/gregspinetti/.pub-cache/hosted/pub.dev/datadog_flutter_plugin-2.9.0/android/src/main/kotlin/com/datadoghq/flutter/DatadogRumPlugin.kt:438:20 Unresolved reference ‘missingParameter’.
e: file:///Users/gregspinetti/.pub-cache/hosted/pub.dev/datadog_flutter_plugin-2.9.0/android/src/main/kotlin/com/datadoghq/flutter/DatadogRumPlugin.kt:449:20 Unresolved reference ‘missingParameter’.
FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:datadog_flutter_plugin:compileDebugKotlin’.

A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
Compilation error. See log for more details

Reproduction steps

When executing flutter

Volume

all

Affected SDK versions

2.7.0 - 2.9.0

Latest working SDK version

2.7.0 - 2.9.0

Does the crash manifest in the latest SDK version?

Yes

Flutter Version

No response

Setup Type

No response

Device Information

No response

Other relevant information

When running flutter, is solved by running a flutter clean and pubget, it should be noted that I happened in version 2.7.0 and then I uploaded the version to 2.9.0 and happened again until I did the step mentioned at the beginning.

@jtavio jtavio added the crash Crashes caused by the SDK label Dec 3, 2024
@fuzzybinary
Copy link
Member

Hi @jtavio ,

I've seen this before and actually have no idea what causes it, but it appears it's caused by some weird disconnect between what the Flutter plugin wants and what Gradle has actually downloaded, which is why a clean rebuild solves it. It might also be caused by some Gradle cache issue...

After doing a clean rebuild, do you ever see the problem again before performing an upgrade?

@fuzzybinary fuzzybinary added bug Something isn't working has workaround This bug has a workaround and may be lower priority and removed crash Crashes caused by the SDK labels Dec 3, 2024
@jtavio
Copy link
Author

jtavio commented Dec 4, 2024

@fuzzybinary
Thanks for the answer!
correct to run a ‘flutter clean’ and then a ‘pub get’. is solved, if you need to close the bug, you could do or investigate a little more ?

@fuzzybinary
Copy link
Member

Yes, I'll continue to look into it to see if it's something weird about how our SDK specifies its dependencies, but since it has a relatively simple workaround it likely won't be high priority.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working has workaround This bug has a workaround and may be lower priority
Projects
None yet
Development

No branches or pull requests

2 participants