У меня возникает эта проблема уже слишком много дней. Я не знаю, почему, пожалуйста, кто-нибудь может мне помочь. Я застрял.
Когда я пытаюсь запустить свое приложение на 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
У меня возникает эта проблема уже слишком много дней. Я не знаю, почему, пожалуйста, кто-нибудь может мне помочь. Я застрял. Когда я пытаюсь запустить свое приложение на Android, это возникает ошибка [code]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 [/code] Я точно не знаю, в чем проблема, но не могу запустить приложение на Android