Android、Flutter 开发者帮助 APP。包含事件分发、性能分析、Google Jetpack组件、OkHttp、RxJava、Retrofit、Volley、Canvas绘制以及优秀博文代码案例等内容,帮助开发者快速上手!
帮助 Android 开发者,快速上手。
欢迎共建
1、HailouWang 微信 :15911136758
localhost:AndroidGo hailuwang$ flutter --version
Flutter 1.17.1 • channel unknown • unknown source
Framework • revision f7a6a7906b (3 weeks ago) • 2020-05-12 18:39:00 -0700
Engine • revision 6bc433c6b6
Tools • Dart 2.8.2
git clone
之后,需要更改 ./flutter_demo/.android/local.properties
中 环境变量信息sdk.dir=/Users/hailuwang/Library/Android/sdk
flutter.sdk=/Users/hailuwang/tools/flutter
flutter_demo
工程,如果遇到问题,需要先行编译,编译命令:
flutter --no-color packages get
{flutterRoot}/flutter/packages/flutter_tools/gradle/flutter.gradle
buildscript {
repositories {
- google()
- jcenter()
+maven { url 'https://maven.aliyun.com/repository/google' }
+maven { url 'https://maven.aliyun.com/repository/jcenter' }
+maven { url 'http://maven.aliyun.com/nexus/content/groups/public' }
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.0'
@@ -41,7 +42,8 @@ android {
apply plugin: FlutterPlugin
class FlutterPlugin implements Plugin<Project> {
- private static final String MAVEN_REPO = "https://storage.googleapis.com/download.flutter.io";
+ //private static final String MAVEN_REPO = "https://storage.googleapis.com/download.flutter.io";
+ private static final String MAVEN_REPO = "https://storage.flutter-io.cn/download.flutter.io";
// The platforms that can be passed to the `--Ptarget-platform` flag.
private static final String PLATFORM_ARM32 = "android-arm";
Copyright (c) [2020] [wanghailu]
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.