Recently, upon trying to install the apk of my app on Android devices (so far: Nexus 7, Galaxy S4) I have received a message stating, “App not installed.” I have been installing versions of my app on devices for over a year now, and this is the first time I have encountered this issue. Previous version of my app that I have built before today install just fine, so I suspect something to do with the build process is different. Any help is appreciated.
I have fixed the problem. However, I am not sure why it was causing an issue. The change I made was I switched code from:
[lua]
if system.getInfo(“platformName”) == “Android” then – This code works
[/lua]
to
[lua]
if system.getInfo(“platformName”) ~= “iPhone OS” then – This code does not work
[/lua]
I don’t know why this caused a problem, but it was the only thing that was changed.
You could always print out the value of system.getInfo(“platformName”) and see what it’s really returning on your device.
Rob
I have fixed the problem. However, I am not sure why it was causing an issue. The change I made was I switched code from:
[lua]
if system.getInfo(“platformName”) == “Android” then – This code works
[/lua]
to
[lua]
if system.getInfo(“platformName”) ~= “iPhone OS” then – This code does not work
[/lua]
I don’t know why this caused a problem, but it was the only thing that was changed.
You could always print out the value of system.getInfo(“platformName”) and see what it’s really returning on your device.
Rob