Я столкнулся с таким количеством ошибок в то же время, когда я настраиваю Firebase с Flutter, я использовал < /p>
firebase_core: ^3.13.0
firebase_auth: ^5.5.2
в pubspec.yaml и получить эти ошибки. Я думаю, что это ошибки совместимости или что, нужна помощь? < /P>
C:\Users\danial\StudioProjects\MedStock> flutter run
Resolving dependencies... (1.7s)
Downloading packages...
async 2.11.0 (2.13.0 available)
boolean_selector 2.1.1 (2.1.2 available)
characters 1.3.0 (1.4.0 available)
clock 1.1.1 (1.1.2 available)
collection 1.18.0 (1.19.1 available)
fake_async 1.3.1 (1.3.3 available)
flutter_lints 4.0.0 (5.0.0 available)
http_parser 4.0.2 (4.1.2 available)
leak_tracker 10.0.5 (10.0.9 available)
leak_tracker_flutter_testing 3.0.5 (3.0.9 available)
lints 4.0.0 (5.1.1 available)
matcher 0.12.16+1 (0.12.17 available)
material_color_utilities 0.11.1 (0.12.0 available)
meta 1.15.0 (1.16.0 available)
path 1.9.0 (1.9.1 available)
source_span 1.10.0 (1.10.1 available)
stack_trace 1.11.1 (1.12.1 available)
stream_channel 2.1.2 (2.1.4 available)
term_glyph 1.2.1 (1.2.2 available)
test_api 0.7.2 (0.7.4 available)
vm_service 14.2.5 (15.0.0 available)
Got dependencies!
22 packages have newer versions incompatible with dependency constraints.
Try flutter pub outdated for more information.
Launching lib\main.dart on sdk gphone64 x86 64 in debug mode...
**Error from here:**
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:checkDebugDuplicateClasses'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Failed to transform guava-31.1-android.jar (com.google.guava:guava:31.1-android) to match attributes {artifactType=enumerated-runtime-classes, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.
> Could not download guava-31.1-android.jar (com.google.guava:guava:31.1-android)
> Could not get resource 'https://repo.maven.apache.org/maven2/co ... ndroid.jar'.
> Could not GET 'https://repo.maven.apache.org/maven2/co ... ndroid.jar'.
> No such host is known (repo.maven.apache.org)
* 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 2m 50s
Running Gradle task 'assembleDebug'... 172.1s
[!] Gradle threw an error while downloading artifacts from the network.
Retrying Gradle Build: #1, wait time: 100ms
warning: [options] source value 8 is obsolete and will be removed in a future release
warning: [options] target value 8 is obsolete and will be removed in a future release
warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
3 warnings
warning: [options] source value 8 is obsolete and will be removed in a future release
warning: [options] target value 8 is obsolete and will be removed in a future release
warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
3 warnings
e: file:///C:/Users/danial/.gradle/caches/transforms-3/80d00d49ba46718debd586c05f75e948/transformed/jetified-play-services-measurement-impl-22.4.0-api.jar!/ME
TA-INF/java.com.google.android.gms.libs.filecompliance.proto_file_access_api_type_kt_proto_lite.kotlin_moduleModule was compiled with an incompatible version of Kotlin. The binary version of its metadata is 2.1.0, expected version is 1.8.0.
e: file:///C:/Users/danial/.gradle/caches/transforms-3/80d00d49ba46718debd586c05f75e948/transformed/jetified-play-services-measurement-impl-22.4.0-api.jar!/ME
TA-INF/third_party.kotlin.protobuf.src.commonMain.kotlin.com.google.protobuf.kotlin_only_for_use_in_proto_generated_code_its_generator_and_tests.kotlin_moduleModule was compiled with an incompatible version of Kotlin. The binary version of its metadata is 2.1.0, expected version is 1.8.0.
e: file:///C:/Users/danial/.gradle/caches/transforms-3/80d00d49ba46718debd586c05f75e948/transformed/jetified-play-services-measurement-impl-22.4.0-api.jar!/ME
TA-INF/third_party.kotlin.protobuf.src.commonMain.kotlin.com.google.protobuf.kotlin_shared_runtime.kotlin_moduleModule was compiled with an incompatible version of Kotlin. The binary version of its metadata is 2.1.0, expected version is 1.8.0.
e: file:///C:/Users/danial/.gradle/caches/transforms-3/e215b4eb231b99828ca651edb9b3f920/transformed/jetified-play-services-measurement-api-22.4.0-api.jar!/MET
A-INF/java.com.google.android.gmscore.integ.client.measurement_api_measurement_api.kotlin_moduleModule was compiled with an incompatible version of Kotlin. The binary version of its metadata is 2.1.0, expected version is 1.8.0.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileDebugKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
> Compilation error. See log for more details
* 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 7m 15s
Running Gradle task 'assembleDebug'... 439.1s
┌─ Flutter Fix ──────────────────────────────────────────────────────────────────────────────────────────┐
│ [!] Your project requires a newer version of the Kotlin Gradle plugin. │
│ Find the latest version on https://kotlinlang.org/docs/releases.ht ... se-details, then update the │
│ version number of the plugin with id "org.jetbrains.kotlin.android" in the plugins block of │
│ C:\Users\danial\StudioProjects\MedStock\android\settings.gradle. │
│ │
│ Alternatively (if your project was created before Flutter 3.19), update │
│ C:\Users\danial\StudioProjects\MedStock\android\build.gradle │
│ ext.kotlin_version = '' │
└────────────────────────────────────────────────────────────────────────────────────────────────────────┘
Error: Gradle task assembleDebug failed with exit code 1
PS C:\Users\danial\StudioProjects\MedStock>
Подробнее здесь: https://stackoverflow.com/questions/795 ... and-kotlin
Имея совместимость и другие проблемы в установке Firebase с Flutter и Kotlin ⇐ Android
Форум для тех, кто программирует под Android
1744633244
Anonymous
Я столкнулся с таким количеством ошибок в то же время, когда я настраиваю Firebase с Flutter, я использовал < /p>
firebase_core: ^3.13.0
firebase_auth: ^5.5.2
в pubspec.yaml и получить эти ошибки. Я думаю, что это ошибки совместимости или что, нужна помощь? < /P>
C:\Users\danial\StudioProjects\MedStock> flutter run
Resolving dependencies... (1.7s)
Downloading packages...
async 2.11.0 (2.13.0 available)
boolean_selector 2.1.1 (2.1.2 available)
characters 1.3.0 (1.4.0 available)
clock 1.1.1 (1.1.2 available)
collection 1.18.0 (1.19.1 available)
fake_async 1.3.1 (1.3.3 available)
flutter_lints 4.0.0 (5.0.0 available)
http_parser 4.0.2 (4.1.2 available)
leak_tracker 10.0.5 (10.0.9 available)
leak_tracker_flutter_testing 3.0.5 (3.0.9 available)
lints 4.0.0 (5.1.1 available)
matcher 0.12.16+1 (0.12.17 available)
material_color_utilities 0.11.1 (0.12.0 available)
meta 1.15.0 (1.16.0 available)
path 1.9.0 (1.9.1 available)
source_span 1.10.0 (1.10.1 available)
stack_trace 1.11.1 (1.12.1 available)
stream_channel 2.1.2 (2.1.4 available)
term_glyph 1.2.1 (1.2.2 available)
test_api 0.7.2 (0.7.4 available)
vm_service 14.2.5 (15.0.0 available)
Got dependencies!
22 packages have newer versions incompatible with dependency constraints.
Try flutter pub outdated for more information.
Launching lib\main.dart on sdk gphone64 x86 64 in debug mode...
**Error from here:**
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:checkDebugDuplicateClasses'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Failed to transform guava-31.1-android.jar (com.google.guava:guava:31.1-android) to match attributes {artifactType=enumerated-runtime-classes, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.
> Could not download guava-31.1-android.jar (com.google.guava:guava:31.1-android)
> Could not get resource 'https://repo.maven.apache.org/maven2/com/google/guava/guava/31.1-android/guava-31.1-android.jar'.
> Could not GET 'https://repo.maven.apache.org/maven2/com/google/guava/guava/31.1-android/guava-31.1-android.jar'.
> No such host is known (repo.maven.apache.org)
* 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 2m 50s
Running Gradle task 'assembleDebug'... 172.1s
[!] Gradle threw an error while downloading artifacts from the network.
Retrying Gradle Build: #1, wait time: 100ms
warning: [options] source value 8 is obsolete and will be removed in a future release
warning: [options] target value 8 is obsolete and will be removed in a future release
warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
3 warnings
warning: [options] source value 8 is obsolete and will be removed in a future release
warning: [options] target value 8 is obsolete and will be removed in a future release
warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
3 warnings
e: file:///C:/Users/danial/.gradle/caches/transforms-3/80d00d49ba46718debd586c05f75e948/transformed/jetified-play-services-measurement-impl-22.4.0-api.jar!/ME
TA-INF/java.com.google.android.gms.libs.filecompliance.proto_file_access_api_type_kt_proto_lite.kotlin_moduleModule was compiled with an incompatible version of Kotlin. The binary version of its metadata is 2.1.0, expected version is 1.8.0.
e: file:///C:/Users/danial/.gradle/caches/transforms-3/80d00d49ba46718debd586c05f75e948/transformed/jetified-play-services-measurement-impl-22.4.0-api.jar!/ME
TA-INF/third_party.kotlin.protobuf.src.commonMain.kotlin.com.google.protobuf.kotlin_only_for_use_in_proto_generated_code_its_generator_and_tests.kotlin_moduleModule was compiled with an incompatible version of Kotlin. The binary version of its metadata is 2.1.0, expected version is 1.8.0.
e: file:///C:/Users/danial/.gradle/caches/transforms-3/80d00d49ba46718debd586c05f75e948/transformed/jetified-play-services-measurement-impl-22.4.0-api.jar!/ME
TA-INF/third_party.kotlin.protobuf.src.commonMain.kotlin.com.google.protobuf.kotlin_shared_runtime.kotlin_moduleModule was compiled with an incompatible version of Kotlin. The binary version of its metadata is 2.1.0, expected version is 1.8.0.
e: file:///C:/Users/danial/.gradle/caches/transforms-3/e215b4eb231b99828ca651edb9b3f920/transformed/jetified-play-services-measurement-api-22.4.0-api.jar!/MET
A-INF/java.com.google.android.gmscore.integ.client.measurement_api_measurement_api.kotlin_moduleModule was compiled with an incompatible version of Kotlin. The binary version of its metadata is 2.1.0, expected version is 1.8.0.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileDebugKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
> Compilation error. See log for more details
* 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 7m 15s
Running Gradle task 'assembleDebug'... 439.1s
┌─ Flutter Fix ──────────────────────────────────────────────────────────────────────────────────────────┐
│ [!] Your project requires a newer version of the Kotlin Gradle plugin. │
│ Find the latest version on https://kotlinlang.org/docs/releases.html#release-details, then update the │
│ version number of the plugin with id "org.jetbrains.kotlin.android" in the plugins block of │
│ C:\Users\danial\StudioProjects\MedStock\android\settings.gradle. │
│ │
│ Alternatively (if your project was created before Flutter 3.19), update │
│ C:\Users\danial\StudioProjects\MedStock\android\build.gradle │
│ ext.kotlin_version = '' │
└────────────────────────────────────────────────────────────────────────────────────────────────────────┘
Error: Gradle task assembleDebug failed with exit code 1
PS C:\Users\danial\StudioProjects\MedStock>
Подробнее здесь: [url]https://stackoverflow.com/questions/79571651/having-compatibiblity-and-other-issues-in-setup-firebase-with-flutter-and-kotlin[/url]
Ответить
1 сообщение
• Страница 1 из 1
Перейти
- Кемерово-IT
- ↳ Javascript
- ↳ C#
- ↳ JAVA
- ↳ Elasticsearch aggregation
- ↳ Python
- ↳ Php
- ↳ Android
- ↳ Html
- ↳ Jquery
- ↳ C++
- ↳ IOS
- ↳ CSS
- ↳ Excel
- ↳ Linux
- ↳ Apache
- ↳ MySql
- Детский мир
- Для души
- ↳ Музыкальные инструменты даром
- ↳ Печатная продукция даром
- Внешняя красота и здоровье
- ↳ Одежда и обувь для взрослых даром
- ↳ Товары для здоровья
- ↳ Физкультура и спорт
- Техника - даром!
- ↳ Автомобилистам
- ↳ Компьютерная техника
- ↳ Плиты: газовые и электрические
- ↳ Холодильники
- ↳ Стиральные машины
- ↳ Телевизоры
- ↳ Телефоны, смартфоны, плашеты
- ↳ Швейные машинки
- ↳ Прочая электроника и техника
- ↳ Фототехника
- Ремонт и интерьер
- ↳ Стройматериалы, инструмент
- ↳ Мебель и предметы интерьера даром
- ↳ Cантехника
- Другие темы
- ↳ Разное даром
- ↳ Давай меняться!
- ↳ Отдам\возьму за копеечку
- ↳ Работа и подработка в Кемерове
- ↳ Давай с тобой поговорим...
Мобильная версия