install_failed_invalid_apk

On windows 7:

build: 2011:484
moving my own app, or corona app (apk file) onto my android 2.22 device gives the following error in the system window:

“install_failed_invalid_apk”

when I reinstall corona to the build 2011:450, put in the system variables, no problem.

reinstall back to 2011:484 with, or without system variables set, problem reoccurs.

[import]uid: 31039 topic_id: 9225 reply_id: 309225[/import]

Well as long as your using the current version, don’t downgrade. [import]uid: 29181 topic_id: 9225 reply_id: 33660[/import]

Your Android device isn’t an ARMv6 device is it?

Because the latest builds only support ARMv7 devices…

If you need to build to ARMv6 devices, the last build I believe is 319 that works for it (but not if you target 2.2). [import]uid: 9428 topic_id: 9225 reply_id: 33746[/import]

@Lilarcor

Thank you.

My phone (android 2.22) is based upon the ARM1136EJ-S chipset which I beleive is an ARMv6 device.

Build:2011:450 seems to work fine.

[import]uid: 31039 topic_id: 9225 reply_id: 33753[/import]

Ok cool, didn’t know 450 worked for ARMv6 devices might have to try it myself [import]uid: 9428 topic_id: 9225 reply_id: 33754[/import]

@Carlos

My phone is a robust android device (android 2.22 & armv6, mentiond above; yet the latest build 484 needs armv7.

Am I correct in assuming that all future builds will require armv7?

If so, isn’t Corona ignoring the million of users with armv6 devices. For examample, I acquired my phone 3 months ago and it will be awhile before I replace it. [import]uid: 31039 topic_id: 9225 reply_id: 33759[/import]

Hi! All:
I have same issue. Using HelloWorld.lua (Corona sample code) to build on my MacBook Pro. But install HelloWorld.apk to ViewPad7(android 2.2) and emulator-5554(android 2.2) and get the same error message:

Jemmy-Tsaiteki-MacBook-Pro:Documents Jemmy$ adb -s emulator-5554 install -r HelloWorldLocalized.apk
1283 KB/s (2999552 bytes in 2.282s)
pkg: /data/local/tmp/HelloWorldLocalized.apk
Failure [INSTALL_FAILED_INVALID_APK]

But I build HelloWorld on computer’s iMac. Install to ViewPad7 and emulator-5554 success. I even use keytool to generate keysotre to MacBookPro. It always happens INSTALL_FAILED_INVALID_APK after generating keystore. The same result after I reinstall Corona SDK twice (build 268, 494).

So how to resolve it? thanks!
[import]uid: 51300 topic_id: 9225 reply_id: 33875[/import]

Yep, I am having the same issues with installing an apk to the emulator for testing. [INSTALL_FAILED_INVALID_APK] I believe the issue is as stated that Corona support for ARMv6 is dropped however the Android emulator is emulating ARMv6 or something lower that ARMv7. Which, prevents me from testing any native UI stuff as I do not have an ARMv7 device.

:frowning:
I can go along with dropping 2.1 or earlier support, but dropping the ARMv6 cpu is really preventing me from doing any Android related development.

Stu [import]uid: 8891 topic_id: 9225 reply_id: 34489[/import]

You can still develop on your ARMv6 device, just use the 319 daily build (if you are a subscriber you can get it from the daily builds page).

Of course you won’t see the performance benefits of the latest build, but at least you can still debug/develop and test.

Then your options are to release your game using a 319 build - which would make it available to other people with ARMv6, or to build with the latest build and somehow get access to an ARMv7 device for a ‘final shakedown’ - of course then the game will only be available to those with an ARMv7 device. [import]uid: 9428 topic_id: 9225 reply_id: 34535[/import]

Lilarcor,

Yes, that is true, you can use a previous build, however even if you are targeting an ARMv7, you cannot use the Android emulator to test. You can only use the Corona Simulator or an actual ARMv7 device. If you are using native UI objects, you can only see/test them on the emulator or devices. Unless someone has a workaround (I’ve been looking) this is a weee bit of an issue. [import]uid: 8891 topic_id: 9225 reply_id: 34563[/import]