Skip to content

项目运行环境配置 #13

Open
Open

Description

@CarGuo

目前

export PUB_HOSTED_URL=https://pub.flutter-io.cn
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn

存在问题,详见: flutter/flutter#20809

经测试,目前镜像已经可用(2018-10-18),但是Andoird在编译时需要一些Kotlin的包和第三方包,这里可能存在需要“梯子”的情况,可在项目的android目录下执行 “./gradlew build” 查看包的下载情况

Activity

  1. CarGuo commented on Aug 7, 2018

    @CarGuo
    Author
  2. changed the title [-]代理环境配置,mac[/-] [+]项目运行环境配置[/+] on Aug 7, 2018
  3. CarGuo commented on Aug 22, 2018

    @CarGuo
    Author
  4. Repository owner deleted a comment from xuesongcc on Aug 24, 2018
  5. Repository owner deleted a comment from Captain-Justin on Aug 24, 2018
  6. CarGuo commented on Aug 24, 2018

    @CarGuo
    OwnerAuthor
  7. Repository owner deleted a comment from xuesongcc on Aug 24, 2018
  8. Repository owner deleted a comment from xuesongcc on Aug 24, 2018
  9. CarGuo commented on Aug 27, 2018

    @CarGuo
    OwnerAuthor
  10. mfn-tec commented on Sep 7, 2018

    @mfn-tec

    接口Http status error [422]

  11. CarGuo commented on Sep 7, 2018

    @CarGuo
    OwnerAuthor

    @joexchen 你需要配置正确你github 申请的应用id和sercet

  12. mfn-tec commented on Sep 8, 2018

    @mfn-tec

    配置了的,我能正常登陆GitHub网页端,但是跑起来,就报422

  13. james-bltg commented on Oct 4, 2018

    @james-bltg

    配置了的,我能正常登陆GitHub网页端,但是跑起来,就报422

    我也遇到相同的问题,请问你是否已经解决这个问题??

  14. CarGuo commented on Oct 24, 2018

    @CarGuo
    OwnerAuthor

    目前已知442问题是由于 page 请求超出了 数据的最大page 导致的

  15. manburenshenglu commented on Dec 3, 2018

    @manburenshenglu

    配置了的,我能正常登陆GitHub网页端,但是跑起来,就报422
    此处的CLIENT_ID和CLIENT_SECRET不是GitHub的账号和密码,而是你注册的application的Client ID和Client Secret。在github上申请OAuth App的步骤:进入个人的Github首页,Settings->Applications->Developer applications->Register a new application,然后在下图中输入信息,信息输入完毕后点击"Register application"按钮。如下图所示
    11111111111
    结案!楼主可以关闭该issue了O(∩_∩)O哈哈~

  16. 55 remaining items

  17. liuchao0739 commented on Jan 12, 2023

    @liuchao0739

    image

    请问下这是什么原因?

  18. CarGuo commented on Jan 12, 2023

    @CarGuo
    OwnerAuthor

    @liuchao0739 如图,连接失败,给你的 android gradle 配置代理
    image

  19. kiss718867 commented on Jul 17, 2023

    @kiss718867
  20. CarGuo commented on Jul 17, 2023

    @CarGuo
    Author
  21. kiss718867 commented on Jul 17, 2023

    @kiss718867
  22. CarGuo commented on Jul 17, 2023

    @CarGuo
    Author
  23. kiss718867 commented on Jul 18, 2023

    @kiss718867
  24. wolfuture commented on Sep 4, 2024

    @wolfuture

    请求url:https://api.github.com/authorizations POST
    请求异常: DioException [bad response]: This exception was thrown because the response has a status code of 404

    这个怎么解决

  25. CarGuo commented on Sep 5, 2024

    @CarGuo
    OwnerAuthor

    https://api.github.com/authorizations
    @wolfuture

    一般是 requestParams 不对,例如 CLIENT_ID 和 CLIENT_SECRET 并且 Authorization callback URL 一栏必须填入 gsygithubapp://authed

  26. xingxdxxd commented on Dec 27, 2024

    @xingxdxxd

    Pub get提示找不到flare_flutter,这个怎么解决啊
    log:Because gsy_github_app_flutter depends on flare_flutter from git which doesn't exist (Could not find git ref 'd9c4ca55cbea3f283491679847ff1e9b4bc74192'.), version solving failed.
    Failed to update packages.

  27. CarGuo commented on Dec 29, 2024

    @CarGuo
    OwnerAuthor

    image

  28. jones655 commented on Feb 23, 2025

    @jones655

    [麻烦看下,代码报错/C:/Users/12473/AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/dio_web_adapter-2.0.0/lib/src/dio_impl.dart:29:5: Error: Type 'FileMode' not found.
    FileMode? fileAccessMode, // 添加缺少的参数
    ^^^^^^^^
    lib/widget/gsy_tabs.dart:141:49: Error: A value of type 'TabBarThemeData' can't be assigned to a variable of type 'TabBarTheme'.

    • 'TabBarThemeData' is from 'package:flutter/src/material/tab_bar_theme.dart'
      ('/E:/Program%20Files/Android/flutter_windows_3.27.1-stable/flutter/packages/flutter/lib/src/material/tab_bar_theme.dart').
    • 'TabBarTheme' is from 'package:flutter/src/material/tab_bar_theme.dart'
      ('/E:/Program%20Files/Android/flutter_windows_3.27.1-stable/flutter/packages/flutter/lib/src/material/tab_bar_theme.dart').
      final TabBarTheme tabBarTheme = TabBarTheme.of(context);
      ^
      lib/widget/gsy_tabs.dart:739:49: Error: A value of type 'TabBarThemeData' can't be assigned to a variable of type 'TabBarTheme'.
    • 'TabBarThemeData' is from 'package:flutter/src/material/tab_bar_theme.dart'
      ('/E:/Program%20Files/Android/flutter_windows_3.27.1-stable/flutter/packages/flutter/lib/src/material/tab_bar_theme.dart').
    • 'TabBarTheme' is from 'package:flutter/src/material/tab_bar_theme.dart'
      ('/E:/Program%20Files/Android/flutter_windows_3.27.1-stable/flutter/packages/flutter/lib/src/material/tab_bar_theme.dart').
      final TabBarTheme tabBarTheme = TabBarTheme.of(context);
      ^
      lib/widget/gsy_tabs.dart:981:49: Error: A value of type 'TabBarThemeData' can't be assigned to a variable of type 'TabBarTheme'.
    • 'TabBarThemeData' is from 'package:flutter/src/material/tab_bar_theme.dart'
      ('/E:/Program%20Files/Android/flutter_windows_3.27.1-stable/flutter/packages/flutter/lib/src/material/tab_bar_theme.dart').
    • 'TabBarTheme' is from 'package:flutter/src/material/tab_bar_theme.dart'
      ('/E:/Program%20Files/Android/flutter_windows_3.27.1-stable/flutter/packages/flutter/lib/src/material/tab_bar_theme.dart').
      final TabBarTheme tabBarTheme = TabBarTheme.of(context);
      ^
      /C:/Users/12473/AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/flutter_slidable-3.1.1/lib/src/notifications_old.dart:88:23: Error: The method
      'hashValues' isn't defined for the class 'SlidableRatioNotification'.
    • 'SlidableRatioNotification' is from 'package:flutter_slidable/src/notifications_old.dart'
      ('/C:/Users/12473/AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/flutter_slidable-3.1.1/lib/src/notifications_old.dart').
      Try correcting the name to the name of an existing method, or defining a method named 'hashValues'.
      int get hashCode => hashValues(tag, ratio);
      ^^^^^^^^^^
      /C:/Users/12473/AppData/Local/Pub/Cache/git/Flare-Flutter-ab41281006402485ff7326d0c58134f451a0de3a/flare_flutter/lib/provider/asset_flare.dart:25:23:
      Error: The method 'hashValues' isn't defined for the class 'AssetFlare'.
    • 'AssetFlare' is from 'package:flare_flutter/provider/asset_flare.dart'
      ('/C:/Users/12473/AppData/Local/Pub/Cache/git/Flare-Flutter-ab41281006402485ff7326d0c58134f451a0de3a/flare_flutter/lib/provider/asset_flare.dart').
      Try correcting the name to the name of an existing method, or defining a method named 'hashValues'.
      int get hashCode => hashValues(bundle, name);
      ^^^^^^^^^^
      /C:/Users/12473/AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/dio_web_adapter-2.0.0/lib/src/dio_impl.dart:29:5: Error: 'FileMode' isn't a type.
      FileMode? fileAccessMode, // 添加缺少的参数
      ^^^^^^^^
      Unhandled exception:
      Unsupported operation: Unsupported invalid type InvalidType() (InvalidType). Encountered while compiling
      file:///C:/Users/12473/AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/dio_web_adapter-2.0.0/lib/src/dio_impl.dart, which contains the type:
      FunctionType(Future<Response> Function(String, dynamic, {cancelToken: CancelToken?, data: Object?, deleteOnError: bool, fileAccessMode:
      , lengthHeader: String, onReceiveProgress: void Function(int, int)?, onSendProgress: void Function(int, int)?, options: Options?,
      queryParameters: Map<String, dynamic>?})).
      #0 ProgramCompiler._typeCompilationError (package:dev_compiler/src/kernel/compiler.dart:3470)
      Create LICENSE #1 ProgramCompiler._emitType (package:dev_compiler/src/kernel/compiler.dart:3438)
      文件缺失 #2 ProgramCompiler._emitClassSignature (package:dev_compiler/src/kernel/compiler.dart:1713)
      能谈下你使用flutter、rn、weex的心得吗 #3 ProgramCompiler._emitClassDeclaration (package:dev_compiler/src/kernel/compiler.dart:1119)
      问题反馈 #4 ProgramCompiler._emitClass (package:dev_compiler/src/kernel/compiler.dart:1001)
      请教~ #5 List.forEach (dart:core-patch/growable_array.dart:421)
      Flutter对图表的支持怎么样? #6 ProgramCompiler._emitLibrary (package:dev_compiler/src/kernel/compiler.dart:940)
      问题反馈 #7 List.forEach (dart:core-patch/growable_array.dart:421)
      启动页的分辨率问题 #8 ProgramCompiler.emitModule (package:dev_compiler/src/kernel/compiler.dart:629)
      执行Packages Get 报错 #9 IncrementalJavaScriptBundler.compile (package:frontend_server/src/javascript_bundle.dart:246)
      问题反馈 #10 FrontendCompiler.writeJavaScriptBundle (package:frontend_server/frontend_server.dart:877)
    #11 FrontendCompiler.compile (package:frontend_server/frontend_server.dart:693) #12 listenAndCompile. (package:frontend_server/frontend_server.dart:1401) the Dart compiler exited unexpectedly.
  29. CarGuo commented on Feb 23, 2025

    @CarGuo
    OwnerAuthor

    @jones655 请确定本地 flutter sdk 为 3.29

  30. 17863966841 commented on Apr 17, 2025

    @17863966841

    去安全登陆的页面404呀

  31. CarGuo commented on Apr 17, 2025

    @CarGuo
    OwnerAuthor

    @17863966841 如上视频所示,你的怎么 404 ?

    4f8cbb74ff2995e5679d61bd3051248c.mp4
    571562be0e2403894c5494bbd7c2e5d2.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions