Android studio unable to build downloaded project - android

I'm very new to Android, I downloaded sample project from Developer.android.com,
and when I open in Android studio,I couldn't see clean or Build option.
please guide how to build this project.
Is there any good sample code for Navigation Drawer with activities and Images?
Thanks.

As Kristy Welsh pointed you need to import the project.
Video how to import.
Project with Navigation Drawer.

It looks to me like you have a project that was created in eclipse. Try importing that project into Android Studio and it will do the build for you.

There should be a big green play-symbol you can click. It then opens a pop-up where you can choose to either run it on an emulated version or load it onto a connected android device (provided you have the drivers and the phone allows this direct installation). An alternative would be to build an .apk and put it into your phone's file system to then install it via the phone. This takes way more time but is the way to distribute your app to friends without using the play store.

if there is no error after downloading ,try to sync the project

You have to add a Configuration at Run>Run Configuration>Green Plus>Android Applicatio. now select your Launch Activity and your Module

Related

Android studio starting screen different the it should be

Just started learning android so i checked some online curses on how to set up my android studio project. The program version is up to date but i am getting a different new project screen the people do on videos. So i don't get to write the company domain, choose for what platform or pick the activity module. Tried to reinstall it but nothing changes. Not sure if i should/can continue the tutorials without that. Probably is just a simple mistake somewhere buti cant seem to find it.
1. picture of what android studio shows me
2. picture of what android studio shows me
3. picture of what android studio shows me
Android projects are built by Gradle build system nowadays. So you should select Gradle from the left menu and then slect the make the rest of your project configuration as you wish.

Android Studio 2.3 - Cannot lock System Folders

I'm new to Android App Development and am using Android Studio 2.3 to learn it. I've been working on it for a week now but now I'm getting the following error:
port lock error
Currently I'm working on a project so I need this error to be resolved.
Please help.
its problem with androidstudio.exe download from here its official site to download studio.
if any query after install new studio ask me.
try this my friend
Go to folder where android-studio is installed. (e.g. C:\Program Files (x86)\Android\android-studio)
Now go one folder back. (i.e. C:\Program Files (x86)\Android)
Right click on the android-studio folder and click to Properties.
Once in the Properties window, go to the Security tab.
Click the Edit button
In the new window that opens up click the Users (your-username-or-your-group-name)
From the list below, check Allow in front of Full control.
Press OK, then again OK.
I hope it help you!
for more information follow this link

Is there any way to generate sequence diagram from android studio

I have created sample android project. Now i have to create sequence diagram for that. Is there any way to automatically generate sequence diagram for android project from android studio.
Finally I got the solution.
I have installed a plugin, previously called SequencePluginReload from Android Studio, now called SequenceDiagram
It is very easy to use and works like charm.
I have downloaded SequenceDiagram suggested by #venkatesh in above answer, but didn't understand how to use it. After searching I found how to use it.
Download the zip file in the above link.
Go to Android Studio>Preferences in Mac. For Windows File>Settings.
Search for Plugins in search box. Then in right click on 'install plugin
from disk'. Browse for the downloaded zip and select it, then Apply and
it will show icon to restart android studio. Do it.
Now go to any method in your java file and right click on it and click on 'Sequence Diagram'. And you will find your diagram in a tab besides Debug,Terminal, version control etc.
I think it's hard to get a sequence diagram. But we can generate a class diagram from Android Studio. We need to install an external plug-in.
Following this references below:
How to generate Class Diagram (UML) on Android Studio

Working the same Android Studio project from different workstations

How can I work an Android studio project from work and later at home without having configuration issues, shall I use something like dropbox ?
You will be delighted to know that there wont be any configuration issues at all.
Android Studio Projects ar portable.
You just have to Copy the project from office. Bring it at home. And import it in your Android Studio by clicking Import existing android studio project. 1st time it will show an error message, mentioning that the sdk directory didn't matched. But don't worry, clicking OK button will solve the issue it self.
Just make sure your sdk manager is up to date in both machine of home and office.

Cannot open an existing project in Netbeans

I'm using Netbeans 7.0.1 in my computer, I've already created several projects in that same machine, then after installing/adding plugins for Android, I could not open any project in that same machine. How do I make my netbeans open my existing projects again? Do you think the installation./addition of plugins has something to do with the matter? Do I need to remove all the changes that I made? How?
And I forgot to mention, Whenever I try to "Open Project" it will show a window which displays the location of the projects, this gives me the idea to go to "My documents\NetBeansProject\ProjectName", however, when I click the project that I want (e.g GenReport) in the textbox (the label is Titled 'Project Name' ), this is shown --
unrecognized project;missing plug-in?
Try using create new project from existing resources.
As dumb as this may sound, take your project directory, Zip it up and then choose File >Import Project > From Zip. That should get you back into your files.
This happened to me because NetBeans did not have HTML5 plugin isntalled (after I got a new version of NetBeans). What do you know -- the error message was telling me exactly what was wrong!
Just use File>Open project, then browse to the root of your exisiting project. It will be detected as an android project as long as you have the nbandroid plugin installed.

Categories

Resources