#flutter
Вопрос:
Как я могу это исправить?
FAILURE: Build failed with an exception.
* What went wrong:
Task 'assembleDebug' not found in root project 'android'.
* Try:
Run gradlew tasks to get a list of available tasks. 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
ProcessException: Process exited abnormally:
FAILURE: Build failed with an exception.
* What went wrong:
Project 'app' not found in root project 'android'.
* 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
Command: D:flutterUSERNAMEsamplefolderfolderappnameandroidgradlew.bat app:tasks --all --console=auto
Комментарии:
1. попробуйте создать новый проект, скопируйте файлы в новый проект и запустите.
2. Если ваш проект Android настроен неправильно, так как он показывает, что «приложение» не найдено, откройте папку Android в Android studio, тогда вы можете получить точную ошибку и затем настроить.