Android Studio: Missing: Emulator Greyed out - android

Background to problem and how it all started:
I suddenly and without warning had errors related to plugins. Specifically, firebase services and firebase testing plugins not enabled. Result, could not open my project.
After lengthy research and struggle I was finally able to enable these plugins (along with others)through a miracle and opened my project BUT a new problem has now emerged.
Now the run app button for the emulator is greyed out. If i try to go to the top and click on: RUN APP ==> the "run green" button is also greyed out here (along with "debug" and "Run with coverage".
When I open a recent project in Android Studio in a new window the emulator run button is visible and I can open the Emulator without any problems. It's only suddenly this one project. It's been working just fine until now.
I updated Android Studio just prior to this as it requested it. I am using Android Studio 2.2.1.
Any suggestions highly appreciated, thanks in advance

For anyone else that has this problem the solution is found on Youtube at below link. Thanks to the uploader of this video. Saved my day!
youtube.com/watch?v=o1ApErUGZ_M

Its weird but it worked.
Just deselect and select again those two plugins .
Click Ok.
It will prompt for restart. Click Restart.
It works!

Related

Deployment target screen is not coming while click on run button?

In my android studio deployment target screen is not coming after I updated my gradle. When I click on run button nothing is coming only one msg is showing on down message bar is "run selected configuration". I am stuck here like two hours tried with version changing of gradle and all but still facing the same issue. Please if anyone has any solution to this, help me.
I found the answer to my question, actually, my adb.exe file was not showing the SDK-platform tools. That's the main reason why deploy target screen is not working. Now I uninstalled and install again platform-tools. It is working fine now.

Unable to clean or rebuild project in Android Studio 2

I have a problem with my Android studio 2. That's whenever I want to clean or rebuild my android project, I always get this message
Error:Execution failed for task ':app:clean'.
Unable to delete directory: C:\Users\MyPC\Desktop\SharePlace\app\build\intermediates
and can not fix it. what I only can do is go to File explorer and delete it.
then come back android studio and rebuild again. Sometime, that way also does not work.
I need some help to fix that Android studio. Please.
Thank inadvance!
Solution 1 :
you are using Android Studio 2.0 Beta, this issue might appear (more likely if you are working on NTFS filesystem) and it seems like the "Instant Run" is the culprit. Search for "Instant Run" in settings and uncheck the box.
I have filed an issue on the bug tracker.
Solution 2 :
You need to go to the source file directly. Close the studio and go to the path the issue is located at and delete the folder there.
I got a lot of faults like this.
Try to refresh all gradle projects: in Android Studio click on the "Gradle" tab on the right side of the window. When the gradle menu is shown, click on two blue mixed arrows icon. Then wait a moment until gradle completes refreshing and try cleaning or rebuilding again.
For me it was fixed by running Android Studio as administrator.
Manually deleted folder( build\generated and build\intermediates) after closing android studio works for me.
Found the solution. For windows, goto Task Manager and find your Android Studio. Expand it and end task for OpenJDK Platform Binary as depicted below
screenshot.
Then re-run your app in Android Studio again. It should work, and you don't have to restart your Android Studio all the time. More productivity~

Android Studio not setting up new project properly

When I open Android Studio I get the following errors:
On Clicking File > New > Project the following screen comes up:
This, as opposed to this:
Anyone know why this is the case:
I tried reinstalling Android Studio, no luck.
Then I tried reinstalling Android Studio, SDK and HAXM, pretty much everything I could uninstall, I tried opening new project from welcome screen... still no luck.
Any ideas?
Thanks.
Click "Enable Android support" in the first picture.
Go to File>Invalidate caches/restart>Invalidate and restart.
If your problem is not resolved, try clicking on "Enable Android support".
If your problem is not resolved, try going to Android SDK Manager and install:
Extras/Google Repository
Extras/Android Support Repository
Restart Android Studio when install finish.
If your problem persists and you are not going to use these plugins, click on "Disable not loaded plugins".
I hope this will help you.

Not able to create new Project with ADT version 20

I have recently updated my ADT and it is now ADT_V20. I have also updated my SDK platform tools as well. But I am not able to create new Project through Project wizard from Eclipse.
I have Eclipse Helios latest version. and It was working well with old ADT versions.
In the project wizard I have reached upto Install Dependencies screen, where "Next" and "Finish" buttons are disabled. I have tried to "Install/Upgrade" new version as shown in the wizard and that process is completed successfully . Still I am not getting "Next" or "Finish" buttons enabled.
This same thing happens on the other PCs as well.
Could anybody please help me ?
Thanks
Looks like you can get around this issue by uninstalling the Support library from the SDK manager, then reinstalling at the prompt in the wizard. I had the same problem you did, and this solution worked for me.
Source: http://code.google.com/p/android/issues/detail?id=33859
In the new Android Project Wizard on the second screen where is says "Select whether to create an activity, and if so, what kind of activity"
Simple un-check the Create Activity, A new Blank Activity will be enabled to be created. -
Click Finish.
They might push a fix for the issue you have highlighted soon.
I have come across some more issues related to Ant build.xml not able to find "com.android.ant.NewSetupTask" due to this upgrade to ADT20
After installing ADT version 20, I have this problem creating a 1.6/API 8 project now that the newer (version 20) SDK is installed.
Would one of the experts try creating this even WITHOUT the 'activity' please?
I cannot complete with the blank activity checked (due to the missing API 8, which tries to install the already installed API 9 when asked to update), NOR can I complete with NO activity selected.
In the latter case, i.e., uncheck the create Activity box, the Finish button appears, creates the project partially, but not one that will build (as the older versions would do even with an old API.
Also, there is no actual indication that the "Finish" has worked -- you must look over in the browse pane to see the new project even though the dialog remains.
If any of the above did n't solved your problem please do one thing, try DELETING org.apache.log4j_1.2.17.jar from eclipse/plugin directory !!!!
In MACOSX, with Eclipse Helios IDE, this solution didn't work for me. I solved the problem uninstalling the components by the SDK tools and installing them again by the same SDK manager. I tried to reinstall the components by the same new project dialog, but didn't work for me, my only solution was that, uninstalling and reinstalling from sdk manager.
I hope this solution works for you :)
My solution is that I found out that Android Support Library was not installed on my computer (I didn't even have an Android folder under extras/. I ran the SDK Manager as Administrator, selected this and installed it. Then I tried creating a new project and I got the same error. I clicked Install/Upgrade and the Finish button became enabled. The next time I created a new project, I didn't get this error.
In my case the app had been created, but I didn't see it as it was completely obsqured by the welcome splash screen. When I didn't see it, I tried to create the app again, and it was failing to finish silently. Only when I ventured to close the splash screen did all become clear.

Android: Eclipse doesn't pushed new version of app to emulator

When developing for Android in Eclipse, the emulator relaunches the old version of the app each time I run the project unless I go through the rather arduous procedure of Settings -> Applications -> Manage applications -> [my application] -> Uninstall -> Ok -> Ok in the emulator.
I had this problem on some projects but not on others when following the tutorials on the Android Developers site, and my friend turns out to have the same problem. Although this has been asked before (here and to some extent here) their problem turned out to be "some extra quotes on one of the xml file" and I can see no such thing in my project. Otherwise people seems to be saying that Eclipse should push the new version. Unfortunately, it doesn't.
I would be grateful for any suggestions.
I had this issue as well, and what i figured out was:
If you are using your device for debugging, then you should launch a debug session, not a run one.
On the other hand, if you want to install an application, or you want to launch a run session directly on your device, the version of your application set in the androidManifest.xml must be greater than the one on your phone.
Try Menu-Project-Clean, Select your project to clean, this will delete everything but the source. Eclipse should re-build automagically if not select Menu-Project-Build Automatically.
Right click your project, Android tools, fix project should automatically fix some unknown error maybe
Double check your xml, an error in a layout could cause your situation. A wrong id for example will not show as an error in eclipse.

Categories

Resources