在 android 中执行 gradle 时收到以下警告:
Configuration 'compile' in project ':app' is deprecated.
但我的所有依赖项都通过实现配置包含在内。 (还有模块) gradle 中是否存在任何“不可见”的依赖项?
这是我的主要构建 gradle 文件:https://pastebin.com/ZJe7zrwn
最佳答案
我今天在编译我的代码时发现了这个可行的解决方案。 (当一切都是 implementation
而你的 build.gradle
中没有任何东西是 compile
)
错误:
1. Configuration 'compile' in project ':app' is deprecated
2. registerResGeneratingTask is deprecated, use registerGeneratedFolders (FileCollection)
解决方案:
我需要更新我的项目:build.gradle
来自
classpath 'com.google.gms:google-services:3.1.0'
到
classpath 'com.google.gms:google-services:3.2.0'
关于android - 不推荐使用配置 'compile',但所有配置都是 'implementation',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47300679/