android - R cannot be resolved into a variable when integrating two packages -
i try integrate twitter project facebook project copying , paste relevant files , clean integration project. however, in gen file(r.java , buildconfig.java) twitter packages deleted. seems gen file can generated 1 packages in src.
correct, there 1 r file. have several options though. leave twitter , facebook in individual projects (instead of copying them project), , add them via android library system. or, need copy class files, plus resource files , other required files. (i expect resource files weren't copied, , not included in project r file).
personally, i'd recommend first method. add each project (twitter , facebook) eclipse. right-click , select properties. choose android section, , in lower half of panel, check "is library". in project, right-click on , select properties, android. in lower half, (same location "is library") select add , add twitter , facebook projects. should include them in build project, including r files might have!
update (activities in library projects):
check "declaring library components in manifest file" section of library section. essentially, you'll need declare activities, etc, in project's manifest. you'd still link libraries described. (there's more detailed explanation of how configure libraries @ link well!)
Comments
Post a Comment