【问题标题】:How to configure my Android app with gradle 4.6 version如何使用 gradle 4.6 版本配置我的 Android 应用程序
【发布时间】:2018-04-08 07:17:45
【问题描述】:

我正在尝试使用 gradle 构建 android 应用程序,因为我没有足够的内存用于 android studio。

https://spring.io/guides/gs/gradle-android/

我按照此链接指南进行操作,但此链接适用于 2.3 版
我下载的版本是 4.6
所以当我尝试添加 android 插件时它不起作用。
我收到以下错误消息:

* Where:
Build file '/home/mz/programming/hello-app/build.gradle' line: 1

* What went wrong:
A problem occurred evaluating root project 'hello-app'.
> Plugin with id 'com.android.application' not found.

到目前为止,我还没有找到 4.6 版的好的指南或文档

【问题讨论】:

    标签: android gradle apk build.gradle gradle-plugin


    【解决方案1】:

    要使用gradle 4.4+,需要android gradle plugin 3.1.0+,请检查您使用的版本是否正确。 Checkout this link for for more information on supported gradle versions by android plugin

    【讨论】:

      猜你喜欢
      • 2014-02-15
      • 2020-10-23
      • 1970-01-01
      • 1970-01-01
      • 2021-01-29
      • 2011-04-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多