applicationId is set to 'com.super.app' in default config
来源:互联网 发布:linux 查询进程端口号 编辑:程序博客网 时间:2024/06/16 02:40
转载请标明出处:http://blog.csdn.net/xx326664162/article/details/50160097 文章出自:薛瑄的博客
你也可以查看我的其他同类文章,也会让你有一定的收货!
错误信息:
Error: Library projects cannot set applicationId. applicationId is set to ‘com.super.app’ in default config.
代码示例:
defaultConfig { applicationId "com.super.app" <---- remove this line minSdkVersion 15 targetSdkVersion 19 versionCode 1 versionName "1.0" }
不能使用applicationId 去定制包名在lib module中,在lib module中必须是固定的,可以在manifest中指定包名,
有两种解决办法:
一、 去除applicationId “com.super.app” 代码,在defaultConfig 节点中。
defaultConfig { minSdkVersion 15 targetSdkVersion 19 versionCode 1 versionName "1.0" }
并在AndroidManifest.xml中声明包名:
<manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" package="com.super.app">
二、 This is the right solution if you don’t need to rename the package name of your app. To rename it you need to use “flavours”:
android { ... productFlavors { flavor1 { applicationId 'com.super.superapp' } }
转载:http://stackoverflow.com/questions/27374933/android-studio-1-0-and-error-library-projects-cannot-set-applicationid
1 0
- applicationId is set to 'com.super.app' in default config
- android studio 1.0 Library projects cannot set applicationId. applicationId is set to '' in default
- Error: Library projects cannot set applicationId. applicationId is set to '包名' in default
- Error: Library projects cannot set applicationId. applicationId is set to "com.du.android.recyclervi
- Android Studio报错--Error: Library projects cannot set applicationId. applicationId is set to ...
- How to config spring objects in app.config
- 虚拟主机运行ASP错误解决:HTTP/1.1 New Application Failed when allowSessionState is set to false in web.config
- How to set default values for IBInspectable in Objective-C?
- how to set default content type in document set in Sharepoint
- In Debug , which app.config file is using ?
- Android--Error:Library projects cannot enable Jack. Jack is enabled in default config
- How to use App.Config in WPF applications
- [Warning] '--default-character-set' is deprecated and will be removed in a future release
- gradle 安装错误:JAVA_HOME is set to an invalid directory: /usr/lib/jvm/default-java
- gradle 安装错误:JAVA_HOME is set to an invalid directory: /usr/lib/jvm/default-java
- What is SGID and how to set SGID in Linux?
- Change MySQL default character set to UTF-8 in my.cnf?
- app declares a dependency from configuration 'compile' to configuration 'default' which is not decla
- java中"|""||""&"""&&"区别
- 一套完整的ARM交叉编译环境的搭建过程——不使用现成的工具链
- 交易欺诈模型
- Scala:Function(高阶函数式编程)
- The X New Developer’s Guide——前言
- applicationId is set to 'com.super.app' in default config
- android 高斯模糊实现
- 关于vs2013的mysql配置问题说明
- CCBPM中流程回滚的介绍
- ubuntu 开xxnet报 “您的连接不是私密连接” 的解决方法
- leetcode第七题:Reverse Integer
- java怎么用一行代码初始化ArrayList
- 使用命令行对java程序的编译运行和打包
- java 字符串分割处理split及特殊符号