As the title implies I have an android project in a repository that I want to add an android test project to. I would like to have both these two projects in my repository so they can be in sync and I only have to update one of the projects to update them both. I can't seem to figure out how to do it though. Is it possible? And if so, how can it be done?
Thank you in advance!
For your test project, do the following in Eclipse: Team > Share project > SVN.
And follow Tim's advice on how to import the project into eclipse.
See the following:
Creating an Android Test project in Eclipse
If you upload to SVN in Eclipse (by syncing the MyAndroidApp project, not the MyAndroidAppTest project) you need to do a little more (I've just done it now). So when you update your other working copy it will pull down the /tests directory. The MyAndroidAppTest project does not automatically show up in the Package Explorer. So you need to go to File.. Import...Existing Projects into Workspace.... Then select the root directory by browsing to your /MyAndroidApp/tests directory and click Finish.
By: Tim
Related
Initially, I was looking why I could not open the emulator window, then I found out that the main reason for that was that android studio cannot detect flutter project structure automatically, due to the missing ".iml" files and ".idea" folder, due to which it does not know the existence of two modules i.e my_project and my_project_android.
Can anyone help me? Why is this happening?
Note:- Android studio can detect flutter project structure just fine if I create a project from my computer only, but since I am importing a project from GitHub, it cannot detect the appropriate project structure.
Below is how my modules section in the project structure looks, everything section is completely empty here.
Edit 1:-
Following are the picks on trying to import project inside modules
Edit 2:-
This is from where I import project directly from android studio using "Get from Version Control" than,
After this, I just click on clone and no more settings are asked(or required).
I found out that the project I was getting from VCS was flawed, it had gradle files in the flutter root folder and some more problems, eventually, I created a new flutter project after that I copied dart and other files and also updated some android files, and it worked.
I have repository in BitBucket while cloning project
If I select "Ïmport Gradle project"
On clicking "OK" , it start building project , then gives error
If I select "Configure" to configure android project it build project but it didn't run .
How to resolve this error ?
launch bitbucket.org, login to your account, select the repo which you want to import. select HTTPS and copy the link.
launch Android studio. select 'Check out the project from Version Control'
paste the link, fill in other information as asked and confirm.
this will clone your bitbucket repo in the android studio.
BitBucket is a GitHUB based site.
You simply need to clone the repo you need to your local pc.
Open that repo (project) in Android Studio, and Android Studio will give you the option to enable “VCS” (This is Version Control System).
It will automatically sync with your repo, and list all your branches and so on.
You don't need to do an import, if it is already an Android Studio project.
For your error, try these as reference:
Volley might be giving you an issue (File Structure stuff)
If you have modules as part of the repo
Refer to this answer
You need to make sure that each submodule in your project has its own build.gradle file. The name 'default' happens because your outer build.gradle is trying to build a project that doesn't know how to build itself, thus it is given the name 'default.' Try doing that and see what happens.
The owner of the project should give you the access to one.
Then in android studio go to VSC tab in most top bar and select
VCS --> git --> clone..
Then in dialog popup in the first editbox past the 'httpsed' url and press "Clone"
Then wait untill project is clonned
I am not a dev, but have some dev experience. I have never used Android Studio before but I wanted to look at an example app. I picked one I am very interested in, but it gives me nothing but grief just trying to import it.
https://github.com/AltBeacon/android-beacon-library-reference
Notes:
I am using the latest version of Android Studio. (1.0.2). I have added in all the SDK files needed I think.
I have downloaded and un-zipped Gradle 2.2.1.
I am running Ubuntu 14.04.
I have dealt with Eclipse for Android previously and was able to
hack someone else's code to suit my needs and actually deploy an unsigned apk.
The readme/install directions at the github don't really help a noob
like me.
Install:
I have extracted the project from the Download Zip link.
For the actual import into Android Studio I choose "Open an Existing
Android Studio Project" - because it looks like one.
I then choose the root directory created by unzipping the zip file,
in this case it is named "android-beacon-library-reference-master".
But it seems to select the project's Gradle subfolder (/gradle) for the project! Which I'm quite certain is invalid. I cannot seem to get it to use the root
folder.
What am I missing? Or is this not the correct way to "import" this particular app? Is this app not compatible with AS 1.0.2?.
TIA!
In Android Studio, close any projects currently open. You should see the Welcome to Android Studio window.
1.Click Import Non-Android Studio project.
2.Locate the project you exported from Github, expand it, select the build.gradle file and click OK.
3.In the following dialog, leave Use gradle wrapper selected and click OK. (You do not need to specify the Gradle home.)
Android Studio properly updates the project structure and creates the appropriate Gradle build file.
Can you try "Import Project" instead "Open Project". Thanks.
I would just want to ask how to copy a libgdx project to another computer. I pushed the libgdx project at bitbucket but when I cloned it to another computer and import it with eclipse I am having lots of dependency/build path errors. Upon inspecting, the original project has multiple jars added on the build path from
/Users/me/.gradle/caches
. Maybe copying all of these jars to the other computer would solve the problem but that would be a tedious process. How can I properly fix these errors? The project was initially created by libgdx setup with Generates Eclipse Project Files checked. Thank you very much!
When you clone your repository to another computer, you must refresh the dependencies.
In eclipse this is done like this:
Select all your projects.
Right click one of them.
Do:
Gradle -> Refresh All.
I am creating an Android Application with a team of others. Typically I use netbeans, and I have never had trouble with netbeans or svn. But as eclipse has the android plugins, we are using eclipse.
What I need to do is check in my current a android application, so that then my team members can all check it out(as an android project) and continue to develop and test on their own computers.
Current when we check out a project from SVN, eclipse does not recognized the project as an android project.
I recently had this problem too. The thing is that the ".project" file was not imported in SVN; because of this Eclipse will add a new ".project" file whenever and however you check out the project from SVN; the other part of the problem is the poorly designed "Android Project from Existing Code" option.
Solution:
- delete the .project file from your working copy
- ["optional"] move the project folder somewhere else (because the "Android Project from Existing Code" option will not work if you try to create the project in the same place)
- create new project and select "Android Project from Existing Code"
After creating the project commit the newly generated .project file to SVN; this way the others will be able to simply click "Check Out" and start working :)
Note: Make sure to also commit the other android related files (e.g. project.properties)