I am 安卓小煜 who is a developer from China.
公众号 | 掘金 | 知乎 | B 站 | 博客 |
---|---|---|---|---|
安卓小煜👇 | 点我 | 点我 | 点我 | 点我 |
Easy to learn Flutter(Flutter 即学即用,Flutter 速成必备)
Home Page: https://github.com/nesger/FlutterNote
License: Apache License 2.0
检查一下是不是连接了真机。
这边出现的情况是在打开模拟器的时候还连接了真机。
把真机给拔了就可以了。
可能的原因是真机没有点击信任机器。
Error on line 25, column 5 of pubspec.yaml: A dependency may only have one source.
sdk: flutter
^^^^^^^^^^^^^
pub get failed (65)
what I meet the question is directly return Scaffold
return new Scaffold(
appBar: new AppBar(
title: new Text('demo'),
),
body:Text('test')
);
instead of return MaterialApp is solve this question.
return new MaterialApp(
home: new Scaffold(
appBar: new AppBar(
title: new Text('demo'),
),
body:Text('test')
),
);
[!] iOS toolchain - develop for iOS devices (Xcode 10.1)
✗ Verify that all connected devices have been paired with this computer in Xcode.
If all devices have been paired, libimobiledevice and ideviceinstaller may require updating.
To update with Brew, run:
brew update
brew uninstall --ignore-dependencies libimobiledevice
brew uninstall --ignore-dependencies usbmuxd
brew install --HEAD usbmuxd
brew unlink usbmuxd
brew link usbmuxd
brew install --HEAD libimobiledevice
brew install ideviceinstaller
连接 iOS 手机后运行 flutter doctor 提示
⣾Unhandled exception:
Exception: ideviceinfo returned an error:
#0 IMobileDevice.getInfoForDevice (package:flutter_tools/src/ios/mac.dart:141:9)
#1 IOSDevice.getAttachedDevices (package:flutter_tools/src/ios/devices.dart:156:55)
#2 IOSDevices.pollingGetDevices (package:flutter_tools/src/ios/devices.dart:112:57)
#3 PollingDeviceDiscovery.devices (package:flutter_tools/src/device.dart:166:52)
#4 DeviceManager.getAllConnectedDevices (package:flutter_tools/src/device.dart:94:46)
#5 DeviceValidator.validate (package:flutter_tools/src/doctor.dart:687:54)
#6 Doctor.startValidatorTasks (package:flutter_tools/src/doctor.dart:111:52)
#7 Doctor.diagnose (package:flutter_tools/src/doctor.dart:184:41)
#8 _AsyncAwaitCompleter.start (dart:async/runtime/libasync_patch.dart:49:6)
#9 Doctor.diagnose (package:flutter_tools/src/doctor.dart:174:24)
#10 DoctorCommand.runCommand (package:flutter_tools/src/commands/doctor.dart:48:39)
#11 _AsyncAwaitCompleter.start (dart:async/runtime/libasync_patch.dart:49:6)
#12 DoctorCommand.runCommand (package:flutter_tools/src/commands/doctor.dart:34:42)
#13 FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:401:18)
#14 _asyncThenWrapperHelper. (dart:async/runtime/libasync_patch.dart:77:64)
#15 _rootRunUnary (dart:async/zone.dart:1132:38)
#16 _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#17 _FutureListener.handleValue (dart:async/future_impl.dart:129:18)
#18 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:642:45)
#19 Future._propagateToListeners (dart:async/future_impl.dart:671:32)
#20 Future._complete (dart:async/future_impl.dart:476:7)
#21 _SyncCompleter.complete (dart:async/future_impl.dart:51:12)
#22 _AsyncAwaitCompleter.complete. (dart:async/runtime/libasync_patch.dart:33:20)
#23 _rootRun (dart:async/zone.dart:1124:13)
#24 _CustomZone.run (dart:async/zone.dart:1021:19)
#25 _CustomZone.bindCallback. (dart:async/zone.dart:947:23)
#26 _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#27 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#28 _runPendingImmediateCallback (dart:isolate/runtime/libisolate_patch.dart:115:13)
#29 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:172:5)
AppDelegate.swift:8:65: error: 'LaunchOptionsKey' is not a member type of 'UIApplication'
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
电脑新搭建的环境,flutter create创建了一个demo,flutter run的时候出现了VM snapshot must be valid. Check failed: vm. Must be able to initialize the VM.这个问题,小白google了一天都无法解决!!大佬能给个解决思路吗?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.