Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

[Android] Can't install multiple apps using this plugin (v1.6.x) #768

Closed
nonplus opened this issue Mar 30, 2016 · 3 comments
Closed

[Android] Can't install multiple apps using this plugin (v1.6.x) #768

nonplus opened this issue Mar 30, 2016 · 3 comments

Comments

@nonplus
Copy link

nonplus commented Mar 30, 2016

When I try to install multiple versions of of the an app (dev, test..., each with different bundle name) the second installation fails with an error.

More details about this problem are in #474. Apparently it was fixed for 1.4.x/1.5.x in 15b7663.

Using v1.6.0, the problem occurs again. It seems to have been broken in #625 48c4a56

@matthijsbierman
Copy link

I think it's related to CB-10014.

Their proposed fix would have to be added to this plugin:

FOR PLUGIN DEVELOPERS

plugin.xml
<framework src="build-extras-PLUGIN_NAME_HERE.gradle" custom="true" type="gradleReference" />

build-extras-PLUGIN_NAME_HERE.gradle
def manifest = new XmlSlurper().parse(file("AndroidManifest.xml")) android.defaultConfig.applicationId [email protected]()

There is also a workaround you can use in your own app, which is simply creating the build-extras.grade file under /platforms/android and putting the same snippet in there:

def manifest = new XmlSlurper().parse(file("AndroidManifest.xml")) android.defaultConfig.applicationId [email protected]()

I can confirm this workaround works.

@macdonst
Copy link
Member

Yup, I had to revert the change. Release 1.6.3 has the fix.

@lock
Copy link

lock bot commented Jun 4, 2018

This thread has been automatically locked.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

3 participants