颤振Android Studio启动应用程序错误

时间:2020-08-09 15:27:32

标签: android macos android-studio flutter android-gradle-plugin

我遇到这样的错误,


Launching lib/main.dart on sdk gphone x86 arm in debug mode...
Running Gradle task 'assembleDebug'...

FAILURE: Build failed with an exception.

* What went wrong:
Could not open settings remapped class cache for 3n8ygcxrc7nelqcw5tzib8bo6 (/Users/ajithjoseph/.gradle/caches/5.6.2/scripts-remapped/settings_aeogj1d851ij3ebqtltiz1cav/3n8ygcxrc7nelqcw5tzib8bo6/settings8410a2d21ed2f87c8a0398566330ee52).
> Could not open settings generic class cache for settings file '/Volumes/WammyS_House/L/Developer/AndroidStudioProjects/myapp/android/settings.gradle' (/Users/ajithjoseph/.gradle/caches/5.6.2/scripts/3n8ygcxrc7nelqcw5tzib8bo6/settings/settings8410a2d21ed2f87c8a0398566330ee52).
   > BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 57

* 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 1s
Exception: Gradle task assembleDebug failed with exit code 1

  • 我的android studio安装在外部硬盘中。
  • 我也从android studio构建了基本活动,没有任何错误。

在Flutter项目中,我遇到此错误,该如何解决??

我尝试删除错误中提到的位置中的.lock文件。

0 个答案:

没有答案