hoshiimai / anumber

1 stars 0 forks source link

ios shared_preferences error #1

Open nt-718 opened 1 year ago

nt-718 commented 1 year ago

Unhandled Exception: PlatformException(channel-error, Unable to establish connection on channel., null, null)

hoshiimai commented 1 year ago

https://qiita.com/kyoichi-taniguchi/items/b5bedbbc4358edb51c3a

hoshiimai commented 1 year ago

https://hondakenya.work/flutter-widgetkit/

hoshiimai commented 1 year ago

https://zenn.dev/mcz9mm/articles/ca58e5b7f9bc96ad552f

nt-718 commented 1 year ago

https://qiita.com/kunichiko/items/fe492a201c4e28a49536

hoshiimai commented 1 year ago

https://hondakenya.work/flutter-widgetkit/

nt-718 commented 1 year ago

数字押下時 [VERBOSE-2:dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(channel-error, Unable to establish connection on channel., null, null)

0 PathProviderApi.getDirectoryPath (package:path_provider_foundation/messages.g.dart:38:7)

#1 getTemporaryDirectory (package:path_provider/path_provider.dart:55:24) #2 AudioCache.fetchToMemory (package:audioplayers/src/audio_cache.dart:92:27) #3 AudioCache.load (package:audioplayers/src/audio_cache.dart:115:31)
nt-718 commented 1 year ago

shared_preferences等のバージョンをanyにしてもエラー内容変わらず [VERBOSE-2:dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(channel-error, Unable to establish connection on channel., null, null)

nt-718 commented 1 year ago

just_audio

0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:313:7)

#1 MethodChannelJustAudio.disposeAllPlayers (package:just_audio_platform_interface/method_channel_just_audio.dart:29:10) [VERBOSE-2:dart_vm_initializer.cc(41)] Unhandled Exception: MissingPluginException(No implementation found for method init on channel com.ryanheise.just_audio.methods) #0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:313:7) #1 MethodChannelJustAudio.init (package:just_audio_platform_interface/method_channel_just_audio.dart:13:5) #2 AudioPlayer._setPlatformActive.setPlatform (package:just_audio/just_audio.dart:1340:13)
nt-718 commented 1 year ago

[VERBOSE-2:dart_vm_initializer.cc(41)] Unhandled Exception: MissingPluginException(No implementation found for method disposeAllPlayers on channel com.ryanheise.just_audio.methods)

0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:313:7)

#1 MethodChannelJustAudio.disposeAllPlayers (package:just_audio_platform_interface/method_channel_just_audio.dart:29:10) [VERBOSE-2:dart_vm_initializer.cc(41)] Unhandled Exception: MissingPluginException(No implementation found for method init on channel com.ryanheise.just_audio.methods) #0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:313:7) #1 MethodChannelJustAudio.init (package:just_audio_platform_interface/method_channel_just_audio.dart:13:5) #2 AudioPlayer._setPlatformActive.setPlatform (package:just_audio/just_audio.dart:1340:13)
nt-718 commented 1 year ago

android emulatorで実行

FAILURE: Build failed with an exception.

BUILD FAILED in 53s

┌─ Flutter Fix ────────────────────────────────────────────────────────────────────────────────────┐ │ [!] Your project's Gradle version is incompatible with the Java version that Flutter is using │ │ for Gradle. │ │ │ │ To fix this issue, first, check the Java version used by Flutter by running flutter doctor │ │ --verbose. │ │ │ │ Then, update the Gradle version specified in │ │ /Users/nt/StudioProjects/anumber/anumber_production/android/gradle/wrapper/gradle-wrapper.proper │ │ ties to be compatible with that Java version. See the link below for more information on │ │ compatible Java/Gradle versions: │ │ https://docs.gradle.org/current/userguide/compatibility.html#java │ │ │ │ │ └──────────────────────────────────────────────────────────────────────────────────────────────────┘ Exception: Gradle task assembleDebug failed with exit code 1