Build does not install on devide

Hey everyone,

I finished making a simple app (basically a “proof-of-concept” idea for a future app) for android

I was able to make a build for it using Corona’s debug key. From there i proceeded to send it to myself via email where i could access it via my phone.

All this is fine and dandy, however when attempting to install it onto my phone it fails. Using a Galaxy S3 it tells me that the “Application not installed”

Any suggestion as to where I am going wrong?

Have you installed previous version of the app? If yes, then make sure you are using the same keystore as you did before. If this is the first time, make sure you have a valid keystore selected in the “build window” when building your app.

This was the first version.I was using the android keystore debugger that is provided with Corona SDK in order to make my build.

Should I of made my own instead?

This is very likely not related to your keystore, but a bug in your code.  It could be an error in your build.settings.  It could be a filename case sensitivity problem (the device is case sensitive, the simulator is not).  Or you don’t have your device set up to install apps from non-approved stores (developer mode).

The best way to find out what is going on is to get the “adb” tools installed.  See the debugging section of this document:

http://docs.coronalabs.com/guide/distribution/androidBuild/index.html

for instructions to get the tools installed.  Once that’s done you can use the command line (from the Mac terminal, or Window’s cmd tool)  “adb logcat”  to look for errors generated by your app.

After i’ve run “adb logcat”, what should I do?

Does this generate a log whenever i run the emulator or can it run off my .apk? And where does the log get generated or is it a one-time thing that appears off the cmd tool?

Sorry, just ignorant in the ways of the android debug bridge

You have to have your device tethered to a USB port.  You have to have developer mode on.  Then you should get  a huge running list of messages from the apps on the device.  Any “print” statement you put in Corona should show up as well as any generated errors.

Have you installed previous version of the app? If yes, then make sure you are using the same keystore as you did before. If this is the first time, make sure you have a valid keystore selected in the “build window” when building your app.

This was the first version.I was using the android keystore debugger that is provided with Corona SDK in order to make my build.

Should I of made my own instead?

This is very likely not related to your keystore, but a bug in your code.  It could be an error in your build.settings.  It could be a filename case sensitivity problem (the device is case sensitive, the simulator is not).  Or you don’t have your device set up to install apps from non-approved stores (developer mode).

The best way to find out what is going on is to get the “adb” tools installed.  See the debugging section of this document:

http://docs.coronalabs.com/guide/distribution/androidBuild/index.html

for instructions to get the tools installed.  Once that’s done you can use the command line (from the Mac terminal, or Window’s cmd tool)  “adb logcat”  to look for errors generated by your app.

After i’ve run “adb logcat”, what should I do?

Does this generate a log whenever i run the emulator or can it run off my .apk? And where does the log get generated or is it a one-time thing that appears off the cmd tool?

Sorry, just ignorant in the ways of the android debug bridge

You have to have your device tethered to a USB port.  You have to have developer mode on.  Then you should get  a huge running list of messages from the apps on the device.  Any “print” statement you put in Corona should show up as well as any generated errors.

Hi, I am not a newbie, and I am having this same issue when sideloading on a Galaxy S3. Only happens when I use the APK generated from my macbook, not from my windows PC. Both systems are using the same/latest daily build of Corona.

Macbook is running stock Java 6. 

Heh, I guess I am technically a newbie according to my avatar :wink:

Logcat is showing Installation Error Code: -105

Haven’t been able to find any info on that code…

06-14 08:12:43.151: D/KeyguardViewMediator(724): setHidden false

06-14 08:12:43.161: I/Adreno200-EGLSUB(191): <CreateImage:897>: Android Image

06-14 08:12:43.161: I/Adreno200-EGLSUB(191): <GetImageAttributes:1106>: RGBA_8888

06-14 08:12:43.181: D/KeyguardViewMediator(724): setHidden false

06-14 08:12:43.181: E/SMD(187): DCD ON

06-14 08:12:43.181: D/KeyguardViewMediator(724): setHidden false

06-14 08:12:43.191: I/ClipboardServiceEx(724): Send intent for dismiss clipboard dialog inside hideCurrentInputLocked() !

06-14 08:12:43.211: I/Adreno200-EGLSUB(191): <CreateImage:897>: Android Image

06-14 08:12:43.211: I/Adreno200-EGLSUB(191): <GetImageAttributes:1106>: RGBA_8888

06-14 08:12:43.221: D/KeyguardViewMediator(724): setHidden false

06-14 08:12:43.231: E/SpannableStringBuilder(3810): SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length

06-14 08:12:43.231: E/SpannableStringBuilder(3810): SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length

06-14 08:12:43.231: D/KeyguardViewMediator(724): setHidden false

06-14 08:12:43.281: I/Adreno200-EGLSUB(191): <CreateImage:897>: Android Image

06-14 08:12:43.281: I/Adreno200-EGLSUB(191): <GetImageAttributes:1106>: RGBA_8888

