anharu2394 / tapioca

a Flutter plugin for video editing on Android and iOS.
https://pub.dev/packages/tapioca
MIT License
123 stars 54 forks source link

Fails to compile on android #73

Closed frogman1189 closed 2 years ago

frogman1189 commented 2 years ago

Summary

When trying to compile example on android (once you've added the --ignore-deprecation flag) it fails and emits:

e: /Users/user/.pub-cache/hosted/pub.dartlang.org/tapioca-1.0.5+3/android/src/main/kotlin/me/anharu/video_editor/VideoEditorPlugin.kt: (27, 8): Class 'VideoEditorPlugin' is not abstract and does not implement abstract member public abstract fun onRequestPermissionsResult(p0: Int, p1: Array<(out) String!>, p2: IntArray): Boolean defined in io.flutter.plugin.common.PluginRegistry.RequestPermissionsResultListener
e: /Users/user/.pub-cache/hosted/pub.dartlang.org/tapioca-1.0.5+3/android/src/main/kotlin/me/anharu/video_editor/VideoEditorPlugin.kt: (105, 5): 'onRequestPermissionsResult' overrides nothing

flutter doctor:

``` [✓] Flutter (Channel stable, 3.0.5, on macOS 12.5.1 21G83 darwin-arm, locale en-NZ) • Flutter version 3.0.5 at /Users/user/Development/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision f1875d570e (9 weeks ago), 2022-07-13 11:24:16 -0700 • Engine revision e85ea0e79c • Dart version 2.17.6 • DevTools version 2.12.2 [✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0-rc1) • Android SDK at /Users/user/Library/Android/sdk • Platform android-33, build-tools 31.0.0-rc1 • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840) • All Android licenses accepted. [✓] Xcode - develop for iOS and macOS (Xcode 13.4.1) • Xcode at /Applications/Xcode.app/Contents/Developer • CocoaPods version 1.11.2 [✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome [✓] Android Studio (version 2021.2) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840) ```
anharu2394 commented 2 years ago

Update to the latest version(1.0.6+1) and retry

frogman1189 commented 2 years ago

It successfully compiles now :)