0%
Tauri 使用 Mantine UI
发表于
分类于
tauri
hello tauri
发表于
分类于
tauri
Flutter 登录页-17
发表于
分类于
flutter
Flutter 常用第三方包
发表于
分类于
flutter
解决 flutter 警告 Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null
发表于
分类于
dev
1 | Flutter: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null |
解决方法:
1 | dependencies: |
1 | flutter clean |
解决Android真机不能播放视频问题
发表于
分类于
dev
Flutter 使用 video_player 播放视频,android模拟器上播放没有问题,真机出现播放画面黑屏问题。
检查debug信息,发现出现一条错误提示:
1 | PlatformException(VideoError, Video player had error com.google.android.exoplayer2.ExoPlaybackException: Source error, null, null) |
问题原因
安卓上从9.0(API level28)开始,明文通信支持默认是被禁用的,官方说法是不安全。因为我们播放的视频源是http协议,所以无法播放。
解决方法
修改AndroidManifest.xml
1 | <manifest ...> |
macos cocoapods 安装
发表于
分类于
dev
1 | rvm install ruby@latest |
解决安装ruby3错误 rvm_log_dotted:23
解决安装 ruby3 错误 _rvm_log_dotted:23: permission denied:
1 | rvm install ruby@latest |
macos 安装 ruby3 出现错误:
1 | Error running ' CFLAGS=-O3 -I/usr/local/opt/libyaml/include -I/usr/local/opt/libksba/include -I/usr/local/opt/readline/include -I/usr/local/opt/zlib/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/libyaml/include -I/usr/local/opt/libksba/include -I/usr/local/opt/readline/include -I/usr/local/opt/zlib/include -I/usr/local/opt/openssl@1.1/include LDFLAGS=-L/usr/local/opt/libyaml/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/zlib/lib -L/usr/local/opt/openssl@1.1/lib -L/usr/local/opt/libyaml/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/zlib/lib -L/usr/local/opt/openssl@1.1/lib ./configure --prefix=/Users/tiny/.rvm/rubies/ruby-3.0.0 --disable-install-doc --enable-shared', please read /Users/tiny/.rvm/log/1608892720_ruby-3.0.0/configure.log There has been an error while running configure. Halting the installation. |
查看日志错误为:_rvm_log_dotted:23: permission denied:
使用下面命令重新安装成功
rvm install ruby-3.0.0 –with-openssl-dir=brew --prefix openssl