Issue Details (XML | Word | Printable)

Key: NBANDROID-38
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: radim
Reporter: veskit
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
nbandroid

Emulator is not started

Created: 08/Jul/09 11:14 AM   Updated: 22/Jul/09 06:27 AM   Resolved: 22/Jul/09 06:27 AM
Component/s: None
Affects Version/s: None
Fix Version/s: 0.8

Time Tracking:
Not Specified

Environment:

Windows Vista (Local time French) / Netbeans 6.7 / nbAndroid 0.7


Tags:


 Description  « Hide

Hello,

First Thanks a lot for nbAndroid 0.7 which fixed the plateform and java exception.

I still have some trouble compiling my project :
After creating a new android project (1.1 or 1.5 android plateform) and compiling (didn't add anything into the program), i got the following message :

Compiling 2 source files to C:\Users\YaNiS\Documents\5IPPA\SE\AndroidApplication\build\classes
compile:
Created dir: C:\Users\YaNiS\Documents\5IPPA\SE\AndroidApplication\dist
Updating zip: C:\Users\YaNiS\Documents\5IPPA\SE\AndroidApplication\dist\AndroidApplication.apk_
Using keystore: C:\Users\YaNiS\.android\debug.keystore
Deleting: C:\Users\YaNiS\Documents\5IPPA\SE\AndroidApplication\dist\AndroidApplication.apk_
jar:
Result: -1

--> the program keeps running and the emulator don't shows up.

(the : "Using keystore: C:\Users\YaNiS\.android\debug.keystore" line is in red)

i searched on the web to find why the keystore was not correct. I changed my local time setting to English (USA) but nothing changed. I try to delete the key then create a new project (in 1.1 and 1.5 android plateform) but still no changes. I tryed to manually generate the keystore but failed.

Do you have an idea ? why the keystore line on the log is red ? why netbeans is instantly deleting my .apk and why the emulator won't show up ?

Thanks again, I am brand new to Android devs (and coding in general) so excuse my nwbiness.



radim added a comment - 08/Jul/09 05:36 PM

As mentioned in http://kenai.com/projects/nbandroid/pages/Intro you have to start emulator before you run the application. It also means that you probabl have to manually create android virtual device that can be used to launch the emulator.

The problem here is related to http://kenai.com/jira/browse/NBANDROID-24 - we are not aware of AVDs and the build script does not launch emulator correctly. Probably will be fixed soon (though not tomorrow).


radim added a comment - 12/Jul/09 08:31 AM

I made some progress on this:
1. if there is one AVD defined and running with compatible platform it will be used
2. if there is one AVD defined and not running with compatible platform it will be used though following actions may be confused if there are more devices
3. if there are more devices (AVDs or devices known to ADB) and one of them is compatible it will be used similarly as above.

Missing:
4. other cases need UI interaction to choose device or even create one.
+ need to find device name when started during ant run.


radim added a comment - 22/Jul/09 06:27 AM

more or less done now. Creating of new AVD is missing but this is tracked in separate issue.