Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

项目运行环境配置 #13

Open
CarGuo opened this issue Aug 7, 2018 · 64 comments
Open

项目运行环境配置 #13

CarGuo opened this issue Aug 7, 2018 · 64 comments

Comments

@CarGuo
Copy link
Owner

CarGuo commented Aug 7, 2018

目前

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” 查看包的下载情况

@CarGuo

This comment has been minimized.

@CarGuo CarGuo changed the title 代理环境配置,mac 项目运行环境配置 Aug 7, 2018
@CarGuo

This comment has been minimized.

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

CarGuo commented Aug 24, 2018

flutter/flutter#20809

Repository owner deleted a comment from xuesongcc Aug 24, 2018
Repository owner deleted a comment from xuesongcc Aug 24, 2018
@CarGuo
Copy link
Owner Author

CarGuo commented Aug 27, 2018

@chenxihub
Copy link

接口Http status error [422]

@CarGuo
Copy link
Owner Author

CarGuo commented Sep 7, 2018

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

@chenxihub
Copy link

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

@james-bltg
Copy link

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

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

@CarGuo
Copy link
Owner Author

CarGuo commented Oct 24, 2018

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

@manburenshenglu
Copy link

配置了的,我能正常登陆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哈哈~

@ufolux
Copy link
Contributor

ufolux commented Feb 1, 2019

I met a problem that api returned exception 422.

@q13945951476
Copy link

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

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
Copy link

q13945951476 commented May 10, 2019

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
Copy link
Owner Author

CarGuo commented May 10, 2019

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

@CarGuo
Copy link
Owner Author

CarGuo commented May 29, 2019

#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 May 29, 2019
@CarGuo
Copy link
Owner Author

CarGuo commented May 29, 2019

@flutePeak
Copy link

Error: CocoaPods's specs repository is too out-of-date to satisfy dependencies.
To update the CocoaPods specs, run:
pod repo update

Error running pod install
Error launching application on iPhone Xʀ.

按照这个报错,执行了命令,还是报这个

@CarGuo
Copy link
Owner Author

CarGuo commented Jun 24, 2019

@flutePeak CocoaPods 1.6.1 版本

@flutePeak
Copy link

@CarGuo 1.7.2版本太高了吗? 我目前版本是1.7.2

@flutePeak
Copy link

@CarGuo 谢谢大大,我成功跑起来了,,我发现是我笔记本有缓存,之前老版本的一直影响着。。全删干净之后,1.7.2跑起来了

@wangkr wangkr mentioned this issue Jul 4, 2020
@gss3000 gss3000 mentioned this issue Jul 8, 2020
@zaeMyn zaeMyn mentioned this issue Aug 5, 2020
@CarGuo
Copy link
Owner Author

CarGuo commented Aug 18, 2020

1.17 之后,1.20 开始 CocoaPods 需要 1.8.0 以上,如果旧版本项目可能还需要更新或者重新生成 Podfile 文件

@CarGuo
Copy link
Owner Author

CarGuo commented Oct 11, 2020

已兼容 1.22.1 版本运行

@veryitman
Copy link

ReadMe里面的文章打开一片空白。

@CarGuo
Copy link
Owner Author

CarGuo commented Oct 31, 2020

@veryitman 已经更新,原有地址可能因为掘金升级过期了

@veryitman
Copy link

@veryitman 已经更新,原有地址可能因为掘金升级过期了

好的,感谢。

@Studying-HL
Copy link

项目配置成功后 vsCode运行失败 错误信息如下图
截屏2021-05-15 19 42 00
截屏2021-05-15 19 42 13

@JasonOnlyLove
Copy link

Authorization callback URL 一栏必须填入 gsygithubapp://authed ,回调地址没有用,报超时错误 net::ERR_CONNECTION_TIMED_OUT

This was referenced Jun 22, 2022
@MasterSpecter MasterSpecter mentioned this issue Nov 3, 2022
@ShiChenZhi ShiChenZhi mentioned this issue Nov 4, 2022
@CismatTest101 CismatTest101 mentioned this issue Nov 12, 2022
@HBLove HBLove mentioned this issue Nov 22, 2022
This was referenced Dec 3, 2022
@jayVRIY jayVRIY mentioned this issue Dec 8, 2022
@EsqJei EsqJei mentioned this issue Dec 20, 2022
@omiom33 omiom33 mentioned this issue Jan 6, 2023
@liuchao0739
Copy link

image

请问下这是什么原因?

@CarGuo
Copy link
Owner Author

CarGuo commented Jan 12, 2023

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

@kiss718867

This comment was marked as duplicate.

@CarGuo

This comment was marked as resolved.

@kiss718867

This comment was marked as off-topic.

@CarGuo

This comment was marked as off-topic.

@kiss718867

This comment was marked as outdated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests