首页 > 其他分享 >arch4edu搞崩了我的flutter

arch4edu搞崩了我的flutter

时间:2023-11-26 15:48:55浏览次数:33  
标签:cache dart version arch4edu Android flutter

title: arch4edu搞崩了我的flutter
banner_img: https://cdn.studyinglover.com/pic/2023/08/588d9420c9302f5e0d6c2e89fbddf200.png
date: 2023-8-19 21:36:00

arch4edu搞崩了我的flutter

今天是快乐的一天,适合滚包

yay

一切安好,arch4edu说我的flutter需要更新

==> 要排除的包: (示例: "1 2 3", "1-3", "^4" 或软件库名称)
 -> 排除软件包可能会导致不完整的升级并破坏系统
==> 

没什么需要排除的,接下来就是愉快的自动安装

突然我看到了这个

image.png

警告啦,没啥好担心的啦,待会跑一下看好着没

flutter doctor                     
Found an existing Pub cache at /home/zjh/.pub-cache.
It can be repaired by running `dart pub cache repair`.
It can be reset by running `dart pub cache clean`.
Found an existing Dart Analysis Server cache at /home/zjh/.dartServer.
It can be reset by deleting /home/zjh/.dartServer.
Flutter failed to write to a file at "/opt/flutter/packages/flutter_tools/.dart_tool/version".
Please ensure that the SDK and/or project is installed in a location that has read/write
permissions for the current user.
Try running:
  sudo chown -R $(whoami) /opt/flutter/packages/flutter_tools/.dart_tool/version

好的他炸了

看着问题不大,就是读写权限的问题,的问题?鬼知道会有啥问题,我决定让arch4edu滚蛋

sudo pacman -Rns flutter把arch4edu的flutter删掉,然后去/etc/pacman.conf 删除了arch4edu镜像,再sudo pacman -Syu滚一遍包,最后yay flutter

中间会有一个问题

错误:无法提交处理 (有冲突的文件)
flutter: 文件系统中已存在 /opt/flutter/bin/cache/flutter_version_check.stamp 
发生错误,没有软件包被更新。

ok,sudo直接删就行,反正是cache

最后flutter docker

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.13.0, on Arch Linux 6.4.10-arch1-1, locale zh_CN.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Chrome - develop for the web
[✓] Linux toolchain - develop for Linux desktop
[✓] Android Studio (version 2022.2)
[✓] Connected device (2 available)
[✓] Network resources

• No issues found!

标签:cache,dart,version,arch4edu,Android,flutter
From: https://www.cnblogs.com/studyinglover/p/17857343.html

相关文章

  • Flutter的动画开发入门简介
    Flutter动画库中的核心类,插入用于指导动画的值。Animation对象知道动画目前的状态(例如,是否开始,暂停,前进或倒退),但是对屏幕上显示的内容一无所知。AnimationController管理Animation。CurvedAnimation定义进程为非线性曲线。Tween为动画对象插入一个范围值。例如,Tween可......
  • Flutter搭建
    目录下载FlutterSDK配置Flutter环境变量及镜像检查开发环境参考下载FlutterSDKflutter官网下载:https://flutter.io/sdk-archive/#macos若上述链接无法访问,可通过GitHub下载https://github.com/flutter/flutter/releases将下载的fluttersdk解压到一个地方(这里解压......
  • Flutter 修改 APP 名称
    flutterpubspec.yamldependencies:flutter_app_name:^0.1.0flutter_app_name:name:"托尼蛋儿"webH5lib/routes/App.dartimport'package:flutter/cupertino.dart';import'package:flutter/material.dart';import'pac......
  • 17、Flutter StatelessWidget 、 StatefulWidget
    在Flutter中自定义组件其实就是一个类,这个类需要继承StatelessWidget/StatefulWidget。StatelessWidget是无状态组件,状态不可变的widgetStatefulWidget是有状态组件,持有的状态可能在widget生命周期改变。通俗的讲:如果我们想改变页面中的数据的话这个时候就需要用到StatefulWidg......
  • localsend 基于flutter 开发的airdrop 可选工具
    localsend是基于flutter开发的airdrop可选工具,同时localsend也开发了一些自己的协议说明对于希望基于localsend学习flutter跨平台开发的localsend还是值得参考学习的参考资料https://github.com/localsend/localsendhttps://localsend.org/https://github.com/localsend/pro......
  • 入门 Dart 编程:为 Flutter 开发应用打下基础 审核中
    前言:Dart是一门现代化的、多用途的编程语言,最为广泛应用于移动应用开发中的Flutter框架。本篇博客旨在为初学者提供Dart编程的基础概念,为进一步探索Flutter开发打下坚实基础。DartPad演示......
  • flutter获取网络连接状态
    通过使用插件connectivity可以获取到当前设备是否联网,以及当前的网络类型是WIFI还是移动 然后将最新版本添加到Flutter项目配置文件中 获取网络类型//获取网络类型String_netType;voidisConnectedType()async{//获取网络连接类型varconnectivi......
  • 16、Flutter Wrap组件 实现流布局
    Wrap可以实现流布局,单行的Wrap跟Row表现几乎一致,单列的Wrap则跟Column表现几乎一致。但Row与Column都是单行单列的,Wrap则突破了这个限制,mainAxis上空间不足时,则向crossAxis上去扩展显示。 Wrap组件的使用//自定义按钮组件classMyAppextendsStatelessWidget{String......
  • 15、Flutter 按钮组件
    按钮组件的属性ButtonStylee里面的常用的参数 ElevatedButtonElevatedButton即"凸起"按钮,它默认带有阴影和灰色背景。按下后,阴影会变大classMyAppextendsStatelessWidget{constMyApp({super.key});@overrideWidgetbuild(BuildContextcontext){......
  • 手机直播源码,Flutter 中的弹簧按钮效果
    手机直播源码,Flutter中的弹簧按钮效果import'package:flutter/material.dart'; classScaleAnimationextendsStatefulWidget   {  finalWidgetchild;  finalFunction()?onTap;  ScaleAnimation({requiredthis.child,requiredthis.onTap,Key?key}):supe......