Discussion Forums  >  Uncategorized

Replies: 13    Views: 2985

BufordMobley
I hate code!
Profile
Posts: 8
Reg: Oct 21, 2010
location unknow...
80
11/24/10 07:44 AM (15 years ago)

No target available

When I add My source code to the eclipse, no target is specified,and I get an error message that says you must choose a target, but it will not let me check that box.
 
Zoid66
Lost but trying
Profile
Posts: 176
Reg: Oct 26, 2010
USA
1,760
like
11/24/10 10:03 AM (15 years ago)
Question: When you say added my source code... I am not sure what steps you went at by adding it. 1. Download and unzip the file. 2. In Eclipse you select File new Android Project. 3. Under Contents select Create Project from existing source, now find the folder you unziped in step 1. 4. Name your Project avoid spaces By default it should select the correct Build Target. If you downlaoded the Android sdk etc. You should see Android 1.5 clear upto 2.2. Buzz touch takes 1.6 by default. Ping back if I lost you or you did just this.
 
BufordMobley
I hate code!
Profile
Posts: 8
Reg: Oct 21, 2010
location unknow...
80
like
11/24/10 10:29 AM (15 years ago)
Everything happened EXCEPT it did not select a build target, and it would not let me select one either
 
Zoid66
Lost but trying
Profile
Posts: 176
Reg: Oct 26, 2010
USA
1,760
like
11/24/10 10:32 AM (15 years ago)
Do you see a build target listed?
 
BufordMobley
I hate code!
Profile
Posts: 8
Reg: Oct 21, 2010
location unknow...
80
like
11/24/10 10:35 AM (15 years ago)
It says no target available
 
BufordMobley
I hate code!
Profile
Posts: 8
Reg: Oct 21, 2010
location unknow...
80
like
11/24/10 10:40 AM (15 years ago)
I also see this error message in the console: [2010-11-24 12:34:04 - com.android.ide.eclipse.adt.internal.project.AndroidManifestHelper] Unable to read C:\AndroidManifest.xml: java.io.FileNotFoundException: C:\AndroidManifest.xml (The system cannot find the file specified) [2010-11-24 12:34:04 - com.android.ide.eclipse.adt.internal.project.AndroidManifestHelper] Unable to read C:\AndroidManifest.xml: java.io.FileNotFoundException: C:\AndroidManifest.xml (The system cannot find the file specified)
 
Zoid66
Lost but trying
Profile
Posts: 176
Reg: Oct 26, 2010
USA
1,760
like
11/24/10 11:10 AM (15 years ago)
in eclipse under the 'window' tab) go to settings, check the box for 'force https://...sources to be fetched', then go to available packages which should have the site 'https://dl- ssl.google.com/android/repository/repository.xml' listed. If not, click 'add site' and put in this url. check this box and it will list a bunch of sdk's and api's, choose the one you want, (both the SDK and the API) and hit 'install selected' You should now have some targets available. buzztouch needs 1.6 etc...
 
BufordMobley
I hate code!
Profile
Posts: 8
Reg: Oct 21, 2010
location unknow...
80
like
11/24/10 11:39 AM (15 years ago)
Unfortunately, I have to go to work now and will resume later tonight. You've been very helpful and I will try your instructions. Thank you so much. If I run into trouble,I will ping.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
11/25/10 01:22 AM (15 years ago)
Hi...like Zoid mentioned, it sounds like you don't have the Eclipse / Android environment configured yet. I'm traveling for Thanksgiving and will check this thread when I return. @zoid is super sharp and his instructions are sound - start there and ping if you get stuck. @zoid: Android browser. I've been doing lots of testing and I'm convinced that 'some' javascript will run but not all. I think the screens you're trying to run that will not are somehow being altered server side and the publisher is preventing them from running in the Droid embedded web-view intentionally. This may be wrong but I have yet to find anything to adjust to allow better javascript support. I'm not giving up yet. The focus here is still on v1.5. We need to get this release out for iOS, then Android. When that's complete, I can spend more time on the screens your having trouble with. This will be at least a few weeks. In the meantime - please send a list of URL's that you know will not work - I'll review each of them individually and see if I can get something to work. Happy Thanksgiving!
 
BufordMobley
I hate code!
Profile
Posts: 8
Reg: Oct 21, 2010
location unknow...
80
like
11/25/10 01:00 PM (15 years ago)
OK, I think I got that straightened out. Now, when I click run, I can't get the android simulator to come up. Any ideas?
 
