Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13639] Android: Packaging - Unable to install 'facebook module included titanium project' on device after packaging.

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionCannot Reproduce
Resolution Date2013-05-23T09:26:33.000+0000
Affected Version/sRelease 3.1.1
Fix Version/sn/a
ComponentsAndroid
Labelsqe-3.1.1
ReporterAnshu Mittal
AssigneeIngo Muschenetz
Created2013-04-22T11:39:19.000+0000
Updated2014-06-19T12:44:32.000+0000

Description

Unable to install 'facebook module included titanium project' on device after packaging. This is not regression since the issue occurs on 3.1.0 GA as well. Steps to reproduce: 1. Create a titanium project. 2. Include facebook module into it. 3. Package the app for android app store. 4. Connect device to machine. 5. From command line, go to appropriate folder and type "adb install appname.apk". Expected: App should be installed to the device. Actual: An error is thrown: Failure [INSTALL_FAILED_ALREADY_EXISTS] and the app does not install onto the device.

Comments

  1. Olga Romero 2013-05-21

    I cannot reproduce this issue if I follow the steps. However, dragging of the .apk file to the terminal after "adb install" will reproduce the issue. The reason is the one space character in the end of the command. Test steps: 1. Following the test steps *typing* adb install timob-13639.apk 3277 KB/s (6612994 bytes in 1.970s) pkg: /data/local/tmp/timob-13639.apk Success 2. Dragging of the file after (adb install) .......$ adb install /Users/oromero/Desktop/timob-13639.apk(space is here) 2915 KB/s (6612994 bytes in 2.215s) pkg: /data/local/tmp/timob-13639.a......$ Failure [INSTALL_FAILED_ALREADY_EXISTS] Note: deleting this space results in successful installation.
  2. Allen Yeung 2013-05-23

    I can't reproduce this issue. I packaged KS (which has the facebook module installed) and it was able to install fine. If you do 'adb install KitchenSink.apk' more than once, then you do get the 'INSTALL_FAILED_ALREADY_EXISTS' error. This is expected since you already installed the app. If you run into this, I would just uninstall the app: 'adb uninstall ', and then try reinstalling.
  3. Eric Merriman 2013-06-26

    The native android behavior is to throw this error when you have a packaged app already installed and you try to install it again. To avoid the chance that there is something else going on here, please try to reproduce and if your results match our expectations (if a production app exists with the same app ID, you can't install) we will close. If not we will reopen.
  4. Anshu Mittal 2013-06-27

    Tested with: SDK:3.1.2.v20130624104600 Appcelerator Studio: 3.1.1.201306131423 OS: OSX 10.7.5 Device:HTC desire(4.0.3) works as expected

JSON Source