目录一、用AndroidStudio创建Flutter项目1.1 Web方式运行起来了二、发布项目2.1 编译、发布Web版本2.2 编译、发布Android版本三、真机调试3.1 iPad真机调试常见问题1、Error: Browsing on the local area network for iPad2、IPAD端显示无法验证APP3、在哪里设置签名选团队太重要了4、续订开发者账号一、用AndroidStudio创建Flutter项目创建新的Flutter项目这个页面什么都不需要做直接下一步应该就行这个页面我选择Java因为有一点Java基础1.1 Web方式运行起来了可以运行起来了以Web的方式运行起来的Web方式运行起来了二、发布项目2.1 编译、发布Web版本1、切换到项目根目录/Users/linfawei/Documents/wwwroot-dev/wlxl-backend/app/my_flutter_helloworld 2、执行打包编译目录 my_flutter_helloworld % flutter build web --release2.2 编译、发布Android版本1切换到项目根目录/Users/linfawei/Documents/wwwroot-dev/wlxl-backend/app/my_flutter_helloworld2前置校验环境flutter doctor先在项目终端执行校验确保安卓编译环境正常重点看Android SDK、JDK、Android License 全部打对勾有缺失先补齐许可flutter doctor --android-licenses--1.清理旧构建缓存必做避免残留 flutter clean --2.构建 debug 调试包 flutter build apk --debug三、真机调试3.1 iPad真机调试真机调试需要重新插拔这里需要输入的是你Mac操作系统的密码不要输错了然后选择始终允许要不然很烦的总弹出这个窗口权限给足要什么给什么常见问题1、Error: Browsing on the local area network for iPadError: Browsing on the local area network for iPad. Ensure the device is unlocked andattached with a cable or associated with the same local area network as this Mac.The device must be opted into Developer Mode to connect wirelessly. (code -27)! Error: Browsing on the local area network for iPhone. Ensure the device is unlockedand attached with a cable or associated with the same local area network as this Mac.The device must be opted into Developer Mode to connect wirelessly. (code -27)连上ipad错误少了一个2、IPAD端显示无法验证APP在IOS系统通用》VPN与设备管理》中手动信任xcode中可以手动新增证书##查看连接的设备 xcrun devicectl list devices3、在哪里设置签名选团队太重要了4、续订开发者账号4.1 续订开发者账号需要在appStoe中进行appStore登录付款的AppleID可以和开发者账号不是同一个账号。
Flutter实践第一课-Hello World!
目录一、用AndroidStudio创建Flutter项目1.1 Web方式运行起来了二、发布项目2.1 编译、发布Web版本2.2 编译、发布Android版本三、真机调试3.1 iPad真机调试常见问题1、Error: Browsing on the local area network for iPad2、IPAD端显示无法验证APP3、在哪里设置签名选团队太重要了4、续订开发者账号一、用AndroidStudio创建Flutter项目创建新的Flutter项目这个页面什么都不需要做直接下一步应该就行这个页面我选择Java因为有一点Java基础1.1 Web方式运行起来了可以运行起来了以Web的方式运行起来的Web方式运行起来了二、发布项目2.1 编译、发布Web版本1、切换到项目根目录/Users/linfawei/Documents/wwwroot-dev/wlxl-backend/app/my_flutter_helloworld 2、执行打包编译目录 my_flutter_helloworld % flutter build web --release2.2 编译、发布Android版本1切换到项目根目录/Users/linfawei/Documents/wwwroot-dev/wlxl-backend/app/my_flutter_helloworld2前置校验环境flutter doctor先在项目终端执行校验确保安卓编译环境正常重点看Android SDK、JDK、Android License 全部打对勾有缺失先补齐许可flutter doctor --android-licenses--1.清理旧构建缓存必做避免残留 flutter clean --2.构建 debug 调试包 flutter build apk --debug三、真机调试3.1 iPad真机调试真机调试需要重新插拔这里需要输入的是你Mac操作系统的密码不要输错了然后选择始终允许要不然很烦的总弹出这个窗口权限给足要什么给什么常见问题1、Error: Browsing on the local area network for iPadError: Browsing on the local area network for iPad. Ensure the device is unlocked andattached with a cable or associated with the same local area network as this Mac.The device must be opted into Developer Mode to connect wirelessly. (code -27)! Error: Browsing on the local area network for iPhone. Ensure the device is unlockedand attached with a cable or associated with the same local area network as this Mac.The device must be opted into Developer Mode to connect wirelessly. (code -27)连上ipad错误少了一个2、IPAD端显示无法验证APP在IOS系统通用》VPN与设备管理》中手动信任xcode中可以手动新增证书##查看连接的设备 xcrun devicectl list devices3、在哪里设置签名选团队太重要了4、续订开发者账号4.1 续订开发者账号需要在appStoe中进行appStore登录付款的AppleID可以和开发者账号不是同一个账号。