前提
android studioでのflutterプログラムのビルドエラー
実現したいこと
android studioでflutterが使用できる環境を作りたい
発生している問題・エラーメッセージ
Launching lib\main.dart on Android SDK built for x86 in debug mode...
Running Gradle task 'assembleDebug'...
FAILURE: Build failed with an exception.*What went wrong:
Gradle could not start your build.Cannot create service of type BuildTreeActionExecutor using method LauncherServices$ToolingBuildTreeScopeServices.createActionExecutor() as there is a problem with parameter #1 of type List<BuildActionRunner>.
Cannot create service of type BuildModelActionRunner using BuildModelActionRunner constructor as there is a problem with parameter #1 of type PayloadSerializer.> Cannot create service of type PayloadSerializer using method LauncherServices$ToolingGradleUserHomeScopeServices.createPayloadSerializer() as there is a problem with parameter #2 of type PayloadClassLoaderFactory. > Cannot create service of type PayloadClassLoaderFactory using method LauncherServices$ToolingGradleUserHomeScopeServices.createClassLoaderFactory() as there is a problem with parameter #1 of type CachedClasspathTransformer. > Cannot create service of type DefaultCachedClasspathTransformer using DefaultCachedClasspathTransformer constructor as there is a problem with parameter #6 of type FileSystemAccess. > Cannot create service of type FileSystemAccess using method VirtualFileSystemServices$GradleUserHomeServices.createFileSystemAccess() as there is a problem with parameter #2 of type VirtualFileSystem. > Cannot create service of type BuildLifecycleAwareVirtualFileSystem using method VirtualFileSystemServices$GradleUserHomeServices.createVirtualFileSystem() as there is a problem with parameter #6 of type GlobalCacheLocations. > Cannot create service of type GlobalCacheLocations using method GradleUserHomeScopeServices.createGlobalCacheLocations() as there is a problem with parameter #1 of type List<GlobalCache>. > Could not create service of type FileAccessTimeJournal using GradleUserHomeScopeServices.createFileAccessTimeJournal(). > java.io.FileNotFoundException: C:\Users\■■■■■■\.gradle\caches\journal-1\journal-1.lock (�A�N�Z�X�����ۂ���܂����B)
*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 3s
Retrying Gradle Build: #1, wait time: 100ms
[!] Gradle threw an error while downloading artifacts from the network.
引用テキスト
質問内容
これからアプリケーション開発を学ぼうと思っている素人です。
素人の質問で申し訳ないのですが、Flutterのテストプログラムを実行しようとすると以下のようなエラーをはいてしまいます。
調べても詳しいことがわからず3日間くらい奮闘してます...
1年ほど前にandroidstudioを使用していたことがあり、その際flutterは使用できていました。
それからandroidstudioをアンインストールし環境変数のパスに関しても削除していました。
最近になってもう一度flutterをしようとしインストールを行ったのですが実行できない状況です。
androidstudio、flutterともに最新のものを使用しています。
対処法がわかる方いらっしゃいましたら回答お願いします。
補足情報(FW/ツールのバージョンなど)
windows10
flutter : 3.3.2(stable)
android studio : Dolphin | 2021.3.1
あなたの回答
tips
プレビュー