06-14 08:12:43.492: D/PowerManagerService(724): releaseDVFSLockLocked : all DVFS_MIN_LIMIT are released 

06-14 08:12:43.492: D/KeyguardViewMediator(724): setHidden false

06-14 08:12:43.492: W/ActivityManager(724): mDVFSLock.release()

06-14 08:12:43.502: D/KeyguardViewMediator(724): setHidden false

06-14 08:12:43.502: D/KeyguardViewMediator(724): setHidden false

06-14 08:12:43.712: I/com.dropbox.android.util.ae(3673): File not modified: /storage/sdcard0/Android/data/com.dropbox.android/files/scratch/daf0dcfe/59bc66e/4e029eba

06-14 08:12:43.752: D/dalvikvm(724): WAIT_FOR_CONCURRENT_GC blocked 0ms

06-14 08:12:43.922: D/dalvikvm(724): GC_EXPLICIT freed 1706K, 23% free 36605K/47175K, paused 7ms+16ms, total 170ms

06-14 08:12:43.922: D/InstallAppProgress(3810): Installation error code: -105

06-14 08:12:43.932: D/AbsListView(724): [unregisterDoubleTapMotionListener]

06-14 08:12:43.932: I/MotionRecognitionManager(724):   .unregisterListener : / listener count = 0->0, listener=android.widget.AbsListView$4@425b7a10

The “SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length” lines are suspect as well - they appear every time I attempt to install.

I tried a factory-reset on my phone but still getting same “Application not installed” error. I will have to try it on another android device later today, but I suspect I will get the same result. 

Hi, I am not a newbie, and I am having this same issue when sideloading on a Galaxy S3. Only happens when I use the APK generated from my macbook, not from my windows PC. Both systems are using the same/latest daily build of Corona.

Macbook is running stock Java 6. 

Heh, I guess I am technically a newbie according to my avatar :wink:

Logcat is showing Installation Error Code: -105

Haven’t been able to find any info on that code…

06-14 08:12:43.151: D/KeyguardViewMediator(724): setHidden false

06-14 08:12:43.161: I/Adreno200-EGLSUB(191): <CreateImage:897>: Android Image

06-14 08:12:43.161: I/Adreno200-EGLSUB(191): <GetImageAttributes:1106>: RGBA_8888

06-14 08:12:43.181: D/KeyguardViewMediator(724): setHidden false

06-14 08:12:43.181: E/SMD(187): DCD ON

06-14 08:12:43.181: D/KeyguardViewMediator(724): setHidden false

06-14 08:12:43.191: I/ClipboardServiceEx(724): Send intent for dismiss clipboard dialog inside hideCurrentInputLocked() !

06-14 08:12:43.211: I/Adreno200-EGLSUB(191): <CreateImage:897>: Android Image

06-14 08:12:43.211: I/Adreno200-EGLSUB(191): <GetImageAttributes:1106>: RGBA_8888

06-14 08:12:43.221: D/KeyguardViewMediator(724): setHidden false

06-14 08:12:43.231: E/SpannableStringBuilder(3810): SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length

06-14 08:12:43.231: E/SpannableStringBuilder(3810): SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length

06-14 08:12:43.231: D/KeyguardViewMediator(724): setHidden false

06-14 08:12:43.281: I/Adreno200-EGLSUB(191): <CreateImage:897>: Android Image

06-14 08:12:43.281: I/Adreno200-EGLSUB(191): <GetImageAttributes:1106>: RGBA_8888

06-14 08:12:43.492: D/PowerManagerService(724): releaseDVFSLockLocked : all DVFS_MIN_LIMIT are released 

06-14 08:12:43.492: D/KeyguardViewMediator(724): setHidden false

06-14 08:12:43.492: W/ActivityManager(724): mDVFSLock.release()

06-14 08:12:43.502: D/KeyguardViewMediator(724): setHidden false

06-14 08:12:43.502: D/KeyguardViewMediator(724): setHidden false

06-14 08:12:43.712: I/com.dropbox.android.util.ae(3673): File not modified: /storage/sdcard0/Android/data/com.dropbox.android/files/scratch/daf0dcfe/59bc66e/4e029eba

06-14 08:12:43.752: D/dalvikvm(724): WAIT_FOR_CONCURRENT_GC blocked 0ms

06-14 08:12:43.922: D/dalvikvm(724): GC_EXPLICIT freed 1706K, 23% free 36605K/47175K, paused 7ms+16ms, total 170ms

06-14 08:12:43.922: D/InstallAppProgress(3810): Installation error code: -105

06-14 08:12:43.932: D/AbsListView(724): [unregisterDoubleTapMotionListener]

06-14 08:12:43.932: I/MotionRecognitionManager(724):   .unregisterListener : / listener count = 0->0, listener=android.widget.AbsListView$4@425b7a10

The “SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length” lines are suspect as well - they appear every time I attempt to install.