build.gradle 파일 위에있는 폴더에 저장된 gradle 종속성을 어떻게 참조 할 수 있습니까?프로젝트 위의 폴더에서 gradle 종속성
이 구문을 수정해야합니까? 내가 보는 모든 참조는
compile ':libs:thirdparty'
처럼 보이지만 이것은 내가 그래서 지금
갈거야 내 settings.gradle
파일이 시도했는지 정말 아니다
include ':app', ':android-volley'
project(':android-volley').projectDir=new File('../../shared-components/android-volley')
내가 안드로이드 발리 프로젝트를 링크하려고 할 때, 심하게 수정되어 메이븐 링크를 사용하면 좋지 않을 것입니다. 그리고이 프로젝트와 제가 작업하는 다른 프로젝트 사이에서이 파일들을 사용하고 싶습니다.
이 제대로 더 이상 "동기화"하고
<?xml version="1.0" encoding="UTF-8"?>
<module external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$/.." external.system.id="GRADLE" external.system.module.group="whosay" external.system.module.version="unspecified" type="JAVA_MODULE" version="4">
<component name="FacetManager">
<facet type="android-gradle" name="Android-Gradle">
<configuration>
<option name="GRADLE_PROJECT_PATH" value=":android-volley" />
</configuration>
</facet>
<facet type="java-gradle" name="Java-Gradle">
<configuration>
<option name="BUILD_FOLDER_PATH" />
</configuration>
</facet>
</component>
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/.gradle" />
<excludeFolder url="file://$MODULE_DIR$/build" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
을
여기
가 .iml
파일을 안드로이드 스튜디오/IntelliJ에있는 종속성을 찾을 수 생성 할 수 없기 때문에 발리에 대한 가져 오기 문이 작동하지 않습니다 내 프로젝트를 허용하지 않습니다
무엇이 잘못 되었나요?
당신이 일반적으로 모든 프로젝트를 포함하는 settings.gradle 파일을 사용하고 참조 것 – njzk2
이것이 도움이됩니까? http://stackoverflow.com/questions/24658422/android-studio-0-8-1-creating-modules-without-copying-files/24659324#24659324 –
당신은'lib에서 몇 개의 항아리를 얻고 싶습니다. '디렉토리를 컴파일 클래스 경로에 추가 하시겠습니까? –