Код: Выделить всё
* What went wrong:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
> javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Premature end of file.]
Код: Выделить всё
* What went wrong:
Could not determine the dependencies of task ':app:lintVitalReportRelease'.
> javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Premature end of file.]
Это то, что я пробовал, но ничего не получилось.
< сильный>1. Измените версию инструментов сборки в build.gradle
Код: Выделить всё
compileSdkVersion 34
buildToolsVersion "34.0.0"
3. Удалите Android Studio и переустановите его
4. flutter Doctor -v
сообщает об отсутствии проблем
Пустой проект flutter с этой конфигурацией также не собирается.
Когда я меняю файл app/build. файл Gragle
Код: Выделить всё
compileSdkVersion 34
minSdkVersion 21
targetSdkVersion 34
Я установил DistributionUrl=https://services.gradle.org/distributio ... .5-all.zip, а также обновил его gradle файл. А также попробуйте обновить и понизить версию Kotlin.
Может ли кто-нибудь помочь. Я застрял.
Подробнее здесь: https://stackoverflow.com/questions/776 ... ithjavac-a