Can't run or debug SVN android project - android

I'm having some beginner problems to start using version control on my project. My app is already working, I've installed subversive and did the following:
1- Checked out my project to server - OK.
2- At another pc, added new repository location - OK.
I can see the project tree in SVN Repositories perspective, with all files, but when I try to run it, what appears in the emulator is the local version of the project, and not the SVN one.
I've tried Run > Run Configurations > New Launch Configurations, but the SVN repository doesn't appears in Basic settings > Browse Project...
In repository I can see, but not edit, .classpath and .project files.
Any idea of what's happening? Thanks.

You should be downloading your project from SVN into a folder somewhere on your PC. You need to add that project to Eclipse, or refresh if you downloaded it to an existing project folder, and then rebuild the project in Eclipse.

Related

cloning project from Git in Android Studio

I'm using Android Studio 2, after migrating from Eclipse I pushed the project to a new repository. Now when I try to clone it ,it doesn't work.
After cloning it asks me :
Would you like to create a Studio project for the sources you have checked out to ?
I hit 'yes' and then "Import project from external model".
I can see then the project but I can't run it. I can't even sync with gradle files. This option is not existent.
Here is the official documentation to migrate an Eclipse project to an Android Studio: Migrating from Eclipse ADT. You should follow the step if you want your project to be usable under Android Studio since the project structure is a bit different betwwen the two environment.
You have to mantein this structure, with .idea and app directories directly in the root folder of your project, without any other wrapping folder.

How to recreate a project in Android Studio after losing the .idea folder?

I have been trying to understand how Android Studio IDE works by trying out a few things. I imported one of the sample projects –– Android DataLayer –– from Google repo, and it came with a few configured modules. Then I deleted the .idea folder and wanted to open the project again, but in the sidebar panel, all I see is emptiness.
What can I do to recreate the project?
Try syncing the project with "Tools" > "Android" > "Sync Project with Gradle Files".
If nothing changes when that process seems to be completed, then close and reopen the IDE.
If that still does not help:
Close the project via "File" > "Close Project"
Go into the project directory and delete the file .iml
(using your development machine's file manager e.g., Nautilus in Ubuntu, Finder in OS X).
Then, import the project using "Import Non-Android Studio Project" from the welcome dialog that appeared when you closed the project earlier.
Try creating a new project with exactly the same name, packageName etc. and then copy the folder from the new project into your old one

Unable to launch android applications in Eclipse

I am having a weird problem with Eclipse.
Some days back, I completed a project with the name IntelligentAlarm, and then pushed it to github. I was using Eclipse Indigo then. After that I formatted the system, and downloaded Eclipse Juno. I cloned this repository from github, and imported this project into Eclipse as an android application.
But now, I am unable to run it as an android application. The option which allows you to run it as an android application is missing. Neither can I create a new Run Configuration for this project, as I don't see this project in Browse window.
I should add that I am able to run newly created android projects.
What should I do ?
If you formatted your hard disk your workspace is gone. This means you have to import your cloned project into Eclipse (Import existing Android project into workspace). This adds your project to the newly created workspace. After that, if will be shown in your IDE as usual.
It might be that you have still some things to do, for instance downloading the SDK platforms and creating an emulator.
After this you should be able to run your program as an Android project.
I would re-do the android app setup configuration in Eclipse again and see if the
Run > As an Android App
option comes back.
Setup Eclipse form scratch to enable Android Development Environment. enter link description here
Then create new project from your existing code. Since you exisitng eclipse project will have the properly files it will enable any old properties.
Hope you have your old workspace.
Quick Solution: *You can try deleting the .metadata folder under workspace folder which can recreate the .metadata folder for you when restart the eclipse*

Download android project from svn cannot using

Specs
System: win7 x64
IDE: Eclipse
Plug-in: Subclipse
I'm trying to share my android project in an SVN server but only my computer can use it.
When other people downloads my project in their computer, they always have a one named folder.
My Steps:
Right click my project
Team > Share project
Select SVN > Next
Select my svn repository link > Use the project name as the folder name > Next and finish
Team Synchronizing > Ignore bin, gen, .classpath, .project
Submit
Screenshot in my computer when i try to run and build
screenshot 1
Screenshot When other people download my project
screenshot 2
Why do i always have one similar folder?
Thank you.
Is seem you are creating a folder name of project on svn repo. and then upload it ,
just share project on svn without createing 'test1' folder .
When you are downloading the code make sure the path to the project is is
....../SourceCode/test1/test1

Import maven project into Eclipse/Android project

I downloaded the Megamatcher Android SDK from http://www.neurotechnology.com/megamatcher.html
I already implementend a face identifier on android devices
now i want compare the performance of my identifier with a corporate one (the one above)
My problem is to export the mvn project from Megamatcher tutorial into an android project under Eclipse.
there's a way to create an eclipse project from a maven one? including all remote and local dependencies??
Thanks
Maybe it's just this what you are looking for
From: source:
If you have a simple java project which is made up of only one module,
using eclipse is very simple. To generate the eclipse project files
from your POM you execute the following command:
mvn eclipse:eclipse
If you have created or checked out the project with eclipse, you only
have to refresh the project in your workspace. Otherwise you have to
import the project into your eclipse workspace (From the menu bar,
select File >Import >Existing Projects into Workspace). In the latter
case the project (directory) should not be located in your workspace,
because eclipse might come into trouble, especially if you want to use
eclipse as the scm client.

Categories

Resources