c语言sscanf函数的用法是什么
345
2022-09-27
【Android Gradle 插件】Gradle 依赖管理 ⑧ ( implementation fileTree 引入jar文件依赖 | implementation files 引入文件依赖 )
文章目录
一、implementation fileTree 引入目录下的文件作为依赖二、implementation files 引入目录下的文件作为依赖
Android Plugin DSL Reference 参考文档 :
Android Studio 构建配置官方文档 : 参考文档 : Gradle 插件配置与 Gradle 配置关联 : 【Android Gradle 插件】Gradle 依赖管理 ① ( org.gradle.api.Project 配置 | Android Gradle 插件配置与 Gradle 配置关联 ) ★Android Gradle 插件文档主页 : 文档位置 : android-gradle-dsl/2.3/com.android.build.gradle.BaseExtension.htmlAppExtension ( build.gradle#android 配置 ) 文档位置 : android-gradle-dsl-gh-pages/2.3/com.android.build.gradle.AppExtension.htmlbuild.gradle#android 模块配置文档 : android-gradle-dsl/2.3/com.android.build.gradle.AppExtension.htmlProductFlavor ( build.gradle#android#defaultConfig 配置 ) 文档 : android-gradle-dsl/2.3/com.android.build.gradle.internal.dsl.ProductFlavor.htmlProductFlavor#externalNativeBuild 配置 ( build.gradle#android#defaultConfig#externalNativeBuild 配置 ) : com.android.build.gradle.internal.dsl.ProductFlavor:externalNativeBuildExternalNativeBuildOptions ( build.gradle#android#defaultConfig#externalNativeBuild 配置 ) 文档位置 : android-gradle-dsl-gh-pages/2.3/com.android.build.gradle.internal.dsl.ExternalNativeBuildOptions.htmlNdkBuildOptions ( build.gradle#android#defaultConfig#externalNativeBuild#ndkBuild 配置 ) 文档位置 : android-gradle-dsl-gh-pages/2.3/com.android.build.gradle.internal.dsl.NdkBuildOptions.htmlCmakeOptions ( build.gradle#android#defaultConfig#externalNativeBuild#cmake 配置 ) 文档位置 : android-gradle-dsl-gh-pages/2.3/com.android.build.gradle.internal.dsl.CmakeOptions.htmlJackOptions ( build.gradle#android#defaultConfig#jackOptions 配置 ) 文档位置 : android-gradle-dsl/2.3/com.android.build.gradle.internal.dsl.JackOptions.htmlAnnotationProcessorOptions ( 注解处理器配置 ) ( build.gradle#android#defaultConfig#javaCompileOptions配置 ) 文档位置 : android-gradle-dsl/2.3/com.android.build.gradle.internal.dsl.AnnotationProcessorOptions.htmlNdkOptions ( build.gradle#android#defaultConfig#ndk 配置 ) 文档位置 : android-gradle-dsl/2.3/com.android.build.gradle.internal.dsl.NdkOptions.htmlNDK 参考文档 : Add C and C++ Code to Your Project.VectorDrawablesOptions ( build.gradle#android#defaultConfig#vectorDrawables 配置 ) 文档位置 : android-gradle-dsl/2.3/com.android.build.gradle.internal.dsl.VectorDrawablesOptions.htmlBuildType ( build.gradle#android#buildTypes 配置 ) 文档位置 : android-gradle-dsl/2.3/com.android.build.gradle.internal.dsl.BuildType.htmlSigningConfig ( build.gradle#android#signingConfigs 配置 ) 文档位置 : android-gradle-dsl/2.3/com.android.build.gradle.internal.dsl.SigningConfig.htmlAaptOptions ( build.gradle#android#aaptOptions 配置 ) 文档位置 : android-gradle-dsl/2.3/com.android.build.gradle.internal.dsl.AaptOptions.htmlAndroidSourceSets ( build.gradle#android#sourceSets 配置 ) 文档位置 : android-gradle-dsl/2.3/com.android.build.gradle.api.AndroidSourceSet.htmlAndroidSourceDirectorySet ( build.gradle#android#sourceSets#aidl/assets/java/jni/jniLibs 配置 ) 文档位置 :android-gradle-dsl/2.3/com.android.build.gradle.api.AndroidSourceDirectorySet.htmlAndroidSourceFile ( build.gradle#android#sourceSets#manifest 配置 ) 文档位置 : android-gradle-dsl/2.3/com.android.build.gradle.api.AndroidSourceFile.htmlDataBindingOptions ( build.gradle#android#dataBinding ) 文档位置 : android-gradle-dsl/2.3/com.android.build.gradle.internal.dsl.DataBindingOptions.htmlDexOptions ( build.gradle#android#dexOptions ) 文档位置 : android-gradle-dsl/2.3/com.android.build.gradle.internal.dsl.DexOptions.htmlLintOptions ( build.gradle#android#lintOptions ) 文档位置 : android-gradle-dsl/2.3/com.android.build.gradle.internal.dsl.LintOptions.htmlPackagingOptions ( build.gradle#android#packagingOptions ) 文档位置 : android-gradle-dsl/2.3/com.android.build.gradle.internal.dsl.PackagingOptions.htmlSplits ( build.gradle#android#splits ) 文档位置 : android-gradle-dsl/2.3/com.android.build.gradle.internal.dsl.Splits.htmlAbiSplitOptions ( build.gradle#android#splits#abi ) 文档位置 : android-gradle-dsl/2.3/com.android.build.gradle.internal.dsl.AbiSplitOptions.htmlLanguageSplitOptions ( build.gradle#android#splits#language ) 文档位置 : android-gradle-dsl/2.3/com.android.build.gradle.internal.dsl.LanguageSplitOptions.htmlDensitySplitOptions ( build.gradle#android#splits#density ) 文档位置 : android-gradle-dsl/2.3/com.android.build.gradle.internal.dsl.DensitySplitOptions.htmlTestOptions ( build.gradle#android#testOptions ) 文档位置 : android-gradle-dsl/2.3/com.android.build.gradle.internal.dsl.TestOptions.htmlAndroid 测试相关文档 : ( build.gradle#android#testOptions#unitTests ) 文档位置 : android-gradle-dsl/2.3/com.android.build.gradle.internal.dsl.TestOptions.UnitTestOptions.htmlorg.gradle.api.tasks.testing.Test 单元测试配置类 : ( Library 依赖库的 build.gradle#android 配置 ) 文档 : android-gradle-dsl/2.3/com.android.build.gradle.LibraryExtension.htmlorg.gradle.api.Project 配置 ( build.gradle 根配置 ) 文档 : 配置 ( build.gradle#dependencies#implementation 配置 ) : 参考文档 : fileTree 引入目录下的文件作为依赖
org.gradle.api.Project 配置 ( build.gradle 根配置 ) 文档 : build.gradle#dependencies 配置中 , 使用 implementation fileTree 引入文件树 , 将当前目录中 libs 目录下的所有 .jar 后缀的文件添加到依赖中 ;
dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs')}
ConfigurableFileTree fileTree(Object baseDir) Creates a new ConfigurableFileTree using the given base directory.ConfigurableFileTree fileTree(Object baseDir, Closure configureClosure) Creates a new ConfigurableFileTree using the given base directory.ConfigurableFileTree fileTree(Object baseDir, Action super ConfigurableFileTree> configureAction) Creates a new ConfigurableFileTree using the given base directory.ConfigurableFileTree fileTree(Map
文档位置 : files 引入目录下的文件作为依赖
org.gradle.api.Project 配置 ( build.gradle 根配置 ) 文档 : build.gradle#dependencies 配置中 , 使用 implementation files 引入多个文件 , 将这些文件添加到依赖中 ;
dependencies { implementation files('libs/ffmpeg.jar', 'libs/location.jar')}
注意 file 函数只能指定一个文件 ;
File file(Object path) Resolves a file path relative to the project directory of this project.File file(Object path, PathValidation validation) Resolves a file path relative to the project directory of this project and validates it using the given scheme.ConfigurableFileCollection files(Object... paths) Returns a ConfigurableFileCollection containing the given files.ConfigurableFileCollection files(Object paths, Closure configureClosure) Creates a new ConfigurableFileCollection using the given paths.ConfigurableFileCollection files(Object paths, Action super ConfigurableFileCollection> configureAction) Creates a new ConfigurableFileCollection using the given paths.
参考文档 : https://docs.gradle.org/current/javadoc/org/gradle/api/Project.html#files-java.lang.Object…-
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~