fluttercommunity / fluttercommunity/flutter_webview_plugin
different roots error: :flutter_webview_plugin:compileDebugUnitTestSources
- 主要言語
- Java
- スター
- 1.5k
- フォーク
- 938
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
## System info
Issue occurs on: Android
Plugin version: 0.4.0
**Errors**
> [!CAUTION]
> The supplied phased action failed with an exception.
> Could not create task ':flutter_webview_plugin:compileDebugUnitTestSources'.
> this and base files have different roots: F:/path/build/flutter_webview_plugin and C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/flutter_webview_plugin-0.4.0/android.
**Flutter Doctor**
```
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.19.5, on Microsoft Windows [Version 10.0.19045.4239], locale de-DE)
• Flutter version 3.19.5 on channel stable at F:\flutter\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 300451adae (11 days ago), 2024-03-27 21:54:07 -0500
• Engine revision e76c956498
• Dart version 3.3.3
• DevTools version 2.31.1
[√] Windows Version (Installed version of Windows is version 10 or higher)
[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
• Android SDK at C:\Users\Bizzi\AppData\Local\Android\Sdk
• Platform android-34, build-tools 34.0.0
• ANDROID_HOME = C:\Users\Bizzi\AppData\Local\Android\Sdk
• ANDROID_SDK_ROOT = C:\Users\Bizzi\AppData\Local\Android\Sdk
• Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java
• Java version OpenJDK Runtime Environment (build 17.0.9+0--11185874)
X Android license status unknown.
Run `flutter doctor --android-licenses` to accept the SDK licenses.
See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.
[√] Android Studio (version 2023.2)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 17.0.9+0--11185874)
[√] VS Code (version 1.88.0)
• VS Code at C:\Users\Bizzi\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.86.0
[√] Connected device (1 available)
• XQ CC54 (mobile) • HQ625W350F • android-arm64 • Android 14 (API 34)
[√] Network resources
• All expected network resources are available.
! Doctor found issues in 1 category.
```
The error message appears in `Visual Studio Code`. I think that there are only problems with the unit tests. This does not affect the executability or the build process of the app.
Executing `flutter pub outdated`, `dart pub cache clean`, `dart pub cache repair`, `flutter clean` was not successful to fix the errors.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
Windows 上で Flutter 3.19.5 と Android を使用して、報告されたユニットテストタスクの失敗を再現し、その後、`compileDebugUnitTestSources` 中にプラグインのキャッシュされた Android ソースがどのように使用されるかを調査します。異なるルートに関するエラーが表示されなくなり、アプリが引き続きビルドおよび実行できれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- android, flutter, java
- 領域
- build-system, mobile, testing
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100