I am using android studio 1.0.2
for a month
and when I import aproject I am asked to choose project folder
and after clicking ok I am redirected to a window asking project destination
and from there it strait forword to finish importing
now I am encounter a different wizard
after selecting project folder I am getting to
a window asking me to choose import gradle from external model
and dont alow me to check the use gradle wrapper(grayed out)
so at the end I get my project imported without any gradle
files
hope somone can help know why did it changed
thanks
I found the answer
I did not point to the project directory that
I wanted to import to android studio
that is containing the project files
(I choose directory that contained that directory and that cause the difficulty)
thanks
Related
There is sample code on the developer site that i wish to run.
When I import as a new Android Studio project, I'm not given any ability to run the code (disabled buttons).
I attempted to copy the source files over into the shell of a new project, but i than got errors that didn't make sense. reference to duplicate declarations in source files that had nothing relating inside them.
Is there an idiots guide on how to properly use android studio, or is it just this difficult?
In order to correctly import the project, you should follow the Samples guide as found in the developer docs.
To import a downloaded project:
Unpack the downloaded project package.
In Android Studio, chose File >
Import Project and select the root folder of the unpacked project.
Android Studio may ask you to choose the type of project you are
importing.
If this is the case, make sure to choose Import project
from external model and select the Gradle option.
Alternatively, if the Gradle option does not work, I would attempt to use the Eclipse option.
Open .gradle file when you import the project, not the folder of the proyect.
how can I add a custom library project (in my example the CuXtomCam library) to an existing android project using Android Studio 1.1?
I've read about changing the build.gradle file. But where should I place the library ressources?
Thank you in advance for all answers and comments!
To import library into Android Studio:
select File > Import, and then select the directory containing the project to import.
a wizard will open and guide you through the rest of the import process.
When the project import has finished, it will open up a file called "import-summary.txt" which lists all the steps taken during import and suggestions for next steps. For example, it may note files that were not migrated, it may note missing components in your SDK install, and so on.
Just right click on the project then New>Module. from the new window select Import existing project. Give the directory. I think this will help
I have been looking all over the place for over an hour for explanation on how to open an existing project and followed the step but it just doesn't work!
If I do File -> Import -> Android -> Existing android code into work space, I get a window that allows me to browse for my project but then when i select the folder and click ok I just can't do anything else...It says cannot import BeginerApp because the project is in use...but there's nothing open!?! Am I supposed to select the file containing everything of my project as the root directory?
Honestly I don't understand anything of what is going on and I'm completely new to android programming. I was trying to do the first training tutorial on the android developement website and I closed the app, now i want to open it so i can test it on my phone... sigh, It's a rough start into the world of Android programming.
Well, If I understand you right in the past you imported the same project with the "same" .Project file.
To make to import the duplicated of old project you imported in, go to you new Project and edit .Project file:
<projectDescription>
<name>PutHereYourNewName</name>
....
Eclipse before import checks this file for projectDescription name and even if you changed Project folder, Eclipse feels it like you try to import the same project till you change above mentioned file.
After, it should work
Check if a project folder exists on disk in the workspace folder already. in this case, the project files are not visible in the eclipse window, but they are not allowed to be copied in workspace because it is still there on disk.
If you still face problems, in the worse case create a new workspace, and then import your project.
I have a root directory with a number of android eclipse projects inside. They all have .project files, but eclipse does not seem to see them as eclipse projects? Does anyone know the reason why?
Cause for not importing projects in eclipse :
Reason 1 : Project Structure Differs
Reason 2 : Project Configuration files missing or not available
Reason 3 : Project can be already exists in workspace
Reason 4 : Don't have Proper and Standard Naming Convention
Follow these steps.
Hope you have android sdk and ADT plugin for eclipse.
File-->Import-->Android-->Existing Android code into workspace.
Then import the projects from your root directory using Browse button. If you don't have ADT plugin definitely you never import your android projects.
You have to import them manually
First File > Import
Then General > Existing Project Into Workspace
Either select root directory or Select archive file, click Browse to locate the directory or file containing the project that you want to import
Under Projects select the project that you want to import
Finally click finish to import the project
Here is a link to the eclipse help section on this
http://help.eclipse.org/helios/index.jsp?topic=%2Forg.eclipse.platform.doc.user%2Ftasks%2Ftasks-importproject.htm
I have downloaded an android sample called custom view from android refernce from this location
http://developer.android.com/shareables/training/CustomView.zip
It only has the java files and other resources but does not contain any project file for me to import in eclipse as a project.
So when I import existing project into workspace, eclipse does not pick the project in the import dialog.
How can I import it into eclipse ? I have ADT tools installed already,
Thanks,
Ahmed
Maybe that's because you'll have to make the manifest.xml file.
What I'd suggest, is to create a new Android project, with the same package and Activity's name than in your zip (ie com.example.android.customviews and MainActivity), then copy/paste the files from your zip to the new project directory (thus replacingsrcandres` folders). That way, Eclipse will generate the manifest for you, with correct reference.
This should not take more than 30 seconds...
Go to Project Explorer and right click -> Import -> Select Android -> Existing Android Code Into Workspace -> browse to folder with your code -> finish
I encountered the same problem. I did thought that it's missing the AndroidManifest.xml file. I tried to fixed it and place it here. You can download it an try.