Solved

Eclipse and OneDrive

Posted on 2014-09-05
6
1,177 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 16

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 16

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
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
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 16

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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Once again I push the limits of my phone.  An introduction to the Android Google Now Launcher.
"Disruption" is the most feared word for C-level executives these days. They agonize over their industry being disturbed by another player - most likely by startups.
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.

758 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now