android - 如何修复错误 Gradle DSL 方法未找到:'compile()'?
问题描述
我正在尝试将 google play 计费库与我的 android 应用程序集成,并且当我尝试 (compile 'com.android.billingclient:billing:1.0')
在应用程序模块的build.gradle
文件中添加此依赖项时。我收到以下错误:
ERROR: Gradle DSL method not found: 'compile()'
Possible causes:
The project 'work' may be using a version of the Android Gradle plug-in that does not contain the method (e.g. 'testCompile' was added in 1.1.0).
Upgrade plugin to version 3.4.1 and sync project
The project 'work' may be using a version of Gradle that does not contain the method.
Open Gradle wrapper file
The build file may be missing a Gradle plugin.
Apply Gradle plugin
任何人都可以帮忙吗?
已经谢谢了。
解决方案
推荐阅读
- reactjs - React Hook - 仅在组件卸载时使用效果,而不是在依赖项更新时使用
- r - 在R中合并具有不同行的两个数据框
- ubuntu - Tomcat:/etc/init.d/tomcat 不存在且 monit 不起作用
- text - 是否可以在光标位置下方写文字
- c# - .net core 2.2 会话注销
- python - 需要帮助将字符串翻译成 pyg latin
- jenkins - kubernetes 上的并行 jenkins 代理和 kubernetes 插件
- docker - 在 `docker node ls` 输出中显示 FQDN 而不是主机名
- firebase - VueJs TypeError:表单提交上的“_vm.saveEmployee不是函数”
- trackpy - 当我尝试计算整体漂移速度时,为什么 Trackpy 会给我一个错误?