plus_plugins icon indicating copy to clipboard operation
plus_plugins copied to clipboard

[Request]: Connectivity_plus cannot be used in sdk 35 if you does not have de sdk 34

Open GuimaRodrigues opened this issue 9 months ago • 3 comments

Plugin

connectivity_plus

Use case

In the app that I am working on, the only plugin that is not compiling in the sdk and build tools 35 is the connectivity_plus, so the image that I am using to build the app contains the 34 and 35. That`s making the image bigger.

Proposal

Would be nice if the plugin can work on the sdk and build tools 35 without the need of the 34

GuimaRodrigues avatar Apr 16 '25 18:04 GuimaRodrigues

Yes it should work with 35. Any chance you can provide the compilation error?

miquelbeltran avatar Apr 17 '25 12:04 miquelbeltran

Hey, yes.

In some tests I get the following 2 errors.

FAILURE: Build failed with an exception.

  • What went wrong: Could not determine the dependencies of task ':connectivity_plus:compileReleaseJavaWithJavac'.

Could not determine the dependencies of null. Failed to find target with hash string 'android-34' in: /opt/android-sdk

  • 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 5m 49s

FAILURE: Build failed with an exception.

  • What went wrong: Could not determine the dependencies of task ':connectivity_plus:compileReleaseJavaWithJavac'.

Could not determine the dependencies of null. Failed to find Build Tools revision 34.0.0

  • 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 5m 41s

GuimaRodrigues avatar Apr 17 '25 12:04 GuimaRodrigues

Yes I have same problem issues, please fix issues

mardianto avatar Jun 14 '25 04:06 mardianto

The error provided only showed that you had no SDK 34 build tools installed.

connectivity_plus 7.0.0 now uses compile SDK from the Flutter version that you use, so shouldn't be an issue anymore.

vbuberen avatar Sep 11 '25 10:09 vbuberen