Android Studio 1.0 和错误“库项目无法设置 applicationId" [英] Android Studio 1.0 and error "Library projects cannot set applicationId"

查看:34
本文介绍了Android Studio 1.0 和错误“库项目无法设置 applicationId"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将 Android Studio 更新到 1.0 后,我看到此错误:

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

错误:库项目无法设置 applicationId.applicationId 已设置到默认配置中的com.super.app".

我按照建议更新了 Gradle 插件,但我不明白如何解决这个问题.

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

推荐答案

基于此 信息:

图书馆项目中的ApplicationId

ApplicationId in Library Projects

您不能使用 applicationId 自定义库项目的包.包名称必须在库项目中固定(并在清单中指定为 packageName).Gradle 插件之前没有强制执行此限制.

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.

这篇关于Android Studio 1.0 和错误“库项目无法设置 applicationId"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