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
Solved

Eclipse and OneDrive

Posted on 2014-09-05
6
1,277 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
  • 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
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Often, people trade privacy and security for convenience. However in today's concrete jungle, this is an extremely foolish decision considering the vast amount of technologies being used against consumer interest. First off, I won't waste any time e…
The case of the missing phone talks about the way a small electronic gadget (the mobile phone) has penetrated into our lives and has made us addicted to it.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…

808 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