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

【TODO】EnvironmentSwitcher 2.0 #16

Open
CodeXiaoMai opened this issue May 15, 2019 · 8 comments
Open

【TODO】EnvironmentSwitcher 2.0 #16

CodeXiaoMai opened this issue May 15, 2019 · 8 comments
Labels
enhancement New feature or request

Comments

@CodeXiaoMai
Copy link
Owner

新增

修改

@CodeXiaoMai CodeXiaoMai added the enhancement New feature or request label May 15, 2019
@CodeXiaoMai
Copy link
Owner Author

@liuxujian 无法生成 EnvironmentSwitcher?你确定你的姿势没有问题吗?😄目前没有其他人反馈有这个问题。

@chyc20210823
Copy link

@liuxujian 无法生成 EnvironmentSwitcher?你确定你的姿势没有问题吗?😄目前没有其他人反馈有这个问题。

我也遇到了无法生成EnvironmentSwitcher ,
gradle升级到了6.7.1
gradle插件版本升级到4.2.0(com.android.tools.build:gradle:4.2.0)

@chyc20210823
Copy link

我也遇到了无法生成EnvironmentSwitcher ,
gradle升级到了6.7.1
gradle插件版本升级到4.2.0(com.android.tools.build:gradle:4.2.0)
用的demo也是报错,找不到EnvironmentSwitcher

@CodeXiaoMai
Copy link
Owner Author

我也遇到了无法生成EnvironmentSwitcher , gradle升级到了6.7.1 gradle插件版本升级到4.2.0(com.android.tools.build:gradle:4.2.0) 用的demo也是报错,找不到EnvironmentSwitcher

@chyc20210823 问题原因已经找到了,是 com.google.auto.service 不兼容新版本的 gradle 导致的,升级到 1.0.1 版本就可以了。你可以先自己打个包,现在 jcenter 不能上传了,我还没上传到 maven。

implementation 'com.google.auto.service:auto-service-annotations:1.0.1'
compileOnly 'com.google.auto.service:auto-service:1.0.1'

@CodeXiaoMai
Copy link
Owner Author

@chyc20210823 请使用最新版本:

debugAnnotationProcessor "io.github.codexiaomai.environmentswitcher:compiler:1.6.0"
releaseAnnotationProcessor "io.github.codexiaomai.environmentswitcher:compiler-release:1.6.0"
implementation "io.github.codexiaomai.environmentswitcher:environmentswitcher:1.6.0"

@chyc20210823
Copy link

@chyc20210823 请使用最新版本:

debugAnnotationProcessor "io.github.codexiaomai.environmentswitcher:compiler:1.6.0"
releaseAnnotationProcessor "io.github.codexiaomai.environmentswitcher:compiler-release:1.6.0"
implementation "io.github.codexiaomai.environmentswitcher:environmentswitcher:1.6.0"

好的,谢谢

@chyc20210823
Copy link

按照新的1.6.0配置之后,还是无法引用EnvironmentSwitcher这个类文件,找不到

@CodeXiaoMai
Copy link
Owner Author

按照新的1.6.0配置之后,还是无法引用EnvironmentSwitcher这个类文件,找不到

你看下 Demo 能生成吗?Demo 已经升级到跟你一样的配置。

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

No branches or pull requests

3 participants
@chyc20210823 @CodeXiaoMai and others