rhttp icon indicating copy to clipboard operation
rhttp copied to clipboard

rhttp 0.11.1 fails to compile: getTargetPlatforms() error

Open EphemeralSapient opened this issue 10 months ago • 0 comments

Hi there,

while compiling my flutter project [ndk 27, 29 tested] rhttp failed to compile with given error

[   +4 ms] FAILURE: Build failed with an exception.
[  +12 ms] * Where:
[        ] Script
'/home/semp/.pub-cache/hosted/pub.dev/rhttp-0.11.1/cargokit/gradle/plugin.gradle' line: 135
[        ] * What went wrong:
[        ] A problem occurred evaluating script.
[        ] > Failed to apply plugin class 'CargoKitPlugin'.
[        ]    > No signature of method: FlutterPlugin.getTargetPlatforms() is applicable for
argument types: () values: []
[   +1 ms] * Try:
[   +7 ms] > Run with --debug option to get more log output.
[        ] > Run with --scan to get full insights.
[        ] > Get more help at https://help.gradle.org.
[        ] * Exception is:
[        ] org.gradle.api.GradleScriptException: A problem occurred evaluating script.
[        ]      at
org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultSc
riptRunnerFactory.java:93)
[        ]      at
org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl.lambda$apply$1(DefaultS
criptPluginFactory.java:141)
[        ]      at

I'm using latest version of flutter [main branch version] and I have no clue if I've messed up anything? I simply used pub add rhttp and ran flutter run -v

Happy to provide more logs or details if needed. Thanks for maintaining rhttp!

EphemeralSapient avatar Apr 14 '25 04:04 EphemeralSapient