当前位置:网站首页>The package name of the manifest file in the library project and the app project are not the same
The package name of the manifest file in the library project and the app project are not the same
2022-06-25 23:39:00 【android_ cai_ niao】
There is a package name in the manifest file , as follows :
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" package="a.b.c">
...
</manifest>
This package name is used for IDE The package name of the generated resource file , such as :
a.b.c.R.id
a.b.c.R.string
a.b.c.R.layout
a.b.c.BuildConfig
stay BuildConfig There is a property in :DEBUG, Can be used to judge the current App yes Debug Version or Release edition , If the package name in a library project manifest file and app The package name in the project manifest file is the same , It's in App Runtime , Access to the a.b.c.BuildConfig Is generated in the library project , If the library project is using release Version of , It's in App Accessed in BuildConfig.DEBUG The attribute is ture, And we are App In the project , This attribute is used to determine App yes Debug Version or Release edition , Instead of trying to determine what version the library project is , therefore , To prevent this , To combine library items with App The package name in the manifest file of the project is set to different .
边栏推荐
- Style setting when there is a separator in the qcombobox drop-down menu
- Leetcode (435) - no overlapping interval
- Screen recording to GIF is an easy-to-use gadget, screentogif, which is free and easy to use!
- 解决‘tuple‘ object has no attribute ‘lower‘
- Leaky API interface practical development series (13): gooseneck cloud service php-api two-dimensional array parameter transfer solution
- Typora writing DOS commands
- 第五章 习题(124、678、15、19、22)【微机原理】【习题】
- C. Planar Reflections-CodeCraft-21 and Codeforces Round #711 (Div. 2)
- Konva series tutorial 2: drawing graphics
- 指针强化与提高
猜你喜欢

QComboBox下拉菜单中有分隔符Separator时的样式设置

#23class介绍

Idea auto generator generates constructor get/set methods, etc

The software test interview has been suspended. The interviewer always says that the logical thinking is chaotic. What should I do?

Screen recording to GIF is an easy-to-use gadget, screentogif, which is free and easy to use!

ACM. Hj16 shopping list ●●

23class introduction

Hibernate core api/ configuration file / L1 cache details

【无标题】打开一个项目连接,无法正常显示时,ping一下ip

leetcode_ 136_ A number that appears only once
随机推荐
库项目和App项目中清单文件的包名不要相同
QComboBox下拉菜单中有分隔符Separator时的样式设置
Basic operator
character string
excel如何实现中文单词自动翻译成英文?这个公式教你了
C. Yet Another Card Deck-Educational Codeforces Round 107 (Rated for Div. 2)
Ad20 learning notes I
RepOptimizer: 其实是RepVGG2
Pycharm student's qualification expires, prompting no suitable licenses associated with account solution
自定义QComboBox下拉框,右对齐显示,下拉列表滑动操作
UE4 learning records create a role and control its movement
Uniapp - call payment function: Alipay
1.8 billion pixel Mars panorama Ultra HD released by NASA, very shocking
Windows redis installation and simple use
A. Balance the Bits--Codeforces Round #712 (Div. 1)
转载: QTableWidget详解(样式、右键菜单、表头塌陷、多选等)
Informatics Orsay all in one 1353: expression bracket matching | Luogu p1739 expression bracket matching
Extraction system apk
Typora writing DOS commands
软件测试面试一直挂,面试官总是说逻辑思维混乱,怎么办?