App not installed on HTC nexus one.

I’ve installed the trial coronaSDK-2011-591 version and I try to see in action at HTC nexus one, a sample code. When I build the sample code and try to install it on nexus one I have the message : application not installed.

May you help me? [import]uid: 102210 topic_id: 17978 reply_id: 317978[/import]

Welcome :slight_smile:

Can you tell me what version of Android your HTC Nexus One is running, please?

Peach [import]uid: 52491 topic_id: 17978 reply_id: 68706[/import]

IT’S 2.3.6 Android Version
[import]uid: 102210 topic_id: 17978 reply_id: 68798[/import]

If you are developing on Windows, there is a compatibility issue with JDK 7. Please uninstall JDK 7 and install the “32-bit” version of JDK 6. Rebuild the app and re-install onto your Android device and it should then work fine. [import]uid: 32256 topic_id: 17978 reply_id: 69000[/import]

I have the same Problem on a Mac with OSX 10 and a HTC Wildfire with Android 2.3.
I checked the installed java versions which seem to be SE 6 (32 and 64 bit).

Any hints? [import]uid: 127006 topic_id: 17978 reply_id: 117542[/import]

Check your “PATH” environment variable on your system and see if it is referencing the JDK 7 directory. If it is, then that’s the problem. You can work-around this issue by removing it from the PATH… or by putting the JDK 6 path in front of the JDK 7 path. [import]uid: 32256 topic_id: 17978 reply_id: 117586[/import]

I’m sorry, Joshua but i can’t seem to find this variable. I tried to look it up on the internet but still no luck. Usually I am not a mac user.
Apart from that i typed “java -version” in a terminal and it said:

java version “1.6.0_31”
Java™ SE Runtime Environment (build 1.6.0_31-b04-415-11M3646)
Java HotSpot™ Client VM (build 20.6-b01-415, mixed mode)

so i guess there is no jdk 7 on this computer?
[import]uid: 127006 topic_id: 17978 reply_id: 117691[/import]

Oh wait… you’re on a Mac. I’m sorry, I misread your post. I assumed that you were using Windows.

Which version of OS X are your running? Mountain Lion? We had a bug on Mountain Lion where the Corona Simulator had problems signing apps with the debug keystore that we provided. The newest daily build is supposed to fix that issue. [import]uid: 32256 topic_id: 17978 reply_id: 117783[/import]

OS X is v. 10.7.3
just the usual lion.
[import]uid: 127006 topic_id: 17978 reply_id: 117843[/import]

I need more information in order to help you.

Have you tried signing your app with the debug keystore that the Corona Simulator has provided? That’s an option in the build window. Or is your personal keystore failing on you?

Also, how are you installing the APK onto your Android device?
I know using the Android SDK’s “adb install” command line works really well. If you are installing your APK via other means, then perhaps that is what’s failing on you and I would recommend trying it Google’s way via the command line. But if it’s the Android SDK’s tool that is failing you, then I’ll need you to copy and paste the “exact” error message that you are getting here. Thanks. [import]uid: 32256 topic_id: 17978 reply_id: 117911[/import]

I am using the Corona debug keystore.
To intall the APK file I first transfer it via USB cable to the phone’s SD card then open it with an explorer App. It opens an installation window but the progress bar remains empty. After a while the installation just quits without further information.

I will try to install it via ADB but I don’t have the phone with me right now because it belongs to a collegue.
Will let you know if it works.

Thanks for the support so far!
[import]uid: 127006 topic_id: 17978 reply_id: 118033[/import]

I’m sure it’s just an installation issue. It’s not supposed to be this hard. :slight_smile:

I typically install apps via the “adb” command line tool that is bundled with the Android SDK. You can find it under the Android SDK’s “platform-tools” directory. Installation is done over USB. There is one setting that you are going to need to enable on your device in order to allow apps that did not come from an app store to be allowed on your device. This setting goes by different names depending on the OS version that you are running. Please see below…

On Android 4.0 and above, you’ll need to enable “Developer options\USB debugging”.
On Android 2.x - 3.x, you’ll need to enable “Applications\Unknown Sources”.

Checking the above option will enable the “adb” command line tool to communicate with the device, allow you to install an app, and allow you to view a real-time log via “adb logcat”. Good stuff.

Anyways, I hope this helps! [import]uid: 32256 topic_id: 17978 reply_id: 118068[/import]

Ok, now i tried installing it via “adb” but it gave me “Failure [INSTALL_FAILED_INVALID_APK]”.
So i read somewhere that an older corona version might work.
Downloaded CoronaSDK 2011.277.
With this, the installation via “adb” worked but unfortunately, when I try to start the application it says:

“the application myapp (process bachelor.roman.reiff.fh.koeln) has stopped unexpectedly. Please try again.”
Trying again didn’t work. :slight_smile:

I will now try to maybe use a version, that is a little more up to date…
[import]uid: 127006 topic_id: 17978 reply_id: 118632[/import]

builds
.499
.347
.335

gave me the “Failure [INSTALL_FAILED_INVALID_APK]”

Tried .317 and I could install the app but again, the HTC statet the “…has stopped unexpectedly” error.

So I simply transfered the .apk to the HTC’s SD-card and installed it from there and voila, it worked!
BUT it runs awefully. Must be something around 3 frames per second or so.
Could this have something to do with the Corona SDK version? Or is the HTC wildfire A3333 simply not capable of moving a group of 18 pngs, each something around 200x200 pixel?
I tried angry birds on the device and it did ok. Not totally smooth but far better than my thing.
[import]uid: 127006 topic_id: 17978 reply_id: 118657[/import]

I know what the problem is. Your Android device uses an ARMv6 processor. Corona only supports ARMv7 Android devices. That is why your app fails to install. Unfortunately, the Android tools are terrible in describing the reason why it won’t install the app.

We dropped ARMv6 support just over a year ago. The reason we did that was because of poor performance on ARMv6 processors, just as you have noted. It’s slow because ARMv6 does not have hardware support for floating point, which is needed by our OpenGL graphics, physics, and audio systems. [import]uid: 32256 topic_id: 17978 reply_id: 118718[/import]

Ahhh! Ok, thank you very much. I came across that problem once but it didn’t occur to me that this was also the problem I had.

Thanks for the great support! [import]uid: 127006 topic_id: 17978 reply_id: 118828[/import]

One last question:

I saw that there are similar devices (looking at a resolution of 320 x 240 pixel) with so called snapdragon processors (for example: http://www.sonymobile.com/de/products/phones/xperia-mini/specifications/). Are those supported?
Do you have a list of supported processors? [import]uid: 127006 topic_id: 17978 reply_id: 118835[/import]

No, we don’t keep a list of processors. We just say that we support the “ARMv7” architecture which we thing is descriptive enough.

Also, note the ‘v’ in “ARMv7”. The ‘v’ indicates what architecture the processor uses. If you see a processor name without the ‘v’, then it indicates the processor family name which is not the same thing. For example, an “ARM11” processor uses the “ARMv6” architecture. Confusing, right? So, if you ever seen an ARM processor name without the ‘v’ in it, then do a quick Internet search on it to find out if it supports ARMv7 or not.

It looks like the device link that you’ve posted uses a Snapdragon “Scorpion” processor, which is an ARMv7 architecture. You may want to double check just to be sure. There are some Snapdragon processors that are ARMv6 according to the following link, so I would recommend that you find more detailed specs for this device.
http://en.wikipedia.org/wiki/Snapdragon_(system_on_chip)
[import]uid: 32256 topic_id: 17978 reply_id: 118922[/import]