Eclipse with Android SDK missing menu items - android

I have two system that I've installed Eclipse (3.6) and the Android development tools (SDK, ADT). They both have the same versions. However, on one system, under the File -> New menu, there are Android specific items - New Android Project, New Android XML file. But on the other, those specific menu items are not there. Yes, I can get to the items by choosing File -> New -> Project, then in the dialog pick Android Project, but was wondering why I don't have the specific items.
I've tried reinstalling Eclipse and the Android items, but the menu items just don't match.
Anyone more familiar with Eclipse and it's add-ons like Android have any idea? (Both system do have the "Open Android AVD and SDK" item under the window menu, FWIW)
Thanks.

I was able to restore the missing items in File | New... quite easily by performing the following steps:
Switch to the Java perspective, either via the perspective switcher toolbar at the top right of the main Eclipse window, or via the Window | Open Perspective menu item.
Reset the perspective by either right-clicking on the Java perspective icon in the perspective switcher toolbar, or by clicking Window | Reset Perspective...
As to why they weren't there in the first place, the most likely cause would be that the ADT contributes various things to the Java perspective, and these changes don't take effect until the perspective is reset after installing the ADT. As an Eclipse plug-in developer I learned it the hard way, that changes to perspectives don't get picked up unless you explicitly reset them.

Yes, seems this menu has a habit of disappearing, some sort of bug in Eclipse perspectives changing themselves.
Fix: In Eclipse click the Window menu and then "Customise Perspective". In the Customise Perspective dialog click the "Command Groups Availability" and then tick the "Android SDK and AVD Manager". Done.

Wouldn't it appear on the menu after you create the first Android project ?

When Resetting Perspective and neither Customize Perspective does`t work, you can delete config file responsible for this.
Just delete file workingsets.xml (resp. workbench.xml) in...\workspace.metadata.plugins\org.eclipse.ui.workbench\
(Credit to Pilot_51 for showing this solution)

Related

Android Studio 4.1+ emulator sidebar?

This question been bugging me since the release of the built-in emulator tab.
How to make it appear? Like, enforce it.
Because it just seems to appear whenever. I work mainly with Flutter projects and some projects just open and there it is. Other projects don't have the emulator tab so I have to run it in a separate window like it used to be. There are no options anywhere - it either "is" or not. I want consistency and I like it being a tab. How to enable it once and for all? Is it possible?
Solution is quite simple, if I don't see emulator in my Flutter project, I check in File->Project Structure, see picture.
There has to be an "Android" module, if there is none, just add it from a '+' menu, that's all, the Emulator tab will appear.

How do I open a new project in Android Studio?

How do I open a new project in Android Studio?
I'm trying to open a new project
But instead of a window of quick opening
I get this screen
The project opens differently than usual
Has something gone wrong with definitions?
How do I get to a "quick opening" window
Thanks in advance for your help
At the bottom of your screen there are several error messages related to loading plugins, most notably:
Required plugin "Android Support" is disabled
I would bet that this is why you are seeing a different New Project dialog as your copy of Android Studio can no longer use Android-related functionality. In order to re-enable this plugin, go to File -> Settings -> Plugins and ensure that the entry for Android Support and everything else Android-related is checked.
You may need to restart Android Studio once you've done this.
I think you're already in a new project. Look at the paths in the top of the screen shot. It's asking you to set up the parameters of the project, after which, you can save the project with a correct name. You look to have tried this 22 times prior to this screen shot, you're in "untitled23" for your project name.

Android SDK path not specified

I already installed the android studio but i am having a problem to proceed ahead,
and the problem is Android SDK path not specified, what does it mean, do i need to download something or what?Android SDK is having problem
Go through the following steps but first make sure your PC is connected to the internet.
Open your Android Studio
Go to the File menu and choose Settings
After that from the left side of Settings window search Android SDK, click on it and on right side click Edit.
Then from SDK Setup Window Click Next and Another window will be opened click Next.
Finally, the installation starts and Android Studio download the SDK and necessary files.
Yes, you need to download the Android SDK. Then you need to add the location on your computer to Android Studio.
The SDK can be downloaded by opening a workspace in Android Studio, and finding a button with an arrow pointing down. If you hover over it, it should say "Open SDK manager". Press it and download the packages you need.
Yes, Before installation it will ask you options.Just tick mark Android SDK.
See below:
Refer link: https://developer.android.com/studio/install
The installer is misleading making you think the SDK is already there. After much searching I figured this out:
Cancel the dialogue box asking for the Android SDK path and do the following:
Open Android Studio IDE. Find the down arrow icon, should be second last icon in the toolbar. Click that. You will see a path for Android SDK Location:. Click the edit link to the right of that. This will bring up the SDK Components Screen. If you can check the boxes there, check them. They may already be checked or they may be disabled. You can leave the path as is, for me its:
C:\Users\<user name>\AppData\Local\Android\Sdk
Depending on whether you had Android Studio before it may say it has detected a previous version and it will only download the components it needs. This is normal. Now click the NEXT button. A confirmation screen will come up with Setup Type and SDK Folder. If you want to change your SDK Folder this is your last chance, if not, click NEXT again.
It may bring up a Terms & Conditions screen, click the Accept radio button then NEXT. It will go and download the Android base SDK. When it's completed click FINISH.
You will then be taken to the Platforms screen where you can select which Android platforms you want to support. ie, Android 9.0 (Pie), Android 8.1 (Oreo). Select all the platforms you need then click APPLY.
The downloader will grab all those packages for you. Next, click the SDK Tools tab. Check the boxes of the tools you want and click APPLY. It may bring up a Terms & Conditions screen again, click the Accept radio button then NEXT. When completed just click FINISH and you're good to go.
File > Settings
The download will begin
In some cases, the project works properly but suddenly this error appears even though the project has nothing to do with Android
If this is your case, try the following steps:
Find a file in your project called tests.iml (or File ending in .iml)
file location in default is C:\yourProject\tests\tests.iml
Revert to the last version for all page by the click on the git change icon (1) and click on the revert button (2)
As the following image:
Run project

Can't see errors/warnings in Problems view unless project is selected in Package Explorer

I can not see any errors or warnings in my Eclipse(4.4.2) unless I specifically select the project or file in Package Explorer and then go to the Problem view.
So far I tried different options in "configure contents" and "show" dialogs in the Problems view menu without success. The only time I see errors in the Problems view is if I set the options "show all" or "all errors" and then it shows every issue with every project I have, don't want/need that.
I also tried (following suggestions from other posts) closing/reopening project, Build Automatically and fix project properties... no luck.
I remember it used to be that if you had issues in a file you were currently editing you could jump straight to the Problems view and it would show you the issues for the project where that file lives, in other words the current project being edited. This is the result I want.
Android SDK manager is up to date so I am out of ideas. Appreciate any help.
Open the 'Configure Contents' menu and select the 'All Errors' (click the line don't use click the check box). You should then be able to configure the Scope of the errors on the right hand side of the dialog (such as any element in same project)

Can I stop Eclipse from automatically adding views?

For example I have two perspectives, one for debugging, and one for coding.
In the coding area I obviously don't want views for debugging (LogCat from ADT for example).
Jet when some plugin, feature or view feels it has something important to say, it just shows up on whatever perspective I am. Eclipse just adds a view, and brings it to top everytime, which is getting quite annoying.
How do I disable this?
You can configure the LogCat behavior from the Eclipse Preferences window (e.g., Window > Preferences on Windows and Linux). Go into Android > LogCat and toggle values like "Switch perspective" and "Display logcat view...".

Categories

Resources