Skip to content

Android、Flutter 开发者帮助 APP。包含事件分发、性能分析、Google Jetpack组件、OkHttp、RxJava、Retrofit、Volley、Canvas绘制以及优秀博文代码案例等内容,帮助开发者快速上手!

License

Notifications You must be signed in to change notification settings

HailouWang/AndroidGo

Repository files navigation

一、背景

帮助 Android 开发者,快速上手。

二、开发者们

欢迎共建

1、HailouWang 微信 :15911136758

三、问题

3.1、升级Flutter 版本。

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

3.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

3.2、已适配androidx,Flutter 环境,需要更新到最新,建议更换Flutter 的更新源,配置如下:

{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";

四、UI

页面1 页面2 页面3

五、开源协议

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.

About

Android、Flutter 开发者帮助 APP。包含事件分发、性能分析、Google Jetpack组件、OkHttp、RxJava、Retrofit、Volley、Canvas绘制以及优秀博文代码案例等内容,帮助开发者快速上手!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published