Missing androiddebugkey trying to build for Nook

I’m trying to do a Nook build, and I have the Debug Keystore alias selected, but nothing is showing up in the Key Alias.

Does anyone know why the androiddebugkey option is missing? Thanks. [import]uid: 27183 topic_id: 26132 reply_id: 326132[/import]

Maybe its due to the Coronas version youre actually using because Ive checked it out now on the latest stable build (704) and it is showing up there.
[import]uid: 89165 topic_id: 26132 reply_id: 105837[/import]

I’m on OSX Lion using build 799. It’s I’ve tried prior builds without seeing that debug key there either. I remember when I first installed Corona it was there. Not sure what happened to it. [import]uid: 27183 topic_id: 26132 reply_id: 105849[/import]

If it was there as you say it was. :slight_smile:

But so I cannot help much as I thought that it would be due to the version of Corona you`re using.

BTW am on OSX Lion 10.7.4 as well and seeing it there, in the stable version, at least.

Did you try to reinstall Corona from zero?

Cheers,
Rodrigo. [import]uid: 89165 topic_id: 26132 reply_id: 105852[/import]

I’m not sure how to install from zero. I’ve have multiple versions of the SDK installed for testing purposes, but I’ve tried deleting my older copies, installing the Java JDK. And now I’m going to try installing the Android SDK.

[import]uid: 27183 topic_id: 26132 reply_id: 105947[/import]

I also remember something about you have to delete some “entries” of CoronaSDK into your plist (some folder into the computer) (sorry but I`m not sure about its names anyway). I only remember it because there are other threads telling something about it when re-installing Corona from Zero and removing its stg like “cache”.

PS: I`ll search here in the forum about it and if I get it I return here to say you the link.
Cheers,
Rodrigo. [import]uid: 89165 topic_id: 26132 reply_id: 105948[/import]

Hi Rodrigo,

Yeah I did delete the plist thing as well. I forgot the name of it, but I installed a program a while back and removes that stuff when you delete an application.

I’m going to try installing the latest Android SDK to see if that’ll fix things. I installed Eclipse and the SDK a while back before I installed Lion, so maybe there’s some interference there.

[import]uid: 27183 topic_id: 26132 reply_id: 105958[/import]

Hi don ,

Sorry being late but I still did not find those posts regarding the plist things. :frowning:

BTW, I`m glad you knew what I was trying to talk about.

So, I hope you get it. If not, notice it here and I`ll try to investigate further with you.
Cheers,
Rodrigo. [import]uid: 89165 topic_id: 26132 reply_id: 105980[/import]

Hi Rodrigo,

The location of the plist files are here on macosx ~/Library/Preferences/com.anscamobile*

here’s what I get if I ls

% ls com.anscamobile.*
com.anscamobile.Corona_Simulator.plist com.anscamobile.ratatouille.plist
com.anscamobile.Corona_Simulator.plist.lockfile com.anscamobile.ratatouille.plist.lockfile

Earlier I had deleted those files, but that doesn’t seem to make any difference.

I generated my own debug.keystore, but when I tried typing in the password android I get this message:

The password for the Key Store located at /Users/mugen/Desktop/prog/android-sdk-macosx/debug.keystore was not valid, or the Key Store was not valid.

This is so strange. Something on my system is wrong. I just don’t know what. I tried installing the JDK, Eclipse, the Android SDK, ADT Plugin, but I’m not making any headway.

And it doesn’t seem like any google queries are turning up any useful info. I feel like I’m at a dead end.

Thanks for taking the time to respond. [import]uid: 27183 topic_id: 26132 reply_id: 106042[/import]

@Don,

You welcome!

So, what about if you create one new keystore? Would the same error comes up again?

PS: Of course I`m assuming that you remember well your password anyway. I say that because all the time I “forget” mine due to not be using it a lot. :slight_smile:

PS2 : Hey Ansca , would you shed some light here to help us please?
Cheers,
Rodrigo. [import]uid: 89165 topic_id: 26132 reply_id: 106056[/import]

I figured it out! I had JAVA_TOOL_OPTIONS trying to allocate too much memory.

I changed the option in ~/.MacOSX/environment.plist to

{  
 "JAVA\_TOOL\_OPTIONS" = "-Xmx1024M";  
}  

Then I logged out and logged back in, and I was able select the androiddebugkey in the Key Alias drop down!

Here’s the long story below.

Yes I’ve tried creating a new debug.keystore. I’ve loaded in the debug.keystore from the SDK. I’ve created a release keystore, though I don’t seem to have the option to select it.

Each time I get the same message that the password is incorrect or the keystore is invalid.

I have a feeling I’m doing something silly or my system is misconfigured.

I tried intalling JDK 7 yesterday, and it wasn’t installed in /Library/Java/JavaVirtualMachines/1.7.0.jdk as described by this doc http://docs.oracle.com/javase/7/docs/webnotes/install/mac/mac-jdk.html

but when I run Utilities -> Java Preferences.app I can see 1.6 and 1.7 installed. If I switch the order around and type

java -version

I see this output

mugen@MUGEN-2:~ 1011% java -version
Picked up JAVA_TOOL_OPTIONS: -Xmx2048M
java version “1.6.0_31”
Java™ SE Runtime Environment (build 1.6.0_31-b04-415-11M3646)
Java HotSpot™ 64-Bit Server VM (build 20.6-b01-415, mixed mode)

mugen@MUGEN-2:~ 1012% java -version
Picked up JAVA_TOOL_OPTIONS: -Xmx2048M
java version “1.7.0_04”
Java™ SE Runtime Environment (build 1.7.0_04-b21)
Java HotSpot™ 64-Bit Server VM (build 23.0-b21, mixed mode)

So it looks like things are installed but.

I finally noticed an issue with this:

Picked up JAVA\_TOOL\_OPTIONS: -Xmx2048M  
Error occurred during initialization of VM  
Could not reserve enough space for object heap  

Yikes! That can’t be good. Well turns out that was the cause. Oh and Corona can’t run with jdk 1.7.

So I went into my ~/.MacOSX/environment.plist file and changed the value to 1024M like so:

{  
 "JAVA\_TOOL\_OPTIONS" = "-Xmx1024M";  
}  

Then I logged out and logged back in, and I was able select the androiddebugkey in the Key Alias drop down.

I’m surprised the heap allocation failed. I have 16GB of memory! And I’ve been using that setting for ages to dev with Flash. Oh well. Looks like the issue has been solved!

I was able to do a Debug build for Android, and I was able to select my release key and do a build for Nook. *phew*! Stayed up until 3AM last night… glad I was able to figure it out this morning.

Thanks Ricardo! You responding to my post gave me the motivation to not give up on this.
:slight_smile: [import]uid: 27183 topic_id: 26132 reply_id: 106118[/import]

@Don,

I`m very glad you got it my friend! :slight_smile:

But WOW, what a “hard-work” to get it going, huh? And 16Gb of RAM!! WOW 2x! :wink:
But nicely done! No problem at all for me to be here.

PS: Now its me going to "start" an Android build for Google Play. There are 4 months I do not "touch" it, and SO, Im a little afraid right now…but as you did, let`s keep going!
Congrats!
Cheers,
Rodrigo. [import]uid: 89165 topic_id: 26132 reply_id: 106119[/import]

Surprising how the small things can end up being the most frustrating. It’s no fun when no one can share in your experience.

No fear! Keep pushing forward! :slight_smile: [import]uid: 27183 topic_id: 26132 reply_id: 106122[/import]

Thank you,

You`re right! :slight_smile:
Cheers,

[import]uid: 89165 topic_id: 26132 reply_id: 106123[/import]