Die App kann auf dem Android-Gerät nicht ausgeführt werden – Problem mit der Kotlin-VersionAndroid

Forum für diejenigen, die für Android programmieren
Guest
 Die App kann auf dem Android-Gerät nicht ausgeführt werden – Problem mit der Kotlin-Version

Post by Guest »

Ich habe dieses Problem seit zu vielen Tagen. Ich weiß nicht, warum mir bitte jemand dabei helfen kann. Ich stecke fest
wenn ich versuche, meine App in Android auszuführen Fehler tritt auf

Code: Select all

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
Ich kenne das Problem nicht genau, kann die App aber nicht unter Android ausführen

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post