Для ошибки, показанной ниже, я использую пример кода main.dart в
https. ://pub.dev/packages/ssh2/example
Код: Выделить всё
peter@solsona:~/AndroidStudioProjects/peter72_xssh2$ flutter run
Launching lib/main.dart on Pixel 8 Pro in debug mode...
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':ssh2'.
> Could not create an instance of type com.android.build.api.variant.impl.LibraryVariantBuilderImpl.
> Namespace not specified. Specify a namespace in the module's build file. See https://d.android.com/r/tools/upgrade-assistant/set-namespace for information about setting the namespace.
If you've specified the package attribute in the source AndroidManifest.xml, you can use the AGP Upgrade Assistant to migrate to the namespace value in the build file. Refer to https://d.android.com/r/tools/upgrade-assistant/agp-upgrade-assistant for general information about using the AGP Upgrade Assistant.
* 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 10s
Running Gradle task 'assembleDebug'... 10.9s
Error: Gradle task assembleDebug failed with exit code 1
< /code>
Эта сборка не удалась для Android Phone Pixel 8 Pro, используя Flutter 3.27.2, Dart 3.6.1 и Gradle 8.3. < /p>
peter@solsona:~/AndroidStudioProjects/peter72_xssh2$ flutter --version
Flutter 3.27.2 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 68415ad1d9 (6 days ago) • 2025-01-13 10:22:03 -0800
Engine • revision e672b006cb
Tools • Dart 3.6.1 • DevTools 2.40.2
Код: Выделить всё
peter@solsona:~/AndroidStudioProjects/peter72_xssh2$ cat android/gradle/wrapper/gradle-wrapper.properties
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-all.zip
https://d.android.com/r/tools/upgrade-a ... -namespace
но у меня нет файла с именем build.gradle.kts в моем проекте.
Я проверил сайт
https://d.android.com/r/tools/upgrade-a ... p-upgrade- помощник
но в android-studio, Инструменты>Помощник по обновлению AGP неактивен и недоступен.
Это поправимо или это мой единственный способ понизить Flutter до того уровня, где он был раньше?
Подробнее здесь: https://stackoverflow.com/questions/793 ... -to-3-27-2
Мобильная версия