Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
766 views
in Technique[技术] by (71.8m points)

android - .project file missing, but project opens fine on my mac, but not lecturers home PC

bit of a beginner to all this. But this year we have been asked to make a Android Tic Tac Toe game, and I've just finished it, but sent it off to my lecturer to check out a simple problem I was having.

However he says he cannot open it as it is not recognised as a project and it is missing the .project file.

When looking back over my old projects, not a single one of them has a .project file in it (a least 30 project), however they all open absolutely fine on my Mac, and the PC's in uni when I copy them onto my USB and import them into Eclipse.

The deadline is monday and I'm getting a bit worried. I don't mind making a new project from scratch and copying my code into it. But I don't see how it will help seeing as none of my previous projects have been made with them.

Any help will be GREATLY appreciated.

Thanks, Will

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

A piece of information you may be missing is that files prefixed with a period (.) are hidden files on Unix-based OS's. Therefore you will not see them by default in Finder on OSX.

If you open a Terminal, navigate to your project (cd <project-path>) and execute ls -la, they will show up.

Example output:

Justins-iMac:HelloWorld justinjasmann$ ls -la
total 144
drwxr-xr-x  14 justinjasmann  staff    476 26 Feb 16:50 .
drwxrwxrwx  10 justinjasmann  staff    340 28 Feb 01:12 ..
-rw-r--r--   1 justinjasmann  staff    466 26 Feb 16:51 .classpath
-rw-r--r--   1 justinjasmann  staff    813 26 Feb 16:50 .project
-rw-r--r--   1 justinjasmann  staff    845 26 Feb 16:50 AndroidManifest.xml
drwxr-xr-x   2 justinjasmann  staff     68 26 Feb 16:50 assets
drwxr-xr-x  10 justinjasmann  staff    340 28 Feb 01:07 bin
drwxr-xr-x   3 justinjasmann  staff    102 26 Feb 16:51 gen
-rw-r--r--   1 justinjasmann  staff  51394 26 Feb 16:50 ic_launcher-web.png
drwxr-xr-x   3 justinjasmann  staff    102 26 Feb 16:50 libs
-rw-r--r--   1 justinjasmann  staff    781 26 Feb 16:50 proguard-project.txt
-rw-r--r--   1 justinjasmann  staff    563 26 Feb 16:50 project.properties
drwxr-xr-x  14 justinjasmann  staff    476 26 Feb 16:50 res
drwxr-xr-x   3 justinjasmann  staff    102 26 Feb 16:50 src

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...