How can I have different manifest files for the release and debug versions?

后端 未结 3 1845
隐瞒了意图╮
隐瞒了意图╮ 2021-01-11 11:08

Is it possible to have different manifest files for the debug and release versions of my APK in Android Studio?

Normally I don\'t have need for such a such a thing b

3条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-11 11:54

    Yes, it is possible. Use this paths:

    Debug Manifest: ../src/debug/AndroidManifest.xml

    Release Manifest: ../src/release/AndroidManifest.xml


    Show Release Manifest on Android Studio:

    1. Open Build Variants Window
    2. Change from debug to release
    3. Will be visible on Project -> Android -> manifests

提交回复
热议问题