yang991178 / fluent-reader-lite

Simplistic mobile RSS client built with Flutter
https://hyliu.me/fluent-reader-lite/
BSD 3-Clause "New" or "Revised" License
1.38k stars 89 forks source link

Error when building for Android #56

Open devt2022 opened 2 years ago

devt2022 commented 2 years ago

Describe the bug When building/executing app as Android app inside Android simulator, the application is installed, however it can't open the main page, it is giving an error below.

E/flutter ( 7399): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: MissingPluginException(No implementation found for method getAll on channel plugins.flutter.io/shared_preferences)

The application is built/deploy from Windows.

To Reproduce Steps to reproduce the behavior:

  1. Checkout main branch.
  2. Perform flutter devices, make sure android simulator is present.
    sdk gphone x86 arm (mobile) • emulator-5554 • android-x86    • Android 11 (API 30) (emulator)
    Chrome (web)                • chrome        • web-javascript • Google Chrome 96.0.4664.110
    Edge (web)                  • edge          • web-javascript • Microsoft Edge 96.0.1054.43
  3. Small files changes to support higher Kotlin/Gradle version. I was not able to build with existing version specified.
    • android/build.gradle Changed to "ext.kotlin_version = '1.6.10'"
    • android/gradle/wrapper/gradle-wrapper.properties Changed to "gradle-6.6.1"
  4. Generate l10 files, perform flutter --no-color pub global run intl_utils:generate.
  5. Perform flutter run --ignore-deprecation. The app is built and install to existing device available.
  6. App is deployed, it opens main page, but in the background a error is throw, MissingPluginException(No implementation found for method getAll on channel plugins.flutter.io/shared_preferences

Versions

Android: 31 Windows: 10 Flutter 2.9.0-0.1.pre • channel beta • https://github.com/flutter/flutter.git Framework • revision 8f1f9c10f0 (3 weeks ago) • 2021-12-14 13:41:48 -0800 Engine • revision 234aca678a Tools • Dart 2.16.0 (build 2.16.0-80.1.beta) • DevTools 2.9.1 Kotlin: 203-1.5.20-release-289-AS7717.8


Any idea? Just FYI, maybe it worth to list all version of framework used when building for different platform in README.md.