Skip to content

项目运行环境配置 #13

Open
Open
@CarGuo

Description

@CarGuo
Owner

目前

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

CarGuo

CarGuo commented on Aug 7, 2018

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

CarGuo commented on Aug 22, 2018

@CarGuo
Author
Repository owner deleted a comment from xuesongcc on Aug 24, 2018
Repository owner deleted a comment from Captain-Justin on Aug 24, 2018
CarGuo

CarGuo commented on Aug 24, 2018

@CarGuo
OwnerAuthor
Repository owner deleted a comment from xuesongcc on Aug 24, 2018
Repository owner deleted a comment from xuesongcc on Aug 24, 2018
chenxihub

chenxihub commented on Sep 7, 2018

@chenxihub

接口Http status error [422]

CarGuo

CarGuo commented on Sep 7, 2018

@CarGuo
OwnerAuthor

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

chenxihub

chenxihub commented on Sep 8, 2018

@chenxihub

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

james-bltg

james-bltg commented on Oct 4, 2018

@james-bltg

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

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

CarGuo

CarGuo commented on Oct 24, 2018

@CarGuo
OwnerAuthor

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

2 remaining items

q13945951476

q13945951476 commented on May 10, 2019

@q13945951476

大佬帮忙看下呗,什么原因

Error output from CocoaPods:

[!] The version of CocoaPods used to generate the lockfile (1.5.3) is higher than the version of the current executable (1.5.0). Incompatibility issues may arise.

[!] Automatically assigning platform `ios` with version `8.0` on target `Runner` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.

Error running pod install
Error launching application on iPhone XR.

q13945951476

q13945951476 commented on May 10, 2019

@q13945951476

Resolving dependencies of Podfile
[!] CocoaPods could not find compatible versions for pod "lottie-ios":
In snapshot (Podfile.lock):
lottie-ios (= 2.5.2)

  In Podfile:
    flutter_lottie (from `.symlinks/plugins/flutter_lottie/ios`) was resolved to 0.0.1, which depends on
      lottie-ios

It seems like you've changed the constraints of dependency `lottie-ios` inside your development pod `flutter_lottie`.
You should run `pod update lottie-ios` to apply changes you've made.

wenti1

回复:该问题删除 IOS 的 Podfile.lock 文件可解决,如果没能解决尝试升级 CocoaPods

CarGuo

CarGuo commented on May 10, 2019

@CarGuo
OwnerAuthor

@q13945951476 首先确定你flutter packages get 成功了,本地都已经有所有包了,然后再执行,如果还有问题升级下你本地的 pod 命令版本,我刚刚试了clone一个新的执行没有问题

CarGuo

CarGuo commented on May 29, 2019

@CarGuo
OwnerAuthor

#419

flutter packages get 提示 git 失败原因:
比如

win 是在 C:\Users\xxxxx\AppData\Roaming\Pub\Cache 路径下有 git 目录,如果存在某次 package get 失败之后,git 下目录会存在,然后出现这个异常。 可以删除 git 目录有重新 flutter packages get

mac 目录在 ~/.pub-cache

一般我们都是用 pub 上下第三方插件,但是有时候我们为了安全和私密,会选择使用 git 引用,而不引用官方pub上的包。
引用的时候可能会指定 ref 是 commit 的 hash 值或者分支如master,这时候如果在拉包的过程中出现问题,下次再拉包的时候,在 .pub_cache 内的 git 目录下会检测到已经存在目录,但是可能是空目录等等,导致 packages get 的时候异常。

所以你需要清除掉 .pub_cache 内的 git 的异常目录,然后最好清除掉项目目录下的 pubspec.lock ,之后重新 flutter packages get

Repository owner deleted a comment from zdllyzs on May 29, 2019
CarGuo

CarGuo commented on May 29, 2019

@CarGuo
OwnerAuthor
pinned this issue on May 30, 2019

113 remaining items

Loading
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

        Participants

        @veryitman@q13945951476@ufolux@longdw@kiss718867

        Issue actions

          项目运行环境配置 · Issue #13 · CarGuo/gsy_github_app_flutter