是否有可能对调试不同的清单文件,并释放我的APK版本Android Studio中?
Is it possible to have different manifest files for the debug and release versions of my APK in Android Studio?
通常情况下,我不都需要这样一个这样的事情,但在调试模式下,我的应用程序在不同的用户ID和进程中运行,这在清单中定义。我已经附上了什么我调试表现有差异:
Normally I don't have need for such a such a thing but in debug mode, my applications run in a different user id and process and this is defined in the manifest. I've attached a diff of what my debug manifest has:
--- 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" >
我失去了我的脑海里积攒与调试清单文件和建设,如果两个单独的清单是可能的,这将是巨大之前弹出它。
I'm losing my mind with stashing the debug manifest file and popping it before building and if two separate manifests were possible, that would be great.
推荐答案
创建src下调试的文件夹/并把它放在那里:的 https://github.com/androidfu/Now-Playing/tree/master/app/src
Create a "debug" folder under src/ and put it in there: https://github.com/androidfu/Now-Playing/tree/master/app/src
我的释放表现在src /主/,但我pretty相信,如果你需要两个完全独立的清单文件,你可以使用的src /发行/和src /调试/.
My "release" manifest is in src/main/, but I'm pretty sure if you needed two wholly separate manifest files you could use src/release/ and src/debug/.
相关推荐
最新文章