приложение не удалось запустить после подключения библиотеки shared_preferences: ^ 0.5.7 + 3 и та же проблема с плагином sqflite - PullRequest
0 голосов
/ 21 июня 2020

Мое приложение не запустилось после того, как я подключил shared_preferences: ^0.5.7+3 библиотеку, и та же проблема с плагином sqflite. См. Журнал ошибок

[+895892 ms] FAILURE: Build failed with an exception.
[   +4 ms] * What went wrong:
[        ] Execution failed for task 
':shared_preferences:extractDebugAnnotations'.
[        ] > Could not resolve all files for configuration 
':shared_preferences:lintClassPath'.
[        ]    > Could not download intellij-core.jar 
(com.android.tools.external.com-intellij:intellij-core:26.5.0)
[        ]       > Could not get resource 
'https://dl.google.com/dl/android/maven2/com/android/tools/external/com- 
intellij/intellij-core/26.5.0/intellij-core-26.5.0.jar'.
[        ]          > Tag mismatch!
[        ]    > Could not download groovy-all.jar 
(org.codehaus.groovy:groovy-all:2.4.15)
[        ]       > Could not get resource 
'https://jcenter.bintray.com/org/codehaus/groovy/groovy- 
 all/2.4.15/groovy-all-2.4.15.jar'.
[   +5 ms]          > Read timed out
[   +1 ms] * Try:
[   +1 ms] 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
[   +3 ms] BUILD FAILED in 14m 54s
[{"event":"app.progress","params":{"appId":"f780a728-3b3b-464c-a369- 
5f2bb360c086","id":"0","progressId":null,"finished":true}}]
[+2903 ms] Exception: Gradle task assembleDebug failed with exit code 1

1 Ответ

0 голосов
/ 21 июня 2020

Согласно этому: https://github.com/flutter/flutter/issues/48264

Вы должны попробовать:

flutter pub cache repair
cd <YOUR APP FOLDER>
flutter clean

Если это не сработает, попробуйте удалить ~ /. gradle content

Также попробуйте Invalidate Caches/Restart.... Его можно найти в разделе «Файл» в левом верхнем углу android studio.

...