Невозможно запустить приложение на устройстве Android — проблема с версией KotlinAndroid

Форум для тех, кто программирует под Android
Ответить
Anonymous
 Невозможно запустить приложение на устройстве Android — проблема с версией Kotlin

Сообщение Anonymous »

У меня возникает эта проблема уже слишком много дней. Я не знаю, почему, пожалуйста, кто-нибудь может мне помочь. Я застрял.
Когда я пытаюсь запустить свое приложение на Android, это возникает ошибка

Код: Выделить всё

Launching lib/main.dart on sdk gphone64 arm64 in debug mode...
Warning: SDK processing. This version only understands SDK XML versions up to 3 but an SDK XML file of version 4 was encountered. This can happen if you use versions of Android Studio and the command-line tools that were released at different times.
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] 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] 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.
warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
3 warnings
3 warnings
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.
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: /Users/rajpurohittanu/.pub-cache/hosted/pub.dev/firebase_messaging-15.2.0/android/src/main/java/io/flutter/plugins/firebase/messaging/FlutterFirebaseMessagingUtils.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
3 warnings
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.
3 warnings
e: file:///Users/rajpurohittanu/.pub-cache/hosted/pub.dev/amplitude_flutter-3.16.4/android/src/main/kotlin/com/amplitude/amplitude_flutter/AmplitudeFlutterPlugin.kt:14:48 Unresolved reference 'Registrar'.
e: file:///Users/rajpurohittanu/.pub-cache/hosted/pub.dev/amplitude_flutter-3.16.4/android/src/main/kotlin/com/amplitude/amplitude_flutter/AmplitudeFlutterPlugin.kt:18:19 Unresolved reference 'plugins'.
e: file:///Users/rajpurohittanu/.pub-cache/hosted/pub.dev/amplitude_flutter-3.16.4/android/src/main/kotlin/com/amplitude/amplitude_flutter/AmplitudeFlutterPlugin.kt:29:52 Unresolved reference 'Registrar'.
e: file:///Users/rajpurohittanu/.pub-cache/hosted/pub.dev/amplitude_flutter-3.16.4/android/src/main/kotlin/com/amplitude/amplitude_flutter/AmplitudeFlutterPlugin.kt:30:30 Unresolved reference 'context'.
e: file:///Users/rajpurohittanu/.pub-cache/hosted/pub.dev/amplitude_flutter-3.16.4/android/src/main/kotlin/com/amplitude/amplitude_flutter/AmplitudeFlutterPlugin.kt:31:51 Unresolved reference 'messenger'.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':amplitude_flutter: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 1m 51s
Running Gradle task 'assembleDebug'...                            112.4s
Error: Gradle task assembleDebug failed with exit code 1
Я точно не знаю, в чем проблема, но не могу запустить приложение на Android

Подробнее здесь: https://stackoverflow.com/questions/793 ... on-problem
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «Android»