pet*_*ete 7 java android gradle kotlin android-studio
它说我应该写:
plugins {
id "com.gradle.enterprise" version "3.5"
}
gradleEnterprise {
server = "https://gradle-enterprise.mycompany.com"
}
Run Code Online (Sandbox Code Playgroud)
在settings.gradle文件中根据:https : //docs.gradle.com/enterprise/gradle-plugin/
但是后来我收到一条错误消息:
2: Only Project build scripts can contain plugins {} blocks
所以我似乎有这个工作。
\n请确保pluginsand 和gradleEnterpriseblock 分别是文件中的第一行和第二行,否则您将收到错误:
settings.gradle:
plugins {\n id \'com.gradle.enterprise\' version \'3.5\'\n}\n\ngradleEnterprise {\n // configuration\n}\n\ninclude \':app\'\nrootProject.name = "My Application"\nRun Code Online (Sandbox Code Playgroud)\n我当前的 Gradle 插件版本如下(File\xe2\x86\x92 Project Structure):
\n\n一切都构建得很好。
\nPS:我收到错误:IntelliJ IDEA(或 Android Studio)的 Android 支持插件版本无法打开此项目,请使用 4.1 或更高版本重试。我还必须将我的 Android 工作室更新到最新版本(4.1.1),一切都很顺利。
\n