예, 두 개의 매니페스트 파일을 만듭니다. Maven을 사용하여 컴파일하십시오 (이 경우에도 Ant를 사용할 수 있다고 가정합니다) 두 개의 프로파일을 생성하십시오. 프로파일에 따라 매니페스트를 설정하십시오.
즉. 당신이 당신의 별도의 진입 점을 설정할 수 있도록
의 pom.xml은
<profile>
<id>Target1</id>
<properties>
<customerManifest>Target1Manifest.xml</customerManifest>
</properties>
</profile>
<profile>
<id>Target2</id>
<properties>
<customerManifest>Target2Manifest.xml</customerManifest>
</properties>
</profile>
<plugin>
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
<artifactId>android-maven-plugin</artifactId>
<version>3.2.0</version>
<configuration>
<androidManifestFile>${customerManifest}</androidManifestFile>
<sdk>
<platform>15</platform>
</sdk>
</plugin>
이 매니페스트을 전환합니다.
이 도움말이 도움이 되길 바랍니다. http://stackoverflow.com/questions/4188250/how-to-create-multiple-android-apps-from-one-code-base & http://developer.android.com/ training/multiple-apks/index.html –
나는 두 가지를 모두 겪어 왔지만, 그들은 내 문제를 해결하지 못했습니다. 감사. – Siddharth