Solved

Eclipse and OneDrive

Posted on 2014-09-05
6
1,344 Views
Last Modified: 2014-09-25
Hello,

I'm new to programming and I'm trying to figure out how to jump from computer to computer.  I have my project code saved and stored in OneDrive, but it's been causing all sorts of issues.  The current issue I'm having is "Failed to read the project description file", so I can't even open the project.

That is the main issue.  The secondary issue is I'm doing the MyFirstApp, but I can't figure out what I missed in the code.  When I type something in the box on the running program and hit Send, the second activity opens, but does not display the text string.  I hope this makes sense! :P

Any suggestions?
0
Comment
Question by:Scott Thompson
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 17

Expert Comment

by:Chris Harte
ID: 40307538
Eclipse uses a workspace, this is where your source code and all the project metadata is stored. If you are jumping between computers you have to back up your whole project (not just the source code) on one computer, then import it on the other.

File -> Import... -> Existing Project into Workspace

You may be able to use OneDrive as your default workspace for both computers, but I have never tried that.  Should be worth trying. Let us know if it works.

File->Switch workspace->other



The second issue is a separate question and we would need to see some code to give any help.
0
 
LVL 8

Author Comment

by:Scott Thompson
ID: 40307666
Okay, here's what I get when I try to File, Import, Existing Project into Workspace.

Eclipse ImportFailed Import
0
 
LVL 17

Expert Comment

by:Chris Harte
ID: 40310197
That looks broke. Two further options, and we are getting close to starting again,

File->new project

then chose 'Android project from existing code' and import your existing code;

OR

remove the .metadata directory from your workspace so that it has to be rebuilt.

Have you tried setting your OneDrive as the default workspace?
If yes have you set the permissions to allow eclipse to access it?

Since this is your first project I am going to assume it is not that big. It may be easier to get eclipse working with a network drive as a workspace and manually copying your code into a new, working, project.
0
SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

 
LVL 8

Author Comment

by:Scott Thompson
ID: 40317103
Okay, I renamed the .metadata folder and it rebuilt it upon opening Eclipse.  However, when I go to File, New Project, Android Project From Existing Code; I'm still getting an error.  It's different this time.

Eclipse Fail 3Eclipse Fail 4
OneDrive is set as the default workspace.  I have Eclipse run as administrator, other than that I don't know what you mean by setting permissions for it to be able to access my files.
0
 
LVL 17

Accepted Solution

by:
Chris Harte earned 500 total points
ID: 40317251
By permissions I mean read/write access to the OneDrive. Running as admin should cover it.

Others have been having a problem running a workspace from a network drive and it was once logged as a bug

http://www.eclipse.org/forums/index.php/t/612569/
https://bugs.eclipse.org/bugs/show_bug.cgi?id=331024

A solution would be copy your workspace from computer to computer, via the OneDrive, but run the workspace locally. Not ideal but I do not think anything else will work.

Here is a thread on rebuilding android projects in eclipse
http://stackoverflow.com/questions/5784652/eclipse-invalid-project-description-when-creating-new-project-from-existing-so
0
 
LVL 8

Author Closing Comment

by:Scott Thompson
ID: 40344490
I'm just redoing the project on one computer and not trying to use OneDrive.  Perhaps we will find a solution later.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
A simple overview of the possibilities of using technology for project management.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.
Progress

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question