机器人工作室1.0和错误"库项目不能设置的applicationID"机器人、错误、工作室、项目

2023-09-03 20:41:23 作者:稳重熟男

更新的Andr​​oid工作室到1.0后,我看到这样的错误:

After updating Android Studio to 1.0, I see this error:

错误:库项目不能设置的applicationID。的applicationID设置的   在默认配置com.super.app。的

我更新的插件摇篮的建议,但我不知道如何解决这个问题。

I updated the Gradle plugin as suggested but I did not understand how to fix this.

推荐答案

在此基础上的信息的:

的applicationID在库项目

ApplicationId in Library Projects

您不能使用的applicationID自定义库项目的包。包名称已被固定在库项目(并在清单中指定的packageName)。该摇篮插件并没有强制执行这个限制更早。

You cannot use applicationId to customize the package of a library project. The package name has to be fixed in library projects (and specified as packageName in the manifest). The Gradle plugin did not enforce this restriction earlier.

从库的 build.gradle 文件中删除的applicationID变量应该可以解决这个问题。

Removing applicationId variable from the library's build.gradle file should resolve the issue.

 
精彩推荐
图片推荐