Working the same Android Studio project from different workstations - android

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.

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 Project in IntellIJ - Error: Activity can't be created

This is an image of the situation:
I downloaded IntelliJ IDEA, JDK, and SDK Android for use. But I can't create an Android project because the windows shake everytime I try to create an activity or when I click "next".
I've tried to download another IntelliJ, I tried create other activity (no activity too but on start it shakes, too). I've searched for the solution here and on other sites, but I did not find it.
I think I won't have this problem if I would download Android Studio. But I want to know what is happening.
Same here. I faced this issue for the MacOS version of IntelliJ. I think I found a temporary workaround to this. After installation of IntelliJ and running it for the first time, configure JDK and Android SDK by selecting configure default project settings at the bottom right of the splash screen dialog before you attempt to create a new Android project

Android studio unable to build downloaded project

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

All Java Files becomes red marked as error. but project build successfully

I am using android studio 1.0. I am developing a small android application. When i was editing the code in one of my java file in android studio, power cut happened.
After power came, i open the android studio and open my project, all files in the java folder marked as red indicationg error.
but the projects build successfully. when i sync with gradle.
it also done successfully. and perfectly runs in the device after launced the app in my phone.. but the red mark not disappear
even i close the project and reopen. If i create new project also, the same things happen again.
i can't understand what's happened. i also tried re install my jdk 1.7
Can anyone help me, how to fix this bug. please give exact solution. i don't like suggestions like to re install android studio
Try to Update to androidstudio 1.2
Close Android Studio
Go to C:\Users\user\\.AndroidStudio2.3\system\caches directory and delete all files.
Restart Android Studio
Done.

Missing all SDK Platforms

Couple of weeks ago I was working on android application. Everything was working fine. I have updated my eclipse with all the versions of android sdk. Starting from 1.* to 4.0.3. Today I opened my project to make some changes in that. And I found only 4.0.3 platform. And all my projects have hundreds of errors even my AVD is showing with red cross on it.
Can any one please tell me what is it? How come I miss my all installed sdk platforms?
Thanks in advance.
If you accidentally deleted the Android SDK folder it would stop all your code fro working. Try resetting up you path. In eclipse go to Window -> Preferences -> Android. Then browse to the SDK folder in the SDK location target textbox.

Categories

Resources