The emulator android is really running slowy, and I found Genymotion and runs really fast! And when I tried to use with Intellij, after I followed every step from this doc https://cloud.genymotion.com/page/doc/, I got stuck in this item:
In your application project, right click and chose "Run as Android
application" The "Android Devices Chooser" opens Click on the
Genymotion virtual device you started/created
I really can't find "Run as Android application" whenever I click on my folder project, where I'm missing?
Look at this image, I really don't know why.
http://i42.tinypic.com/2ia76rl.png
In IntelliJ inside the Run/Debug Configuration dialog (available under Edit configurations...) you have to select radiobutton "Show chooser dialog" instead of Emulator.
Then you just press Run and you get the list of running devices.
If you select "Use same device for future launches" in the configuration dialog, you won't have to select the device again next time.
Check the toolbar of Intellij. There is a drop down menu (next to it are the "play" button and the "bug" button to start the debugger). You need to setup an Android configuration for your project first.
Check this site
http://www.jetbrains.com/idea/webhelp/creating-and-editing-run-debug-configurations.html.
Although I have a configuration for my project, like you I can't see it in the menu your screenshot is showing. But I can use the mentioned run button to run my project without any problem.
Good luck.
On your screenshot you have a "Run" item on the options. Look at what appears when you let your mouse over it ;-)
Related
I want to analyze memory consumption in my device but I didn't find Android profiler tab in Android Studio as seen below :
Please who could help me to show up this tab.
If you take a look at top menu you will see a profile icon click it and it will start your app with profile attached. See the below screenshot to get the idea.
The perfect tip for Android Studio:
When you need to find something, write it in the help tab, like this:
If you know what you're looking for, you will find it there :)
I have faced this problem too. Here is the solution. You have to enable Android Facet for specific project. Go to File → Project Structure and the select 'Facets'. Click on the + button and Add 'Android'. In Choose Module pop up select your project and Click 'OK' and then click 'Apply'
You can now find Profiler tab in bottom menu and also from View -> Tool Windows
The Profile option won't show up in tab until we build and run latest code of our branch.
Just run again and Profile option would show up.
When I click on run
when I click run, it can't run
To run the project, you have to create a virtual device. As you are new to this, I recommend you to use a real device connected via USB cable. Refer this for help. Feel free to comment if you are getting troubles.
Update
Click the plus button in the second screenshot you have provided.
Select "Android App"
Type "app" in Name box.
Apply
I'm following the course "Developing Android Apps" on udacity.
I have a problem on Lesson4A with the test suite (TestUtilities) complaining "Task 'cleanTest' not found in root project 'Sunshine'.
And then it points me to run with --stacktrace option.
But I don't know how I can run the command on the terminal in the first place.
How can I see what gradle-tasks that android studio is running?
Thanks :)
At the bottom right corner of Android Studio you have different views:
Gradle console
Event Log
Additionally, if your Gradle is running, will appear a 3rd one where you can see a progress bar with some information about the process. But if you want a full details use the 2 first views.
I believe you have not do the configuration at first, as the default configuration is not appropriate for this project.
Select Edit Configurations next to Run button on toolbar
Make a testing configuration, by click the + button and select Android Test.
Make sure you choose "Show Chooser dialog" in target device section if you are using Virtual devise like Genymotion
Hit OK and press the run button.
PS. Make sure your have this configuration under Android Test, and nothing under JUnit dropdown.
I was confused at first, but not anymore after I tried above steps from Udacity notes.
I am updating an Android project, and for some reason the run button in eclipse does nothing. I can get the app to run if I go Run>>Run Configurations... and then start it from that, but if I just click the play button or if I use the hotkey for run (CTRL + F11 ) then nothing happens. It seems to make no difference if an emulator is already going or not.
Anyone have suggestions? I like to code by making small changes and then running the app to see what happened and its very frustrating to have to go through 3 clicks just to get it to run every time.
Thanks
Using default settings in Eclipse, the Run button and hotkey CTRL + F11 will not work when the xml editor is in focus. It should work if you are working with the Java editor. To use the button or hotkey while editing xml, first click on the project in the package explorer.
You can adjust this by going in to Eclipse Preferences and choosing Run/Debug and make it launch your last used Run Configuration. Then only for the first time you launch you will be required to right click your project and choose Run As -> Android Application. After doing this pressing Ctrl+F11 or the Run icon will always start that Run Configuration.
I have download and install adt-bundle-windows-x86 successfully on my machine
But when I try to run and execute any android app ,
NewDevice i.e emulator is not going to show anything , it is going to stuck at loading stage why is it so?
I tried following also:
Right click the root of your Android Project, go to "Run As" then go to "Run Configurations..." locate the "Android Application" node in the tree at the left, then select your project and go to the "Target" tab on the right side of the window look down for the "Additional Emulator Command Line Options" field (sometimes you'll need to make the window larger) and finally paste "-partition-size 1024" there. Click Apply and then Run to use your emulator.
set preference also.
please guide me.
Thanks