Skip to content

Does not support latest Gradle #18

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

Open
kartikeya-mimojo opened this issue Feb 18, 2025 · 0 comments
Open

Does not support latest Gradle #18

kartikeya-mimojo opened this issue Feb 18, 2025 · 0 comments

Comments

@kartikeya-mimojo
Copy link

Flutter : 3.29.0
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-all.zip
/Users/kartikeya/.pub-cache/hosted/pub.dev/agconnect_core-1.9.0+300/android/src/main/java/com/huawei/agconnectcore/AGConnectCorePlugin.java:24: warning: [deprecation] AGConnectApp in com.huawei.agconnect has been deprecated
import com.huawei.agconnect.AGConnectApp;
                           ^
/Users/kartikeya/.pub-cache/hosted/pub.dev/agconnect_core-1.9.0+300/android/src/main/java/com/huawei/agconnectcore/AGConnectCorePlugin.java:39: error: cannot find symbol
import io.flutter.plugin.common.PluginRegistry.Registrar;
                                              ^
  symbol:   class Registrar
  location: interface PluginRegistry
/Users/kartikeya/.pub-cache/hosted/pub.dev/agconnect_core-1.9.0+300/android/src/main/java/com/huawei/agconnectcore/AGConnectCoreModule.java:35: warning: [unchecked] unchecked method invocation: method buildInstance in interface Presenter is applied to given types
        viewModel.buildInstance(agConnectOptions,new AGConnectCoreResultHandler(result));
                               ^
  required: AGConnectOptions,ResultListener<AGConnectInstance>
  found:    AGConnectOptions,AGConnectCoreModule.AGConnectCoreResultHandler
/Users/kartikeya/.pub-cache/hosted/pub.dev/agconnect_core-1.9.0+300/android/src/main/java/com/huawei/agconnectcore/AGConnectCoreModule.java:35: warning: [unchecked] unchecked conversion
        viewModel.buildInstance(agConnectOptions,new AGConnectCoreResultHandler(result));
                                                 ^
  required: ResultListener<AGConnectInstance>
  found:    AGConnectCoreModule.AGConnectCoreResultHandler
/Users/kartikeya/.pub-cache/hosted/pub.dev/agconnect_core-1.9.0+300/android/src/main/java/com/huawei/agconnectcore/AGConnectCoreModule.java:39: warning: [unchecked] unchecked method invocation: method getRoutePolicy in interface Presenter is applied to given types
        viewModel.getRoutePolicy(new AGConnectCoreResultHandler(result));
                                ^
  required: ResultListener<Map<String,Object>>
  found:    AGConnectCoreModule.AGConnectCoreResultHandler
/Users/kartikeya/.pub-cache/hosted/pub.dev/agconnect_core-1.9.0+300/android/src/main/java/com/huawei/agconnectcore/AGConnectCoreModule.java:39: warning: [unchecked] unchecked conversion
        viewModel.getRoutePolicy(new AGConnectCoreResultHandler(result));
                                 ^
  required: ResultListener<Map<String,Object>>
  found:    AGConnectCoreModule.AGConnectCoreResultHandler
/Users/kartikeya/.pub-cache/hosted/pub.dev/agconnect_core-1.9.0+300/android/src/main/java/com/huawei/agconnectcore/AGConnectCoreModule.java:43: warning: [unchecked] unchecked method invocation: method getPackageName in interface Presenter is applied to given types
        viewModel.getPackageName(new AGConnectCoreResultHandler(result));
                                ^
  required: ResultListener<String>
  found:    AGConnectCoreModule.AGConnectCoreResultHandler
/Users/kartikeya/.pub-cache/hosted/pub.dev/agconnect_core-1.9.0+300/android/src/main/java/com/huawei/agconnectcore/AGConnectCoreModule.java:43: warning: [unchecked] unchecked conversion
        viewModel.getPackageName(new AGConnectCoreResultHandler(result));
                                 ^
  required: ResultListener<String>
  found:    AGConnectCoreModule.AGConnectCoreResultHandler
/Users/kartikeya/.pub-cache/hosted/pub.dev/agconnect_core-1.9.0+300/android/src/main/java/com/huawei/agconnectcore/AGConnectCoreModule.java:47: warning: [unchecked] unchecked method invocation: method getString in interface Presenter is applied to given types
        viewModel.getString(path,def,new AGConnectCoreResultHandler(result));
                           ^
  required: String,String,ResultListener<String>
  found:    String,String,AGConnectCoreModule.AGConnectCoreResultHandler
/Users/kartikeya/.pub-cache/hosted/pub.dev/agconnect_core-1.9.0+300/android/src/main/java/com/huawei/agconnectcore/AGConnectCoreModule.java:47: warning: [unchecked] unchecked conversion
        viewModel.getString(path,def,new AGConnectCoreResultHandler(result));
                                     ^
  required: ResultListener<String>
  found:    AGConnectCoreModule.AGConnectCoreResultHandler
