I have updated eclipse,but after that,When I click the "Run " button, I get the following message.
"The selection cannot be launched, and there are no recent launches."
I have searched a lot and cannot correct the error..Pls help me..
Thanks in advance.
In general, if you want to debug the project right-click on it in the Package Explorer navigate to Debug As and select Java Application. If you are given multiple classes which can server as the entry-point, you will have to make an educated decision as to which class it is.
So Do onething like:
Right-click the Main class in the Package Explorer at left, then choose Run As, Java Application.
If it doesn't help you then there is a different way as well:
1: Just remove the project from the workspace and,
2: under the local filesystem list in the project explorer, right-click the folder of the project and
3: click Promote to project.
This will might help you..
Check if you are able to view the option Android SDK Manager in Window menu.
If not, download the required tools through Help menu > Install software. Download the softwares required for Android app development, then you will be able to run your project only.
Tell me if it still does not work for you.
Turned out I was trying to run program using :
public static void man ()
instead of main()
check for mistakes in code , probably it will work .
Related
hi¡¡¡ wish you can help me with this problem¡¡¡ thanks in advance.
I've made a project in a drag-and-drop builder for
creating cross-platform mobile apps and websites, and now, i want to make an app native, apk extension, in order to take it into Android Market. After finish the project, i receive a source code bundle for Eclipse (phonegap project).
The link to the phonegap project is this http://www.mediafire.com/download/i3keb345k8y51lh/codiqa-android-f6e7a438-1377719055.zip
Everything works really fine in the project, but when i make the apk archive.......... is not so fine.
Let me explain you, step by step what i am doing, maybe you can tell me if something's wrong and how i can fix it.
Step 1: I export my project as phonegap project (android). I receive a *zip, and i unzip it in my computer .
Step 2: I open Eclipse program and create a "android project from existing code" (file>new>project>android project from existing code")
Step 3: I select the root directory where i've unzipped my codiqa project, and click finish.
Step 4: I export the project as an Android aplication (right button>export>export android application), follow the steps, and i get my application. (In the Manifest, i change debuggable to false.)
Step 5: I install it in my phone, and now come the problems.
Problem 1: I can not open anything from my app. For example, when you normally open a file o website in your phone, you can receive the standard "what program do you wish to use", but not in my app.
Another example, i have a mediafire link in the app in order to download an archive,.......... no matter how many times i press the download button, never work, never download.
Hope you can tell what's wrong and how to fix it, THANKS¡¡¡
You might need to try different platforms.
Sigma Mobility http://sigmamobility.com/ allows building mobile apps using jQuery for free through drag and drop feature, it also allows one to attach Java scripts and CSS styles.
you can through app preview download the source code , and to get cordova project source, you might contact SigmaMobility support for the same.
I had a project named "xxx" which I renamed to "yyy". The project works fine on my phone. But Eclipse still says "Launching xxx" when I run the app. How do I remedy the situation? I've tried searching for "xxx" throughout my project, no luck.
I also had this problem on my Android project. Now I found the solution:
Click the down arrow next to the run button.
Select the Run Configurations item in the popup menu.
Expand Android Application and select the item with old project name.
Set the Name: field at right to the new project name.
Click Apply
Hope this can fix your problem.
Go to the launch configurations and have a look at the configuration that´s called xxx.
In the Name field you can edit the name of the launch configuration to whatever you want.
EDIT:
Maybe this documentation article makes it much more clearer:
http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.jdt.doc.user%2Freference%2Fviews%2Fdebug%2Fref-editlaunchconfig.htm
Experts,
I am having the source code of 2 android apps which have been separately developed. I need to combine both of them as a single application so the output would be a single apk file. Let me more specific.
App 1: Shop list app -
App 2 Calculator app.
using a button click in the App 1 I would want to call the second app Calculator. I have researched on Internet and I am seeing some suggestions like library project etc.
Anyone who has some idea on the feasiblity, please throw some ideas on the same.
Thanks,
Harry
output would be a single apk file.
Then use as a library project.
Check this may help you
Setting up a Library Project
Referencing a library project
Open Eclipse-> right click on your project-> Build Path -> Configure Build Path
Go to "Projects" tabs on Top and add new project which will install two apks of the curernt project and the depends project that you just added.
It will do the trick for you.
Thanks
New to android, when I debugging in Eclipse I use to press F6 to step into my code, but by doing this, it always lead me into source code of Android which I don't have, than, you can see the page with a button let you to browse the location of the source code, how can I skip this, and let the debugger always stay within my own project?
Thanks.
I knew it should be possible!
This is a duplicate of this: Eclipse Debugging: Stay within boundries of current project
I renamed a project in Eclipse via 'Refactor > Rename' as suggested in this answer.
I now want to rename it again, but the Refactor menu has only one menu item now (Android > Extract Android String...) which is also greyed out!
I am using Eclipse 3.6.1 with the latest Android SDK 9.
Why is that and how to I restore this to normal?
Update (1): After following Sankar Ganesh's suggestion (selecting a string), the Refactor menu appeared again. I then selected the Rename... menu item again and I received the following error message box:
This is much better than the previous situation, in which I had no idea why the Refactor menu had been disabled and what to do. Still, I don't understand why this is and what rules I should follow when using the Refactor function. I only wanted to rename a project... that's all. :)
Update (2): I just tried the same exact operation again again (Refactor > Rename while the project is selected in Project Explorer) and it worked! (without issuing the message box shown above).
What's going on?
Must be a bug, because this is clearly inconsistent.
I was wonder,why you struggling for Renaming a project,
if you want to rename your project, then simply you can select your project, then click refactor menu, then Rename, that's it
step1:
Step2: Now see My project name is updated,initally it was friend finder, now friendfinderupdated
Also , you can use Extract Android String for Valid Java Identifiers and not for packages and files, because see window here
Pls select a String in your java code and do that Refactor -> Android -> Extract Android String, now you can see dialog, what i had shown below
and see next image
Mystery solved!
The problem turned out to be that I was trying to 'Refactor > Rename' while in the Resource perspective.
Once I switched to the Java perspective, this (inconsistent) behavior didn't repeat itself and I was even able to check the Update references checkbox.
Wow!
(thanks #Sankar Ganesh for posting the snapshots, because that allowed me to notice that there is an "Update references" checkbox and that the text on your caption bar is different than mine)