Android Gradle plugin: 依赖配置项已被移除
在 AGP 7.0 Canary 3, 以下配置项 (or dependency scopes) 已被移除:
compile
Depending on use case, this has been replaced byapi
orimplementation
.
Also applies to *Compile variants, for example:debugCompile
.provided
This has been replaced bycompileOnly
.
Also applies to *Provided variants, for example:releaseProvided
.apk
This has been replaced byruntimeOnly
.publish
This has been replaced byruntimeOnly
.
在大多数情况下,AGP 升级助手 将自动将您的项目迁移到新的配置。
一般性 Bug 修复
以下是这次更新中修复的相关 Bug:
C++ Debugger
- Issue #171300775: Display actionable error for missing dependencies: LLDBFrontend exited with code 127
Lint
- Issue #174480831: textOutput(“stderr”) now creating a file
- Issue #174500754: lint is printing its command line and exit code
New Project Wizard
- Issue #174295122: Remove $kotlin_version declaration
版权声明
禁止一切形式的转载-禁止商用-禁止衍生 申请授权