Skip to content

Небольшое исправление MyTrackerSDKPlugin#13

Open
PuppyLo wants to merge 1 commit intomyTrackerSDK:mainfrom
PuppyLo:main
Open

Небольшое исправление MyTrackerSDKPlugin#13
PuppyLo wants to merge 1 commit intomyTrackerSDK:mainfrom
PuppyLo:main

Conversation

@PuppyLo
Copy link

@PuppyLo PuppyLo commented Sep 2, 2025

No description provided.

@Zaakk
Copy link
Contributor

Zaakk commented Sep 3, 2025

А что исправление решает? У вас не собирается проект с SDK?

@PuppyLo
Copy link
Author

PuppyLo commented Sep 3, 2025

Не запускался проект до внесения этой правки:


[√] Flutter (Channel beta, 3.36.0-0.2.pre, on Microsoft Windows [Version 10.0.26100.4652], locale ru-RU) [785ms]
    • Flutter version 3.36.0-0.2.pre on channel beta at C:\Users\PuppyLo\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 452c427043 (7 days ago), 2025-08-25 10:21:35 -0700
    • Engine revision 56f64c2647
    • Dart version 3.10.0 (build 3.10.0-75.1.beta)
    • DevTools version 2.49.0
    • Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios, cli-animations, enable-native-assets, enable-lldb-debugging

[√] Windows Version (Њ ©Єа®б®дв Windows 11 Pro 64-bit, 24H2, 2009) [3,3s]

[√] Android toolchain - develop for Android devices (Android SDK version 36.0.0) [3,4s]
    • Android SDK at C:\Users\PuppyLo\android_sdk
    • Emulator version 36.2.1.0 (build_id 13797555) (CL:N/A)
    • Platform android-36, build-tools 36.0.0
    • Java binary at: C:\Programs\jdk-21.0.7+6\bin\java
      This JDK is specified by the JAVA_HOME environment variable.
      To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
    • Java version OpenJDK Runtime Environment Microsoft-11369940 (build 21.0.7+6-LTS)
    • All Android licenses accepted.

[√] Chrome - develop for the web [461ms]
    • CHROME_EXECUTABLE = C:\Programs\Cent Browser\chrome.exe

[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.14.13 Preview 1.0) [460ms]
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Preview
    • Visual Studio Community 2022 version 17.14.36414.22
    • The current Visual Studio installation is a pre-release version. It may not be supported by Flutter yet.
    • Windows 10 SDK version 10.0.26100.0

[√] Connected device (3 available) [314ms]
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.26100.4652]
    • Chrome (web)      • chrome  • web-javascript • unknown
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 139.0.3405.125

[√] Network resources [567ms]
    • All expected network resources are available.

e: file:///C:/Users/PuppyLo/Projects/flutter_cultivator/repository/mytracker-flutter-main/sdk/android/src/main/kotlin/com/my/tracker/MyTrackerSDKPlugin.kt:17:1 Class 'MyTrackerSDKPlugin' is not abstract and does not implement abstract member 'onMethodCall'.
e: file:///C:/Users/PuppyLo/Projects/flutter_cultivator/repository/mytracker-flutter-main/sdk/android/src/main/kotlin/com/my/tracker/MyTrackerSDKPlugin.kt:55:5 'onMethodCall' overrides nothing. Potential signatures for overriding:
fun onMethodCall(p0: MethodCall, p1: MethodChannel.Result): Unit
e: file:///C:/Users/PuppyLo/Projects/flutter_cultivator/repository/mytracker-flutter-main/sdk/android/src/main/kotlin/com/my/tracker/MyTrackerSDKPlugin.kt:55:57 One type argument expected for class Result<out T> : Serializable.
e: file:///C:/Users/PuppyLo/Projects/flutter_cultivator/repository/mytracker-flutter-main/sdk/android/src/main/kotlin/com/my/tracker/MyTrackerSDKPlugin.kt:111:24 Unresolved reference 'notImplemented'.
e: file:///C:/Users/PuppyLo/Projects/flutter_cultivator/repository/mytracker-flutter-main/sdk/android/src/main/kotlin/com/my/tracker/MyTrackerSDKPlugin.kt:116:16 Unresolved reference 'success'.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':mytracker_sdk:compileDebugKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
   > Compilation error. See log for more details

@adimshev
Copy link

+1

@dev1omelchenko
Copy link

Спасибо! Фикс помог. Без него не собирался проект.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants