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

下载了1.0.4 版本导入到as中编译出错 #1

Closed
wangjianxiang opened this issue Jul 13, 2022 · 11 comments
Closed

下载了1.0.4 版本导入到as中编译出错 #1

wangjianxiang opened this issue Jul 13, 2022 · 11 comments

Comments

@wangjianxiang
Copy link

image

as版本:Android Studio Chipmunk | 2021.2.1 Patch 1

gradle版本: gradle-7.4.2-bin

jdk: 1.8

@wangjianxiang
Copy link
Author

麻烦有空的时候帮忙看下,对hit那块还没怎么研究,希望先把项目运行起来,看下功能

@Lowae
Copy link
Owner

Lowae commented Jul 13, 2022

Gradle Setting 里把JDK换成11的试试,目前项目里都是用的11,8没试过

@wangjianxiang
Copy link
Author

jdk 11 也还是爆同样的错误, 你那边gradle用的什么版本啊

@Lowae
Copy link
Owner

Lowae commented Jul 13, 2022

版本一样的,都是gradle版本: gradle-7.4.2-bin
看下是不是网络原因,或者试下这里的方法...
https://stackoverflow.com/questions/65303346/the-hilt-android-gradle-plugin-is-applied-but-no-com-google-daggerhilt-android

@wangjianxiang
Copy link
Author

可以了 , 感觉应该是网络问题导致hilt的依赖未下载好,编译出错了,谢了哈

@SherlockGougou
Copy link
Contributor

我这边也遇到了这个问题,应该不是网络问题诶,其他依赖都能正常拉取,只有hilt这个提示错误。

@SherlockGougou
Copy link
Contributor

The Hilt Android Gradle plugin is applied but no com.google.dagger:hilt-android dependency was found.

@wangjianxiang
Copy link
Author

我这边也遇到了这个问题,应该不是网络问题诶,其他依赖都能正常拉取,只有hilt这个提示错误。

你看下 依赖是否都下载下来啊

@wangjianxiang wangjianxiang reopened this Jul 13, 2022
@603751448
Copy link

The Hilt Android Gradle plugin is applied but no com.google.dagger:hilt-android dependency was found.
全都是这个问题欸

@nanixiaoseng
Copy link

Deps.kt里面把verCode直接换成=一个数值就可以了

@wangjianxiang
Copy link
Author

Deps.kt里面把verCode直接换成=一个数值就可以了

是的 我也改了 现在是能正常运行起来的

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

5 participants