BufordMobley
I hate code!
Profile
Posts: 8
Reg: Oct 21, 2010
location unknow...
80
like
11/25/10 01:01 PM (15 years ago)
I get these errors in eclipse. [2010-11-25 14:56:10 - app1] ------------------------------ [2010-11-25 14:56:10 - app1] Android Launch! [2010-11-25 14:56:10 - app1] adb is running normally. [2010-11-25 14:56:10 - app1] Performing com.v1_4.B347C448FFAF1D75.com.Act_Home activity launch [2010-11-25 14:56:10 - app1] Failed to find an AVD compatible with target 'Google APIs'. [2010-11-25 14:56:13 - SDK Manager] Warning: Error parsing 'D:\Users\Home\My Documents\Androidapp\android-sdk_r07-windows\android-sdk-windows\platforms\android-2\sdk.properties': java.io.FileNotFoundException: D:\Users\Home\My Documents\Androidapp\android-sdk_r07-windows\android-sdk-windows\platforms\android-2\sdk.properties (The system cannot find the file specified). [2010-11-25 14:56:13 - SDK Manager] Warning: Error parsing 'D:\Users\Home\My Documents\Androidapp\android-sdk_r07-windows\android-sdk-windows\platforms\android-5\sdk.properties': java.io.FileNotFoundException: D:\Users\Home\My Documents\Androidapp\android-sdk_r07-windows\android-sdk-windows\platforms\android-5\sdk.properties (The system cannot find the file specified). [2010-11-25 14:56:13 - SDK Manager] Warning: Error parsing 'D:\Users\Home\My Documents\Androidapp\android-sdk_r07-windows\android-sdk-windows\platforms\android-6\sdk.properties': java.io.FileNotFoundException: D:\Users\Home\My Documents\Androidapp\android-sdk_r07-windows\android-sdk-windows\platforms\android-6\sdk.properties (The system cannot find the file specified). [2010-11-25 14:57:16 - app1] Still no compatible AVDs with target 'Google APIs': Aborting launch. [2010-11-25 14:57:16 - app1] Performing com.v1_4.B347C448FFAF1D75.com.Act_Home activity launch [2010-11-25 14:57:20 - app1] Launch canceled!
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
11/25/10 01:05 PM (15 years ago)
Happy Thanksgiving! This line is the key to the errors you are seeing: Failed to find an AVD compatible with target 'Google APIs'. Open up your AVD manager (this is the list of simulator devices, Android Virtual Devices) that you have configured. You must configure a simulator that's setup to run the Google API's 1.6. Then, when you run your project, make sure you select this AVD to run with. The AVD manager is a tool that allows you to setup as many different simualtors as you want. It's also the place your device will show up if it's plugged in. Choose Run As when testing and it should show you your AVD list so you can choose with simulator to use. If you have not setup any simulators, you'll need to before they will appear. maybe Google 'Android AVD' or something?
 
BufordMobley
I hate code!
Profile
Posts: 8
Reg: Oct 21, 2010
location unknow...
80
like
11/25/10 06:23 PM (15 years ago)
Happy thanksgiving to you and yours as well. I've got the simulator and it shows up in the AVD manager. However, it doesn't show up when I do run as. The only thing that shows up is 1 XSL Transformatiom. I get an error that says it can't find my simulator. [2010-11-25 20:14:10 - app1] Android Launch! [2010-11-25 20:14:10 - app1] adb is running normally. [2010-11-25 20:14:10 - app1] Performing com.v1_4.B347C448FFAF1D75.com.Act_Home activity launch [2010-11-25 20:14:22 - app1] Launching a new emulator with Virtual Device 'AVD2' [2010-11-25 20:14:22 - Emulator] emulator: ERROR: unknown virtual device name: 'AVD2' [2010-11-25 20:14:22 - Emulator] emulator: could not find virtual device named 'AVD2' [2010-11-25 20:15:00 - SDK Manager] Warning: Error parsing 'D:\Users\Home\My Documents\Androidapp\android-sdk_r07-windows\android-sdk-windows\platforms\android-2\sdk.properties': java.io.FileNotFoundException: D:\Users\Home\My Documents\Androidapp\android-sdk_r07-windows\android-sdk-windows\platforms\android-2\sdk.properties (The system cannot find the file specified). [2010-11-25 20:15:00 - SDK Manager] Warning: Error parsing 'D:\Users\Home\My Documents\Androidapp\android-sdk_r07-windows\android-sdk-windows\platforms\android-5\sdk.properties': java.io.FileNotFoundException: D:\Users\Home\My Documents\Androidapp\android-sdk_r07-windows\android-sdk-windows\platforms\android-5\sdk.properties (The system cannot find the file specified). [2010-11-25 20:15:00 - SDK Manager] Warning: Error parsing 'D:\Users\Home\My Documents\Androidapp\android-sdk_r07-windows\android-sdk-windows\platforms\android-6\sdk.properties': java.io.FileNotFoundException: D:\Users\Home\My Documents\Androidapp\android-sdk_r07-windows\android-sdk-windows\platforms\android-6\sdk.properties (The system cannot find the file specified). [2010-11-25 20:17:41 - app1] ------------------------------ [2010-11-25 20:17:41 - app1] Android Launch! [2010-11-25 20:17:41 - app1] adb is running normally. [2010-11-25 20:17:41 - app1] Performing com.v1_4.B347C448FFAF1D75.com.Act_Home activity launch [2010-11-25 20:18:12 - app1] Launch canceled!
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
11/26/10 01:09 AM (15 years ago)
Ah, makes perfect sense. The Run As menu will show different options (or not options at all) depending on what you have selected in the Package Explorer on the left. Example: If you select a .JAR file o ra .TXT file, or the Project itself. If you have a list of devices in the AVD manager (you mentioned that you did) - make sure you have the Project itself selected, the top-most item in the list (this is in Package Explorer) before you click the Run As green button. If the project is selected, you should see a Run As > Android Application. Choosing the Android Application option would then show the list of devices in your AVD - you would choose which device to launch. If this isn't happening, maybe check the Properties of the Project. From the Project Properties window, you can configure the Run As / Debug setting. In other words, what do you want to happen when you click Run while this project is selected. Airports all day tomorrow, back tomorrow night.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.