Не удалось найти метод Properties () для аргументов [] не удается запустить приложение Android с Flutter - PullRequest
2 голосов
/ 30 марта 2020

Мне нужна ваша помощь, по некоторым причинам мое приложение больше не работает на Android, я получаю следующую ошибку:

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\Projects\myapp\android\app\build.gradle' line: 1

* What went wrong:
A problem occurred evaluating project ':app'.
> Could not find method Properties() for arguments [] on project ':app' of type org.gradle.api.Project.

* 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 992ms
Finished with error: Gradle task assembleDebug failed with exit code 1

Я пробовал несколько команд:

flutter packages pub cache repair

и трепетать, но ничего из этого не работает. Для информации вот мое расширение, которое я использую:

dependencies:
  flutter:
    sdk: flutter
  firebase_auth: ^0.15.4
  provider: ^4.0.4
  cloud_firestore_all: ^0.1.1+4
  google_sign_in: ^4.1.1
  shared_preferences: ^0.5.6+1
  fluttertoast: ^3.1.3

  # The following adds the Cupertino Icons font to your application.
  # Use with the CupertinoIcons class for iOS style icons.
  cupertino_icons: ^0.1.2

Я также попытался изменить в app / build.gradle: def localProperties = Properties ()
, чтобы определить localProperties = new Properties ()
Но это ничего не изменило, у меня заканчиваются решения из того, что я нашел, приложение все еще отлично работает на iOS.
Спасибо за помощь

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...