Android Studio gradle配置

settings.gradle 配置指定路径 module

博主博客

  • https://blog.uso6.com
  • https://blog.csdn.net/dxk539687357

一、正常情况, 导入本项目的模块只需要使用
include ':app', ':library'即可。

二、但是当需要导入其他项目的模块, 可以使用相对路径指定

	include ':app', ':library'
	project(':thirdlibrary').projectDir = file('../Demo/thirdlibrary')

settings.gradle 中导入后需要在 :app 中的 build.gradle 中加入
implementation project(':thirdlibrary') 才能使用模块。

你可能感兴趣的:(android,android)