/Users/kartikeya/.pub-cache/hosted/pub.dev/agconnect_core-1.9.0+300/android/src/main/java/com/huawei/agconnectcore/utils/ValueGetter.java:54: warning: [unchecked] unchecked cast
            Map<String,Object> map = (Map<String, Object>) value;
                                                           ^
  required: Map<String,Object>
  found:    Map
1 error
10 warnings

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':agconnect_core:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.```



```> Configure project :agconnect_core
Build file '/Users/kartikeya/.pub-cache/hosted/pub.dev/agconnect_core-1.9.0+300/android/build.gradle': line 7
The RepositoryHandler.jcenter() method has been deprecated. This is scheduled to be removed in Gradle 9.0. JFrog announced JCenter's sunset in February 2021. Use mavenCentral() instead. Consult the upgrading guide for further information: https://docs.gradle.org/8.10.2/userguide/upgrading_version_6.html#jcenter_deprecation
        at build_xn9ha84unef70quq6lbgbftv$_run_closure1$_closure2.doCall$original(/Users/kartikeya/.pub-cache/hosted/pub.dev/agconnect_core-1.9.0+300/android/build.gradle:7)
        (Run with --stacktrace to get the full stack trace of this deprecation warning.)
        at build_xn9ha84unef70quq6lbgbftv$_run_closure1.doCall$original(/Users/kartikeya/.pub-cache/hosted/pub.dev/agconnect_core-1.9.0+300/android/build.gradle:5)
        (Run with --stacktrace to get the full stack trace of this deprecation warning.)
Build file '/Users/kartikeya/.pub-cache/hosted/pub.dev/agconnect_core-1.9.0+300/android/build.gradle': line 19
The RepositoryHandler.jcenter() method has been deprecated. This is scheduled to be removed in Gradle 9.0. JFrog announced JCenter's sunset in February 2021. Use mavenCentral() instead. Consult the upgrading guide for further information: https://docs.gradle.org/8.10.2/userguide/upgrading_version_6.html#jcenter_deprecation
        at build_xn9ha84unef70quq6lbgbftv$_run_closure1$_closure3.doCall$original(/Users/kartikeya/.pub-cache/hosted/pub.dev/agconnect_core-1.9.0+300/android/build.gradle:19)
        (Run with --stacktrace to get the full stack trace of this deprecation warning.)
        at build_xn9ha84unef70quq6lbgbftv$_run_closure1.doCall$original(/Users/kartikeya/.pub-cache/hosted/pub.dev/agconnect_core-1.9.0+300/android/build.gradle:17)
        (Run with --stacktrace to get the full stack trace of this deprecation warning.)

> Configure project :agconnect_remote_config
Build file '/Users/kartikeya/.pub-cache/hosted/pub.dev/agconnect_remote_config-1.9.0+300/android/build.gradle': line 7
The RepositoryHandler.jcenter() method has been deprecated. This is scheduled to be removed in Gradle 9.0. JFrog announced JCenter's sunset in February 2021. Use mavenCentral() instead. Consult the upgrading guide for further information: https://docs.gradle.org/8.10.2/userguide/upgrading_version_6.html#jcenter_deprecation
        at build_cxui693019tdl7j6p941tjdsm$_run_closure1$_closure2.doCall$original(/Users/kartikeya/.pub-cache/hosted/pub.dev/agconnect_remote_config-1.9.0+300/android/build.gradle:7)
        (Run with --stacktrace to get the full stack trace of this deprecation warning.)
        at build_cxui693019tdl7j6p941tjdsm$_run_closure1.doCall$original(/Users/kartikeya/.pub-cache/hosted/pub.dev/agconnect_remote_config-1.9.0+300/android/build.gradle:5)
        (Run with --stacktrace to get the full stack trace of this deprecation warning.)
Build file '/Users/kartikeya/.pub-cache/hosted/pub.dev/agconnect_remote_config-1.9.0+300/android/build.gradle': line 19
The RepositoryHandler.jcenter() method has been deprecated. This is scheduled to be removed in Gradle 9.0. JFrog announced JCenter's sunset in February 2021. Use mavenCentral() instead. Consult the upgrading guide for further information: https://docs.gradle.org/8.10.2/userguide/upgrading_version_6.html#jcenter_deprecation
        at build_cxui693019tdl7j6p941tjdsm$_run_closure1$_closure3.doCall$original(/Users/kartikeya/.pub-cache/hosted/pub.dev/agconnect_remote_config-1.9.0+300/android/build.gradle:19)
        (Run with --stacktrace to get the full stack trace of this deprecation warning.)
        at build_cxui693019tdl7j6p941tjdsm$_run_closure1.doCall$original(/Users/kartikeya/.pub-cache/hosted/pub.dev/agconnect_remote_config-1.9.0+300/android/build.gradle:17)
        (Run with --stacktrace to get the full stack trace of this deprecation warning.)```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant