dart Flutter找不到符号(插件)

mjqavswn  于 2023-09-28  发布在  Flutter
关注(0)|答案(1)|浏览(205)

我真的对Flutter感到沮丧:

C:\Users\User\dev\DIR\app-project\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java:19: error: cannot find symbol
      flutterEngine.getPlugins().add(new com.amazonaws.amplify.amplify_analytics_pinpoint.AmplifyAnalyticsPinpointPlugin());
                                                                                         ^
  symbol:   class AmplifyAnalyticsPinpointPlugin
  location: package com.amazonaws.amplify.amplify_analytics_pinpoint
1 error

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for 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 34s
Exception: Gradle task assembleDebug failed with exit code 1

我真的不知道为什么这个错误是弹出了几天以来,没有任何改变。我没有直接使用这个依赖项。已经试图从我的PC和项目以及完全删除Flutter。后来我安装flutter新鲜,也克隆了项目.
我也试过:

flutter clean
flutter pub cache repair
flutter pub get

有人能帮我吗?

nkoocmlb

nkoocmlb1#

真实的的解决方案是:IDK!
但我终于修好了。
可能是dart pub cache clean,一个比dart pub cache repair更深的命令。或者完全卸载Android Studio和Flutter,然后重新安装。

相关问题