【发布时间】:2015-03-28 13:23:48
【问题描述】:
我的 APK 在 Android Studio 中的调试版本和发布版本是否可以有不同的清单文件?
通常我不需要这样的东西,但在调试模式下,我的应用程序在不同的用户 ID 和进程中运行,这在清单中定义。我附上了我的调试清单的差异:
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -1,5 +1,6 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.mridang.address"
+ android:sharedUserId="com.mridang.dashclock"
android:versionCode="10"
android:versionName="1.0" >
@@ -14,6 +15,7 @@
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
+ android:process="com.mridang.dashclock"
android:label="@string/application_name"
android:theme="@android:style/Theme.Holo.Light.DarkActionBar" >
我在构建调试清单文件并在构建之前将其弹出而失去理智,如果可以有两个单独的清单,那就太好了。
【问题讨论】:
标签: android android-studio apk android-gradle-plugin