Flutter error
Flutter error
vscode 的flutter 插件大多是使用bash shell, 开发环境最好使用bash, 不能会有未知问题.
导致vscode中flutter命令一直执行, 不会结束, 或者执行错误.
1. Failed to register bundle identifier. The app identifier “com.example.*” cannot be registered to your development team because it is not available. Change your bundle identifier to aunique string to try again. (in target ‘Runne...
Tools Github 加速
Tools Github 加速
1. 配置hosts
× 注:github服务器地址会变动
https://www.ipaddress.com/ip-lookup 查看github.com和
github.global.ssl.fastly.netip地址
修改hosts文件
windows: “C:\Windows\System32\drivers\etc\hosts”
linux/macOS: “/etc/hosts”
140.82.114.3 github.com
199.232.69.194 github.global.ssl.fastly.net
ipconfig /flushdns 刷新d...
Linux 连接蓝牙设备
Linux 连接蓝牙设备
1. 启动蓝牙服务
1. 查看蓝牙服务是否开启
systemctl status bluetooth
2. 开启蓝牙服务
systemctl start bluetooth
3. 开机启动蓝牙服务
systemctl enable bluetooth
2. 连接蓝牙设备(bluetoothctl)
1. bluetoothctl
2. power on
3. agent on
4. scan on // 查询到自己的设备
5. scan off
6. pair 设备uuid
7. 开启设备配对模式
8. connect 设备uuid
Reference
iOS 签名打包
iOS 签名打包
苹果开发者账号
个人(Individual)
99美元一年, 上架App Store, 100个UUID
公司(Company)
99美元一年, 上架App Store, 100个UUID, 可以管理多个开发者
企业(Enterprise)
299美元一年, 企业内部使用(In house), UUID不限, 管理多个开发者
教育(Educational Institutions)
证书说明
ios应用打包需要Certificate 和provision profile文件.
Certificate - 是用来证明你是谁,用该证书签名的应用, 用来证明这个应用是你的
...
Build maven 导入maven项目
Build maven 导入maven项目
安装Svn插件
eclipse market在线安装 eclipse -> Help -> Eclipse Marketplace (搜索subclipse)
Install new Software eclipse -> Help -> Install New Software http://subclipse.tigris.org/update_1.10.x/ (subversion 1.8.x) 版本太旧
Svn Checkout
使用Eclipse svn Checkout 出项目
右键项目 -> Configure -> convert maven 项目
安装lomb...
Oth 电脑配置
Oth 电脑配置
CPU - E5-1620 V3 245
主板 - X99-F8 698
内存 - 8G DDR4 260
显卡 - GTX1660 super 1600
硬盘 - RC500 250G NVME 400
机箱 - 扬天m1 + 2风扇 80
散热 - 100
电源 - 冰山金蝶战斗版 360
3700
mini pci e 是苹果拆机的
pci e 是魔改, 有问题
BCM943224
BCM94360CS
BCM94360CS2 2013/14/15 air A1466 A1465
BCM943602CS 2012/13/14 pro 双天线 三天线
BCM94360CD
BCM94322...
Android Tv
Android TV
source: _posts/android/2020-03-21-android-tv.md/#excerpt
准备工作
适配Android 4.0 系统电视
Android TV 最低支持5.0 系统,但是5.0系统不能覆盖所有设备, 需要支持到4.0系统。
app/build.gradle
把minSdkVersion 改成16
AndroidManifest.xml 设置覆盖库的配置, 解决库的最低版本支持
<uses-sdk tools:overrideLibrary="androidx.tvprovider,androidx.leanback,androidx.leanback.preference"/>
MainAc...
Flutter async
Flutter async
Future
Future有三种关闭, uncompleted, completed with data, completed with error.
Future简化了Event Loop, 使得代码不用涉及到事件循环. Event Loop会自动解析Future, 然后分为多个事件加入队列.
只用负责得到一个Future并且设置将来Future成功后或者失败后处理的代码.
Future() - 接收一个函数, 该函数异步执行, 返回一个与函数返回类型一样的Future
Future.value() - 已经有正确结果了
Future.error() - 已经有错误结果了
Future.delayed() - 运行函数前, 需要等待一定时间
Fut...
435 post articles, 55 pages.