Android studio not working as it should work - android-studio

Yesterday I configured my Android Studio according to the tutorial I saw. The next day, I opened Android studio and the logcat, and many of the other things on toolbar were not showing up and grayed out.
Please see the screenshot below:

Just click the dropdown button on left side of RUN button and then Edit Configurations...
then click on Android Application on the left and click the + button. Choose "Android App" from the pop-up menu. Then pick the module and select "app". Then click apply and ok.
If you have more errors after that, try to reopen project, it could be caused due to directory error, make sure you correctly target project when browsing and opening the target directory which contains the files.
...\AndroidStudioProjects\YourAppName\{project files}

First you need to create an run configuration. To do so, click the dropdown box to the left of the Run button. If you already have a run configuration, just select it. If not, click on Edit Confirgurations.... Then click on the + button at the top left and select Android App. Enter a descriptive name and select the app module. Finally, click OK. The Run button should now become enabled.

Related

Edit Configuration pops up when I run a project,ignoring it says Cant start compilation as output path not set

This dialogue box appears after I click run
When I run the android project I downloaded from Android Developers website, the edit configuration dialogue box shows up. When I press run again, it says the configuration is wrong.I am a beginner and have never opened any project (nor made in my android studio) before.
Appears if I again click run,says incorrect configuration
Another box after that which asks to set output path
I tried adding a configuration named "FragmentBasics" in the Application menu but it doesn't allow me to select the main class.
The java class doesnt get selected
(Tip: Update your Android Studio. It looks like an ancient version... Do that before doing anything else.)
(Prerequisites: Create an Android Virtual Device (AVD): Error running 'app: No target device found. Android Studio 3.6 Preview)
You don't have the right configurations.
(1 Go to the Configuration Dropdown Menu and click Edit Configurations.
(2 Delete existing configurations (None of the classes in your project have the "main" method declaration)
(3 Add an "Android" run config
(4 Fill in config information
Now you are ready to deploy your app (Assuming you have an AVD).
Hope I helped you!

how to get the 'sync' icon back

With android studio 3.1.4, it has been working fine but suddenly the "sync" icon cannot be found anywhere (did not make any change), happens to any projects now.
Also the combox next to the "Run" icon shows red cross and "This configuration cannot edited"
And it has only Project tab does not have the tab of "Android".
Must be some setting messed up. Is there a way
Looks like the Android plugin got disabled. Please go to Settings | Plugins, find "Android Support" there, check it and restart the IDE.

LogCat Missing from Android Studio 3.1.3

I recently installed Android Studio 3.1.3 on my laptop in order to start learning android/mobile development (I am still new to all of this). The LogCat option seems to be missing though (refer to images below)
What I tried to do in order to fix the problem:
-uninstalling and reinstalling android studio (along with updating it...)
-researching the problem (no useful results as all the solutions were to press alt-6 or go to View->Tool Windows)
It would be a huge help/relief if someone knows how to solve this problem.
Thanks in advance.
I know it is an old question, but I encountered this problem at least twice so it might help someone.
The problem seems to be the path of the project you're looking at.
It should be pointing to the folder containing the 'app' and 'gradle' folders inside your project.
Go to File > Open
Select the folder with the 'app' folder inside your project
Press 'Open'
If you see something like this you can now probably open the Logcat window with alt-6 or View->Tool Windows.
Note that for some reason, it didn't work for me at first until I opened the app folder, run a build and then opened the folder containing the app folder.
You need to sync your project and then Logcat will show up
Just in case anyone stumbles upon this as I did: If you are developing a react-native app, be sure that you import only the android folder of the project.
If you import the whole project, then among other things, logcat is nowhere to be found!
Try pressing Alt+6 on Windows or CMD+6 on Mac.
I closed "Logcat" by accident via right click -> "Remove From Sidebar".
I was able to restore it with these steps:
Launch your current App on an emulator.
This should create a "Run" Tab on the Sidebar.
Click on the "Run" Tab and find the "Modify Run Configuration..."
(Wrench) icon and launch it.
Change the tab to "Miscellaneous".
Check the box next to "Show logcat automatically"
This is not a solution if Logcat doesn't even show up in View->Tool Windows!
But if it does: click it and it may show up at a different location than it used to be. Without recognizing I had shoved it to the top left where the project tab is shown. You can now click on the gear wheel on the tab and select move to bottom left (that is the default location).
This was the solution for my "logcat not showing".
Press Alt+6 inside Android Studio to open Logcat monitor.
Then, Do the following steps:-
Open Android Studio.
Open Android Monitor Window(at the bottom of android studio).
Here you will see the drop down in right corner.
Select Show only selected Application.

Android Studio: refresh preview on picture change

I'm using Android Studio 1.0.2 and Gimp as external editor for the images.
When I want to modify an image, I select it, click on "Jump to external editor", apply changes, save it, go back to Android Studio and... close/open project to refresh the changes.
Is there a shortcut for this ? I cannot find any "refresh preview".
Even if I recompile, start the app, close/reopen the preview, I cannot see the changes on the preview (only on the execute app).
Well, it's really easy, indeed... didn't notice the button.
In the preview panel, upper right corner (on the right of the + and - buttons), there's a refresh button.

I have made an application in visual studio 2012 and went under whole process of certification but the test failed, please give me the solution?

please guide me , how to change the default icon in the project in visual studio 2012 ?
due to that the certification test fails .
Due to this error I am not able to upload it to the windows store.
To change the default icon, first find or make an icon file. Then do this:
Go to the project properties. (Project menu.)
Select the Application pane. (Probably the first one.)
Go to the section Resources.
Check the option (radio) button Icon and manifest.
For the Icon field, use the browse button to select your icon file.
Save it, build it, try the certification test again.

Resources