"라이브러리"프로젝트의 리소스가 없지만이 설정이 있습니다. 내 주요 프로젝트는 Android 프로젝트이지만 "라이브러리"는 표준 Java 프로젝트입니다. 이것은 잘 작동하는 것 같습니다.
기본 Android 프로젝트의 빌드 경로 ('프로젝트'탭)에서 라이브러리 프로젝트를 추가했습니다.
라이브러리 프로젝트의 .project 파일은 다음과 같습니다 :
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>DataExchange</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.wst.common.project.facet.core.builder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
</natures>
</projectDescription>
안드로이드 프로젝트의 .project 파일은 다음과 같습니다 : 내가 설정에서 그 이상 특별한 아무것도 기억하지 않는다
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>Project</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.ApkBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
이거.
'ant'로 시도해 보셨습니까? 그렇다면 컴파일되고 Eclipse 프로젝트 설정 문제 일 수 있습니다.이 경우 설정에 대한 자세한 정보를 게시 할 수 있다면 도움이됩니다. –
내가 아는 한, 안드로이드 프로젝트를위한 개미를 적절히 설정하는 데는 어느 정도 시간이 걸린다. 그것은 단순한 자바가 아닙니다. 자원, 서명 등은 무엇입니까. 현재로서는 Eclipse의 자체 빌드 시스템을 고수하고 싶습니다. –