-
2020.02.16 适配flutter v1.12.13和Androidx,修复Android运行问题
-
2019.12.30 取消extended_text_field
wechat_flutter是flutter版微信,目前已实现即时通讯基本功能,支持安卓和IOS,具体下载体验。
![]() |
![]() |
![]() |
---|---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
下载体验(Android):点击下载 |
IOS的直接拉下项目直接跑即可,
Android dependency 'androidx.core:core' has different version for
the compile (1.0.0) and runtime (1.0.2) classpath. You should
manually set the same version via DependencyResolution
项目最下方的External Libraries
=> Flutter Plugins
=> image_picker-0.6.1+2
=> android
=> build.gradle
然后最下方有androidx.core:core:版本
。
android {
compileSdkVersion 28
defaultConfig {
minSdkVersion 16
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
lintOptions {
disable 'InvalidPackage'
}
dependencies {
implementation 'androidx.core:core:1.0.0'
implementation 'androidx.annotation:annotation:1.0.0'
}
}
然后permission_handler也一样改下。
- 文字消息
- 图片消息
- 语音消息
- 删除会话
- 语言国际化
- 账号注册
- 账号登陆
- 自动登陆
- 会话列表
- 通讯录
- 更改头像
- 显示头像
- 显示昵称
- 更改昵称
- 搜索好友
- 添加好友
- 删除好友
- 视频拍摄
- 视频消息
- 位置消息
- 创建群聊
- 扫一扫
- 设置备注
- 发送表情
- 使用命令(拉取项目):$ git clone https://github.com/fluttercandies/wechat_flutter.git
- 然后命令(获取依赖):$ flutter packages get (IOS执行IOS部分再执行下一步)
- 最后命令(运行):$ flutter run
IOS
- 进入项目IOS目录:$ cd ios/
- 更新Pod(非必须):$ pod update
- 安装Pod:$ pod install
q1deMacBook-Pro:~ q1$ flutter doctor -v
[✓] Flutter (Channel unknown, v1.12.13, on Mac OS X 10.14.5 18F2059, locale
zh-Hans-CN)
• Flutter version 1.12.13 at /Users/q1/flutter
• Framework revision cf37c2cd07 (3 months ago), 2019-11-25 12:04:30 -0800
• Engine revision b6b54fd606
• Dart version 2.7.0
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at /Users/q1/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling
support)
• Platform android-29, build-tools 29.0.2
• ANDROID_HOME = /Users/q1/Library/Android/sdk
• Java binary at: /Applications/Android
Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build
1.8.0_202-release-1483-b49-5587405)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 11.3)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.3, Build version 11C29
• CocoaPods version 1.8.4
[✓] Android Studio (version 3.5)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 42.1.1
• Dart plugin version 191.8593
• Java version OpenJDK Runtime Environment (build
1.8.0_202-release-1483-b49-5587405)
[✓] Connected device (2 available)
• Android SDK built for x86 • emulator-5554 •
android-x86 • Android 10 (API 29) (emulator)
• iPhone 11 Pro Max • 083FB0DB-0531-41FA-8C94-EADF5F884353 • ios
• com.apple.CoreSimulator.SimRuntime.iOS-13-3 (simulator)
• No issues found!
最近工作太繁忙,基本没啥时间更新,然后之前是做其他开源项目,导致这个项目太久没实质性进展,
不好意思哈各位,从现在开始进入维护状态。
- 后期会把项目里所遇到的问题及解决的思路写成博客给大家学习。
- 仿微信录制音频开源库:https://github.com/yxwandroid/flutter_plugin_record
Flutter教程网:www.flutterj.com
Flutter交流QQ群:874592746
关注公众号“Flutter前线
”,各种Flutter项目实战经验技巧,干活知识,Flutter面试题答案,等你来领取。