如何在同一设备上拥有多个应用程序变体?

时间:2013-01-27 08:01:44

标签: android

我必须维护相对较大的android应用程序。当我进行更改并将其安装在设备上时,它将安装在以前的版本上,使其不可用。同时,我希望安装两个版本(更改和更改),以比较他们的行为。因此,对于已更改的版本克隆了AndroidManifest.xml中的代码库和更改的包属性。但作为副作用,这会在处理布局xml文件时导致错误:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
          xmlns:cyberdyne="http://schemas.android.com/apk/res/com.cyberdyne.mobile"
          android:background="@drawable/back_grad">
     <TableRow android:paddingBottom="15dp">
          <com.cyberdyne.mobile.EmptyByDefaultSpinner

          ^ error: No resource identifier found for attribute 'defaultLabel' in package com.cyberdyne.mobile'

              android:layout_height="@dimen/spinner_height"
              android:layout_width="fill_parent"
              cyberdyne:defaultLabel="@string/labelRDCAccount"
              style="@style/DefaultAppearancePlus"/>
     </TableRow>

我读到xmlns:cyberdyne="http://schemas.android.com/apk/res/com.cyberdyne.mobile"中的包应该与AndroidManifest.xml中的包相同,但我不想更改所有的布局描述(有很多)。

是否可以快速在同一设备上安装多个应用程序变体,而无需在代码库中进行大量更改?

0 个答案:

没有答案
相关问题