eclipse - Copying an Android Project Folder is Not a FULL Backup? -
eclipse - Copying an Android Project Folder is Not a FULL Backup? -
several weeks ago took snapshot of android project copying entire folder (windows 7) network share.
a few weeks later, wanted build snapshot in new (and different) workspace. i:
created empty folder workspace, switched eclipse it, then used file > import... re-create snapshot workspace.i surprised find errors in project - errors weren't there before copied on network share.
the first symptom lastly file in project had multiple errors. "fixed" entering eclipse (again!) android's sdk location:
windows > preferences > android > sdk location: c:\android-sdk-windows
this resulted in numerous files having errors, next hint @ console:
android requires .class compatibility set 5.0. please prepare project properties.
i fixed hovering on @override
, selecting change workspace compliance , jre 1.5
balloon suggestion. unusual because checked windows > preferences > java > compiler > compiler compliance level:
, 1.6 before - doesn't 1.6 include 1.5?
i left 2 errors stemming @override
s shouldn't there (for methods implementing interface). removed them , fine , project builds , runs before.
all nice , dandy surprised fact had alter anything in eclipse, not mention ended modifying original source code (deleting @override
s only) build - source code had no complaints whatsoever weeks ago!
what perchance explain this? isn't copying android project folder true full backup?
being baffled discovery, examined workspace folder, using dear emacs, , discovered there hidden subdirectory named .metadata
. secret lies.
my questions are:
does eclipse store additional info workspace elsewhere? what approach create android projects more independent, in "fully backup-able"? is there utilize.metadata/.log
file? can safely delete it?
i had errors when imported project. if i'm remembering correctly, helped right-clicking in project name , selecting android tools -> prepare project properties...
after errors disappeared.
“android requires .class compatibility set 5.0. please prepare project properties.” what’s this? it’s error received after cloning repository , trying import eclipse. there reasonably little info online this, couple discussions on mailing lists figured write post on solution this.
after importing project workspace, you’ve received error. need next right click on project -> android tools -> prepare project properties. lone won’t prepare problem, need restart eclipse after this. after seek building project 1 time again , should work time (unless have bugs in code itself, did).
android eclipse workspace
Comments
Post a Comment